factpulse 1.0.9__py3-none-any.whl → 3.0.7__py3-none-any.whl
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.
Potentially problematic release.
This version of factpulse might be problematic. Click here for more details.
- factpulse/__init__.py +275 -203
- factpulse/api/__init__.py +5 -3
- factpulse/api/afnorpdppa_api.py +559 -9
- factpulse/api/afnorpdppa_directory_service_api.py +4313 -66
- factpulse/api/afnorpdppa_flow_service_api.py +23 -23
- factpulse/api/chorus_pro_api.py +362 -404
- factpulse/api/{signature_lectronique_api.py → document_conversion_api.py} +519 -371
- factpulse/api/health_api.py +526 -0
- factpulse/api/invoice_processing_api.py +3437 -0
- factpulse/api/pdfxml_verification_api.py +1719 -0
- factpulse/api/{sant_api.py → user_api.py} +18 -17
- factpulse/api_client.py +6 -6
- factpulse/configuration.py +6 -4
- factpulse/exceptions.py +8 -5
- factpulse/models/__init__.py +133 -99
- factpulse/models/acknowledgment_status.py +38 -0
- factpulse/models/additional_document.py +115 -0
- factpulse/models/afnor_credentials.py +106 -0
- factpulse/models/afnor_destination.py +127 -0
- factpulse/models/afnor_health_check_response.py +91 -0
- factpulse/models/afnor_result.py +105 -0
- factpulse/models/allowance_charge.py +147 -0
- factpulse/models/allowance_reason_code.py +42 -0
- factpulse/models/allowance_total_amount.py +145 -0
- factpulse/models/amount.py +139 -0
- factpulse/models/amount_due.py +139 -0
- factpulse/models/api_error.py +104 -0
- factpulse/models/async_task_status.py +97 -0
- factpulse/models/base_amount.py +145 -0
- factpulse/models/bounding_box_schema.py +100 -0
- factpulse/models/celery_status.py +40 -0
- factpulse/models/certificate_info_response.py +24 -24
- factpulse/models/charge_total_amount.py +145 -0
- factpulse/models/chorus_pro_destination.py +108 -0
- factpulse/models/chorus_pro_result.py +101 -0
- factpulse/models/contact.py +113 -0
- factpulse/models/convert_error_response.py +105 -0
- factpulse/models/convert_pending_input_response.py +114 -0
- factpulse/models/convert_resume_request.py +87 -0
- factpulse/models/convert_success_response.py +126 -0
- factpulse/models/convert_validation_failed_response.py +120 -0
- factpulse/models/delivery_party.py +121 -0
- factpulse/models/destination.py +27 -27
- factpulse/models/document_type_info.py +91 -0
- factpulse/models/electronic_address.py +90 -0
- factpulse/models/enriched_invoice_info.py +133 -0
- factpulse/models/error_level.py +37 -0
- factpulse/models/error_source.py +43 -0
- factpulse/models/extraction_info.py +93 -0
- factpulse/models/factur_x_invoice.py +320 -0
- factpulse/models/factur_x_profile.py +39 -0
- factpulse/models/factur_xpdf_info.py +91 -0
- factpulse/models/facture_electronique_rest_api_schemas_chorus_pro_chorus_pro_credentials.py +95 -0
- factpulse/models/facture_electronique_rest_api_schemas_processing_chorus_pro_credentials.py +115 -0
- factpulse/models/field_status.py +40 -0
- factpulse/models/file_info.py +94 -0
- factpulse/models/files_info.py +106 -0
- factpulse/models/flow_direction.py +37 -0
- factpulse/models/flow_profile.py +38 -0
- factpulse/models/flow_summary.py +131 -0
- factpulse/models/flow_syntax.py +40 -0
- factpulse/models/flow_type.py +40 -0
- factpulse/models/generate_certificate_request.py +26 -26
- factpulse/models/generate_certificate_response.py +15 -15
- factpulse/models/get_chorus_pro_id_request.py +100 -0
- factpulse/models/get_chorus_pro_id_response.py +98 -0
- factpulse/models/get_invoice_request.py +98 -0
- factpulse/models/get_invoice_response.py +142 -0
- factpulse/models/get_structure_request.py +100 -0
- factpulse/models/get_structure_response.py +142 -0
- factpulse/models/global_allowance_amount.py +139 -0
- factpulse/models/gross_unit_price.py +145 -0
- factpulse/models/http_validation_error.py +2 -2
- factpulse/models/incoming_invoice.py +196 -0
- factpulse/models/incoming_supplier.py +144 -0
- factpulse/models/invoice_format.py +38 -0
- factpulse/models/invoice_line.py +354 -0
- factpulse/models/invoice_line_allowance_amount.py +145 -0
- factpulse/models/invoice_note.py +94 -0
- factpulse/models/invoice_references.py +194 -0
- factpulse/models/invoice_status.py +96 -0
- factpulse/models/invoice_totals.py +177 -0
- factpulse/models/invoice_totals_prepayment.py +145 -0
- factpulse/models/invoice_type_code.py +51 -0
- factpulse/models/invoicing_framework.py +110 -0
- factpulse/models/invoicing_framework_code.py +39 -0
- factpulse/models/line_net_amount.py +145 -0
- factpulse/models/line_total_amount.py +145 -0
- factpulse/models/mandatory_note_schema.py +124 -0
- factpulse/models/manual_rate.py +139 -0
- factpulse/models/manual_vat_rate.py +139 -0
- factpulse/models/missing_field.py +107 -0
- factpulse/models/operation_nature.py +49 -0
- factpulse/models/output_format.py +37 -0
- factpulse/models/page_dimensions_schema.py +89 -0
- factpulse/models/payee.py +168 -0
- factpulse/models/payment_card.py +99 -0
- factpulse/models/payment_means.py +41 -0
- factpulse/models/pdf_validation_result_api.py +169 -0
- factpulse/models/pdp_credentials.py +20 -13
- factpulse/models/percentage.py +145 -0
- factpulse/models/postal_address.py +134 -0
- factpulse/models/price_allowance_amount.py +145 -0
- factpulse/models/price_basis_quantity.py +145 -0
- factpulse/models/processing_options.py +94 -0
- factpulse/models/product_characteristic.py +89 -0
- factpulse/models/product_classification.py +101 -0
- factpulse/models/quantity.py +139 -0
- factpulse/models/recipient.py +167 -0
- factpulse/models/rounding_amount.py +145 -0
- factpulse/models/scheme_id.py +14 -8
- factpulse/models/search_flow_request.py +143 -0
- factpulse/models/search_flow_response.py +101 -0
- factpulse/models/search_services_response.py +101 -0
- factpulse/models/search_structure_request.py +119 -0
- factpulse/models/search_structure_response.py +101 -0
- factpulse/models/signature_info.py +6 -6
- factpulse/models/signature_info_api.py +122 -0
- factpulse/models/signature_parameters.py +133 -0
- factpulse/models/simplified_invoice_data.py +124 -0
- factpulse/models/structure_info.py +14 -14
- factpulse/models/structure_parameters.py +91 -0
- factpulse/models/structure_service.py +93 -0
- factpulse/models/submission_mode.py +38 -0
- factpulse/models/submit_complete_invoice_request.py +116 -0
- factpulse/models/submit_complete_invoice_response.py +145 -0
- factpulse/models/submit_flow_request.py +123 -0
- factpulse/models/submit_flow_response.py +109 -0
- factpulse/models/submit_gross_amount.py +139 -0
- factpulse/models/submit_invoice_request.py +176 -0
- factpulse/models/submit_invoice_response.py +103 -0
- factpulse/models/submit_net_amount.py +139 -0
- factpulse/models/submit_vat_amount.py +139 -0
- factpulse/models/supplementary_attachment.py +95 -0
- factpulse/models/supplier.py +225 -0
- factpulse/models/task_response.py +87 -0
- factpulse/models/tax_representative.py +95 -0
- factpulse/models/taxable_amount.py +139 -0
- factpulse/models/total_gross_amount.py +139 -0
- factpulse/models/total_net_amount.py +139 -0
- factpulse/models/total_vat_amount.py +139 -0
- factpulse/models/unit_net_price.py +139 -0
- factpulse/models/unit_of_measure.py +41 -0
- factpulse/models/validation_error.py +2 -2
- factpulse/models/validation_error_detail.py +107 -0
- factpulse/models/validation_error_loc_inner.py +2 -2
- factpulse/models/validation_error_response.py +87 -0
- factpulse/models/validation_info.py +105 -0
- factpulse/models/validation_success_response.py +87 -0
- factpulse/models/vat_accounting_code.py +39 -0
- factpulse/models/vat_amount.py +139 -0
- factpulse/models/vat_category.py +44 -0
- factpulse/models/vat_line.py +140 -0
- factpulse/models/vat_point_date_code.py +38 -0
- factpulse/models/vat_rate.py +145 -0
- factpulse/models/verification_success_response.py +135 -0
- factpulse/models/verified_field_schema.py +129 -0
- factpulse/rest.py +9 -4
- factpulse-3.0.7.dist-info/METADATA +292 -0
- factpulse-3.0.7.dist-info/RECORD +168 -0
- factpulse-3.0.7.dist-info/top_level.txt +2 -0
- factpulse_helpers/__init__.py +96 -0
- factpulse_helpers/client.py +2111 -0
- factpulse_helpers/exceptions.py +253 -0
- factpulse/api/processing_endpoints_unifis_api.py +0 -592
- factpulse/api/traitement_facture_api.py +0 -3439
- factpulse/api/utilisateur_api.py +0 -282
- factpulse/models/adresse_electronique.py +0 -90
- factpulse/models/adresse_postale.py +0 -120
- factpulse/models/body_ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post.py +0 -104
- factpulse/models/body_completer_facture_api_v1_chorus_pro_factures_completer_post.py +0 -104
- factpulse/models/body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get.py +0 -102
- factpulse/models/body_rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post.py +0 -104
- factpulse/models/body_rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post.py +0 -104
- factpulse/models/body_recycler_facture_api_v1_chorus_pro_factures_recycler_post.py +0 -104
- factpulse/models/body_telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post.py +0 -104
- factpulse/models/body_traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post.py +0 -104
- factpulse/models/body_valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post.py +0 -104
- factpulse/models/body_valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post.py +0 -104
- factpulse/models/body_valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post.py +0 -104
- factpulse/models/cadre_de_facturation.py +0 -102
- factpulse/models/categorie_tva.py +0 -44
- factpulse/models/chorus_pro_credentials.py +0 -95
- factpulse/models/code_cadre_facturation.py +0 -39
- factpulse/models/code_raison_reduction.py +0 -42
- factpulse/models/consulter_facture_request.py +0 -98
- factpulse/models/consulter_facture_response.py +0 -142
- factpulse/models/consulter_structure_request.py +0 -100
- factpulse/models/consulter_structure_response.py +0 -142
- factpulse/models/credentials_afnor.py +0 -106
- factpulse/models/credentials_chorus_pro.py +0 -115
- factpulse/models/destinataire.py +0 -116
- factpulse/models/destination_afnor.py +0 -127
- factpulse/models/destination_chorus_pro.py +0 -108
- factpulse/models/direction_flux.py +0 -37
- factpulse/models/donnees_facture_simplifiees.py +0 -124
- factpulse/models/facture_enrichie_info_input.py +0 -123
- factpulse/models/facture_enrichie_info_output.py +0 -133
- factpulse/models/facture_factur_x.py +0 -173
- factpulse/models/flux_resume.py +0 -131
- factpulse/models/format_sortie.py +0 -37
- factpulse/models/fournisseur.py +0 -146
- factpulse/models/information_signature_api.py +0 -122
- factpulse/models/ligne_de_poste.py +0 -188
- factpulse/models/ligne_de_poste_montant_remise_ht.py +0 -145
- factpulse/models/ligne_de_poste_montant_total_ligne_ht.py +0 -145
- factpulse/models/ligne_de_poste_taux_tva_manuel.py +0 -145
- factpulse/models/ligne_de_tva.py +0 -118
- factpulse/models/mode_depot.py +0 -38
- factpulse/models/mode_paiement.py +0 -41
- factpulse/models/montant_ht_total.py +0 -139
- factpulse/models/montant_total.py +0 -138
- factpulse/models/montant_total_acompte.py +0 -145
- factpulse/models/montant_total_montant_remise_globale_ttc.py +0 -145
- factpulse/models/montant_ttc_total.py +0 -139
- factpulse/models/montant_tva.py +0 -139
- factpulse/models/montantapayer.py +0 -139
- factpulse/models/montantbaseht.py +0 -139
- factpulse/models/montanthttotal.py +0 -139
- factpulse/models/montantttctotal.py +0 -139
- factpulse/models/montanttva.py +0 -139
- factpulse/models/montanttva1.py +0 -139
- factpulse/models/montantunitaireht.py +0 -139
- factpulse/models/obtenir_id_chorus_pro_request.py +0 -100
- factpulse/models/obtenir_id_chorus_pro_response.py +0 -98
- factpulse/models/options_processing.py +0 -94
- factpulse/models/parametres_signature.py +0 -133
- factpulse/models/parametres_structure.py +0 -91
- factpulse/models/pdf_factur_x_info.py +0 -91
- factpulse/models/piece_jointe_complementaire.py +0 -95
- factpulse/models/profil_api.py +0 -39
- factpulse/models/profil_flux.py +0 -38
- factpulse/models/quantite.py +0 -139
- factpulse/models/quota_info.py +0 -95
- factpulse/models/rechercher_services_response.py +0 -101
- factpulse/models/rechercher_structure_request.py +0 -119
- factpulse/models/rechercher_structure_response.py +0 -101
- factpulse/models/references.py +0 -124
- factpulse/models/reponse_healthcheck_afnor.py +0 -91
- factpulse/models/reponse_recherche_flux.py +0 -101
- factpulse/models/reponse_soumission_flux.py +0 -109
- factpulse/models/reponse_tache.py +0 -87
- factpulse/models/reponse_validation_erreur.py +0 -87
- factpulse/models/reponse_validation_succes.py +0 -87
- factpulse/models/requete_recherche_flux.py +0 -143
- factpulse/models/requete_soumission_flux.py +0 -123
- factpulse/models/resultat_afnor.py +0 -105
- factpulse/models/resultat_chorus_pro.py +0 -101
- factpulse/models/resultat_validation_pdfapi.py +0 -169
- factpulse/models/service_structure.py +0 -93
- factpulse/models/soumettre_facture_complete_request.py +0 -116
- factpulse/models/soumettre_facture_complete_response.py +0 -145
- factpulse/models/soumettre_facture_request.py +0 -164
- factpulse/models/soumettre_facture_response.py +0 -103
- factpulse/models/statut_acquittement.py +0 -38
- factpulse/models/statut_facture.py +0 -96
- factpulse/models/statut_tache.py +0 -99
- factpulse/models/syntaxe_flux.py +0 -40
- factpulse/models/tauxmanuel.py +0 -139
- factpulse/models/type_facture.py +0 -37
- factpulse/models/type_flux.py +0 -40
- factpulse/models/type_tva.py +0 -39
- factpulse/models/unite.py +0 -41
- factpulse/models/utilisateur.py +0 -128
- factpulse-1.0.9.dist-info/METADATA +0 -182
- factpulse-1.0.9.dist-info/RECORD +0 -131
- factpulse-1.0.9.dist-info/top_level.txt +0 -1
- {factpulse-1.0.9.dist-info → factpulse-3.0.7.dist-info}/WHEEL +0 -0
- {factpulse-1.0.9.dist-info → factpulse-3.0.7.dist-info}/licenses/LICENSE +0 -0
factpulse/api/chorus_pro_api.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
FactPulse REST API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
REST API for electronic invoicing in France: Factur-X, AFNOR PDP/PA, electronic signatures. ## 🎯 Main Features ### 📄 Factur-X Invoice Generation - **Formats**: XML only or PDF/A-3 with embedded XML - **Profiles**: MINIMUM, BASIC, EN16931, EXTENDED - **Standards**: EN 16931 (EU directive 2014/55), ISO 19005-3 (PDF/A-3), CII (UN/CEFACT) - **🆕 Simplified Format**: Generation from SIRET + auto-enrichment (Chorus Pro API + Business Search) ### ✅ Validation and Compliance - **XML Validation**: Schematron (45 to 210+ rules depending on profile) - **PDF Validation**: PDF/A-3, Factur-X XMP metadata, electronic signatures - **VeraPDF**: Strict PDF/A validation (146+ ISO 19005-3 rules) - **Asynchronous Processing**: Celery support for heavy validations (VeraPDF) ### 📡 AFNOR PDP/PA Integration (XP Z12-013) - **Flow Submission**: Send invoices to Partner Dematerialization Platforms - **Flow Search**: View submitted invoices - **Download**: Retrieve PDF/A-3 with XML - **Directory Service**: Company search (SIREN/SIRET) - **Multi-client**: Support for multiple PDP configs per user (stored credentials or zero-storage) ### ✍️ PDF Electronic Signature - **Standards**: PAdES-B-B, PAdES-B-T (RFC 3161 timestamping), PAdES-B-LT (long-term archival) - **eIDAS Levels**: SES (self-signed), AdES (commercial CA), QES (QTSP) - **Validation**: Cryptographic integrity and certificate verification - **Certificate Generation**: Self-signed X.509 certificates for testing ### 🔄 Asynchronous Processing - **Celery**: Asynchronous generation, validation and signing - **Polling**: Status tracking via `/tasks/{task_id}/status` - **No timeout**: Ideal for large files or heavy validations ## 🔒 Authentication All requests require a **JWT token** in the Authorization header: ``` Authorization: Bearer YOUR_JWT_TOKEN ``` ### How to obtain a JWT token? #### 🔑 Method 1: `/api/token/` API (Recommended) **URL:** `https://www.factpulse.fr/api/token/` This method is **recommended** for integration in your applications and CI/CD workflows. **Prerequisites:** Having set a password on your account **For users registered via email/password:** - You already have a password, use it directly **For users registered via OAuth (Google/GitHub):** - You must first set a password at: https://www.factpulse.fr/accounts/password/set/ - Once the password is created, you can use the API **Request example:** ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d '{ \"username\": \"your_email@example.com\", \"password\": \"your_password\" }' ``` **Optional `client_uid` parameter:** To select credentials for a specific client (PA/PDP, Chorus Pro, signing certificates), add `client_uid`: ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d '{ \"username\": \"your_email@example.com\", \"password\": \"your_password\", \"client_uid\": \"550e8400-e29b-41d4-a716-446655440000\" }' ``` The `client_uid` will be included in the JWT and allow the API to automatically use: - AFNOR/PDP credentials configured for this client - Chorus Pro credentials configured for this client - Electronic signature certificates configured for this client **Response:** ```json { \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\", // Access token (validity: 30 min) \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\" // Refresh token (validity: 7 days) } ``` **Advantages:** - ✅ Full automation (CI/CD, scripts) - ✅ Programmatic token management - ✅ Refresh token support for automatic access renewal - ✅ Easy integration in any language/tool #### 🖥️ Method 2: Dashboard Generation (Alternative) **URL:** https://www.factpulse.fr/dashboard/ This method is suitable for quick tests or occasional use via the graphical interface. **How it works:** - Log in to the dashboard - Use the \"Generate Test Token\" or \"Generate Production Token\" buttons - Works for **all** users (OAuth and email/password), without requiring a password **Token types:** - **Test Token**: 24h validity, 1000 calls/day quota (free) - **Production Token**: 7 days validity, quota based on your plan **Advantages:** - ✅ Quick for API testing - ✅ No password required - ✅ Simple visual interface **Disadvantages:** - ❌ Requires manual action - ❌ No refresh token - ❌ Less suited for automation ### 📚 Full Documentation For more information on authentication and API usage: https://www.factpulse.fr/documentation-api/
|
|
7
7
|
|
|
8
8
|
The version of the OpenAPI document: 1.0.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
@@ -17,29 +17,18 @@ from typing import Any, Dict, List, Optional, Tuple, Union
|
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
19
|
from pydantic import StrictInt
|
|
20
|
-
from typing import Any
|
|
21
|
-
from factpulse.models.
|
|
22
|
-
from factpulse.models.
|
|
23
|
-
from factpulse.models.
|
|
24
|
-
from factpulse.models.
|
|
25
|
-
from factpulse.models.
|
|
26
|
-
from factpulse.models.
|
|
27
|
-
from factpulse.models.
|
|
28
|
-
from factpulse.models.
|
|
29
|
-
from factpulse.models.
|
|
30
|
-
from factpulse.models.
|
|
31
|
-
from factpulse.models.
|
|
32
|
-
from factpulse.models.consulter_facture_request import ConsulterFactureRequest
|
|
33
|
-
from factpulse.models.consulter_facture_response import ConsulterFactureResponse
|
|
34
|
-
from factpulse.models.consulter_structure_request import ConsulterStructureRequest
|
|
35
|
-
from factpulse.models.consulter_structure_response import ConsulterStructureResponse
|
|
36
|
-
from factpulse.models.obtenir_id_chorus_pro_request import ObtenirIdChorusProRequest
|
|
37
|
-
from factpulse.models.obtenir_id_chorus_pro_response import ObtenirIdChorusProResponse
|
|
38
|
-
from factpulse.models.rechercher_services_response import RechercherServicesResponse
|
|
39
|
-
from factpulse.models.rechercher_structure_request import RechercherStructureRequest
|
|
40
|
-
from factpulse.models.rechercher_structure_response import RechercherStructureResponse
|
|
41
|
-
from factpulse.models.soumettre_facture_request import SoumettreFactureRequest
|
|
42
|
-
from factpulse.models.soumettre_facture_response import SoumettreFactureResponse
|
|
20
|
+
from typing import Any, Dict
|
|
21
|
+
from factpulse.models.get_chorus_pro_id_request import GetChorusProIdRequest
|
|
22
|
+
from factpulse.models.get_chorus_pro_id_response import GetChorusProIdResponse
|
|
23
|
+
from factpulse.models.get_invoice_request import GetInvoiceRequest
|
|
24
|
+
from factpulse.models.get_invoice_response import GetInvoiceResponse
|
|
25
|
+
from factpulse.models.get_structure_request import GetStructureRequest
|
|
26
|
+
from factpulse.models.get_structure_response import GetStructureResponse
|
|
27
|
+
from factpulse.models.search_services_response import SearchServicesResponse
|
|
28
|
+
from factpulse.models.search_structure_request import SearchStructureRequest
|
|
29
|
+
from factpulse.models.search_structure_response import SearchStructureResponse
|
|
30
|
+
from factpulse.models.submit_invoice_request import SubmitInvoiceRequest
|
|
31
|
+
from factpulse.models.submit_invoice_response import SubmitInvoiceResponse
|
|
43
32
|
|
|
44
33
|
from factpulse.api_client import ApiClient, RequestSerialized
|
|
45
34
|
from factpulse.api_response import ApiResponse
|
|
@@ -62,7 +51,7 @@ class ChorusProApi:
|
|
|
62
51
|
@validate_call
|
|
63
52
|
def ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post(
|
|
64
53
|
self,
|
|
65
|
-
|
|
54
|
+
request_body: Dict[str, Any],
|
|
66
55
|
_request_timeout: Union[
|
|
67
56
|
None,
|
|
68
57
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -76,12 +65,12 @@ class ChorusProApi:
|
|
|
76
65
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
77
66
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
78
67
|
) -> object:
|
|
79
|
-
"""
|
|
68
|
+
"""Add an attachment
|
|
80
69
|
|
|
81
|
-
|
|
70
|
+
Add an attachment to the current user account. **Max size**: 10 MB per file **Example payload**: ```json { \"pieceJointeFichier\": \"JVBERi0xLjQKJeLjz9MKNSAwIG9iago8P...\", \"pieceJointeNom\": \"purchase_order.pdf\", \"pieceJointeTypeMime\": \"application/pdf\", \"pieceJointeExtension\": \"PDF\" } ``` **Returns**: The attachment ID (`pieceJointeIdFichier`) to use in `/factures/completer`. **Accepted extensions**: PDF, JPG, PNG, ZIP, XML, etc.
|
|
82
71
|
|
|
83
|
-
:param
|
|
84
|
-
:type
|
|
72
|
+
:param request_body: (required)
|
|
73
|
+
:type request_body: Dict[str, object]
|
|
85
74
|
:param _request_timeout: timeout setting for this request. If one
|
|
86
75
|
number provided, it will be total request
|
|
87
76
|
timeout. It can also be a pair (tuple) of
|
|
@@ -105,7 +94,7 @@ class ChorusProApi:
|
|
|
105
94
|
""" # noqa: E501
|
|
106
95
|
|
|
107
96
|
_param = self._ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post_serialize(
|
|
108
|
-
|
|
97
|
+
request_body=request_body,
|
|
109
98
|
_request_auth=_request_auth,
|
|
110
99
|
_content_type=_content_type,
|
|
111
100
|
_headers=_headers,
|
|
@@ -130,7 +119,7 @@ class ChorusProApi:
|
|
|
130
119
|
@validate_call
|
|
131
120
|
def ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post_with_http_info(
|
|
132
121
|
self,
|
|
133
|
-
|
|
122
|
+
request_body: Dict[str, Any],
|
|
134
123
|
_request_timeout: Union[
|
|
135
124
|
None,
|
|
136
125
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -144,12 +133,12 @@ class ChorusProApi:
|
|
|
144
133
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
145
134
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
146
135
|
) -> ApiResponse[object]:
|
|
147
|
-
"""
|
|
136
|
+
"""Add an attachment
|
|
148
137
|
|
|
149
|
-
|
|
138
|
+
Add an attachment to the current user account. **Max size**: 10 MB per file **Example payload**: ```json { \"pieceJointeFichier\": \"JVBERi0xLjQKJeLjz9MKNSAwIG9iago8P...\", \"pieceJointeNom\": \"purchase_order.pdf\", \"pieceJointeTypeMime\": \"application/pdf\", \"pieceJointeExtension\": \"PDF\" } ``` **Returns**: The attachment ID (`pieceJointeIdFichier`) to use in `/factures/completer`. **Accepted extensions**: PDF, JPG, PNG, ZIP, XML, etc.
|
|
150
139
|
|
|
151
|
-
:param
|
|
152
|
-
:type
|
|
140
|
+
:param request_body: (required)
|
|
141
|
+
:type request_body: Dict[str, object]
|
|
153
142
|
:param _request_timeout: timeout setting for this request. If one
|
|
154
143
|
number provided, it will be total request
|
|
155
144
|
timeout. It can also be a pair (tuple) of
|
|
@@ -173,7 +162,7 @@ class ChorusProApi:
|
|
|
173
162
|
""" # noqa: E501
|
|
174
163
|
|
|
175
164
|
_param = self._ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post_serialize(
|
|
176
|
-
|
|
165
|
+
request_body=request_body,
|
|
177
166
|
_request_auth=_request_auth,
|
|
178
167
|
_content_type=_content_type,
|
|
179
168
|
_headers=_headers,
|
|
@@ -198,7 +187,7 @@ class ChorusProApi:
|
|
|
198
187
|
@validate_call
|
|
199
188
|
def ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post_without_preload_content(
|
|
200
189
|
self,
|
|
201
|
-
|
|
190
|
+
request_body: Dict[str, Any],
|
|
202
191
|
_request_timeout: Union[
|
|
203
192
|
None,
|
|
204
193
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -212,12 +201,12 @@ class ChorusProApi:
|
|
|
212
201
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
213
202
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
214
203
|
) -> RESTResponseType:
|
|
215
|
-
"""
|
|
204
|
+
"""Add an attachment
|
|
216
205
|
|
|
217
|
-
|
|
206
|
+
Add an attachment to the current user account. **Max size**: 10 MB per file **Example payload**: ```json { \"pieceJointeFichier\": \"JVBERi0xLjQKJeLjz9MKNSAwIG9iago8P...\", \"pieceJointeNom\": \"purchase_order.pdf\", \"pieceJointeTypeMime\": \"application/pdf\", \"pieceJointeExtension\": \"PDF\" } ``` **Returns**: The attachment ID (`pieceJointeIdFichier`) to use in `/factures/completer`. **Accepted extensions**: PDF, JPG, PNG, ZIP, XML, etc.
|
|
218
207
|
|
|
219
|
-
:param
|
|
220
|
-
:type
|
|
208
|
+
:param request_body: (required)
|
|
209
|
+
:type request_body: Dict[str, object]
|
|
221
210
|
:param _request_timeout: timeout setting for this request. If one
|
|
222
211
|
number provided, it will be total request
|
|
223
212
|
timeout. It can also be a pair (tuple) of
|
|
@@ -241,7 +230,7 @@ class ChorusProApi:
|
|
|
241
230
|
""" # noqa: E501
|
|
242
231
|
|
|
243
232
|
_param = self._ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post_serialize(
|
|
244
|
-
|
|
233
|
+
request_body=request_body,
|
|
245
234
|
_request_auth=_request_auth,
|
|
246
235
|
_content_type=_content_type,
|
|
247
236
|
_headers=_headers,
|
|
@@ -261,7 +250,7 @@ class ChorusProApi:
|
|
|
261
250
|
|
|
262
251
|
def _ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post_serialize(
|
|
263
252
|
self,
|
|
264
|
-
|
|
253
|
+
request_body,
|
|
265
254
|
_request_auth,
|
|
266
255
|
_content_type,
|
|
267
256
|
_headers,
|
|
@@ -287,8 +276,8 @@ class ChorusProApi:
|
|
|
287
276
|
# process the header parameters
|
|
288
277
|
# process the form parameters
|
|
289
278
|
# process the body parameter
|
|
290
|
-
if
|
|
291
|
-
_body_params =
|
|
279
|
+
if request_body is not None:
|
|
280
|
+
_body_params = request_body
|
|
292
281
|
|
|
293
282
|
|
|
294
283
|
# set the HTTP header `Accept`
|
|
@@ -339,7 +328,7 @@ class ChorusProApi:
|
|
|
339
328
|
@validate_call
|
|
340
329
|
def completer_facture_api_v1_chorus_pro_factures_completer_post(
|
|
341
330
|
self,
|
|
342
|
-
|
|
331
|
+
request_body: Dict[str, Any],
|
|
343
332
|
_request_timeout: Union[
|
|
344
333
|
None,
|
|
345
334
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -353,12 +342,12 @@ class ChorusProApi:
|
|
|
353
342
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
354
343
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
355
344
|
) -> object:
|
|
356
|
-
"""
|
|
345
|
+
"""Complete a suspended invoice (Supplier)
|
|
357
346
|
|
|
358
|
-
|
|
347
|
+
Complete a SUSPENDUE status invoice by adding attachments or a comment. **Required status**: SUSPENDUE **Possible actions**: - Add attachments (supporting documents, purchase orders, etc.) - Modify comment **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"commentaire\": \"Here are the requested documents\", \"listePiecesJointes\": [ { \"pieceJointeIdFichier\": 98765, \"pieceJointeNom\": \"purchase_order.pdf\" } ] } ``` **Note**: Attachments must first be uploaded via `/transverses/ajouter-fichier`. **After completion**: The invoice returns to MISE_A_DISPOSITION status.
|
|
359
348
|
|
|
360
|
-
:param
|
|
361
|
-
:type
|
|
349
|
+
:param request_body: (required)
|
|
350
|
+
:type request_body: Dict[str, object]
|
|
362
351
|
:param _request_timeout: timeout setting for this request. If one
|
|
363
352
|
number provided, it will be total request
|
|
364
353
|
timeout. It can also be a pair (tuple) of
|
|
@@ -382,7 +371,7 @@ class ChorusProApi:
|
|
|
382
371
|
""" # noqa: E501
|
|
383
372
|
|
|
384
373
|
_param = self._completer_facture_api_v1_chorus_pro_factures_completer_post_serialize(
|
|
385
|
-
|
|
374
|
+
request_body=request_body,
|
|
386
375
|
_request_auth=_request_auth,
|
|
387
376
|
_content_type=_content_type,
|
|
388
377
|
_headers=_headers,
|
|
@@ -407,7 +396,7 @@ class ChorusProApi:
|
|
|
407
396
|
@validate_call
|
|
408
397
|
def completer_facture_api_v1_chorus_pro_factures_completer_post_with_http_info(
|
|
409
398
|
self,
|
|
410
|
-
|
|
399
|
+
request_body: Dict[str, Any],
|
|
411
400
|
_request_timeout: Union[
|
|
412
401
|
None,
|
|
413
402
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -421,12 +410,12 @@ class ChorusProApi:
|
|
|
421
410
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
422
411
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
423
412
|
) -> ApiResponse[object]:
|
|
424
|
-
"""
|
|
413
|
+
"""Complete a suspended invoice (Supplier)
|
|
425
414
|
|
|
426
|
-
|
|
415
|
+
Complete a SUSPENDUE status invoice by adding attachments or a comment. **Required status**: SUSPENDUE **Possible actions**: - Add attachments (supporting documents, purchase orders, etc.) - Modify comment **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"commentaire\": \"Here are the requested documents\", \"listePiecesJointes\": [ { \"pieceJointeIdFichier\": 98765, \"pieceJointeNom\": \"purchase_order.pdf\" } ] } ``` **Note**: Attachments must first be uploaded via `/transverses/ajouter-fichier`. **After completion**: The invoice returns to MISE_A_DISPOSITION status.
|
|
427
416
|
|
|
428
|
-
:param
|
|
429
|
-
:type
|
|
417
|
+
:param request_body: (required)
|
|
418
|
+
:type request_body: Dict[str, object]
|
|
430
419
|
:param _request_timeout: timeout setting for this request. If one
|
|
431
420
|
number provided, it will be total request
|
|
432
421
|
timeout. It can also be a pair (tuple) of
|
|
@@ -450,7 +439,7 @@ class ChorusProApi:
|
|
|
450
439
|
""" # noqa: E501
|
|
451
440
|
|
|
452
441
|
_param = self._completer_facture_api_v1_chorus_pro_factures_completer_post_serialize(
|
|
453
|
-
|
|
442
|
+
request_body=request_body,
|
|
454
443
|
_request_auth=_request_auth,
|
|
455
444
|
_content_type=_content_type,
|
|
456
445
|
_headers=_headers,
|
|
@@ -475,7 +464,7 @@ class ChorusProApi:
|
|
|
475
464
|
@validate_call
|
|
476
465
|
def completer_facture_api_v1_chorus_pro_factures_completer_post_without_preload_content(
|
|
477
466
|
self,
|
|
478
|
-
|
|
467
|
+
request_body: Dict[str, Any],
|
|
479
468
|
_request_timeout: Union[
|
|
480
469
|
None,
|
|
481
470
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -489,12 +478,12 @@ class ChorusProApi:
|
|
|
489
478
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
490
479
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
491
480
|
) -> RESTResponseType:
|
|
492
|
-
"""
|
|
481
|
+
"""Complete a suspended invoice (Supplier)
|
|
493
482
|
|
|
494
|
-
|
|
483
|
+
Complete a SUSPENDUE status invoice by adding attachments or a comment. **Required status**: SUSPENDUE **Possible actions**: - Add attachments (supporting documents, purchase orders, etc.) - Modify comment **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"commentaire\": \"Here are the requested documents\", \"listePiecesJointes\": [ { \"pieceJointeIdFichier\": 98765, \"pieceJointeNom\": \"purchase_order.pdf\" } ] } ``` **Note**: Attachments must first be uploaded via `/transverses/ajouter-fichier`. **After completion**: The invoice returns to MISE_A_DISPOSITION status.
|
|
495
484
|
|
|
496
|
-
:param
|
|
497
|
-
:type
|
|
485
|
+
:param request_body: (required)
|
|
486
|
+
:type request_body: Dict[str, object]
|
|
498
487
|
:param _request_timeout: timeout setting for this request. If one
|
|
499
488
|
number provided, it will be total request
|
|
500
489
|
timeout. It can also be a pair (tuple) of
|
|
@@ -518,7 +507,7 @@ class ChorusProApi:
|
|
|
518
507
|
""" # noqa: E501
|
|
519
508
|
|
|
520
509
|
_param = self._completer_facture_api_v1_chorus_pro_factures_completer_post_serialize(
|
|
521
|
-
|
|
510
|
+
request_body=request_body,
|
|
522
511
|
_request_auth=_request_auth,
|
|
523
512
|
_content_type=_content_type,
|
|
524
513
|
_headers=_headers,
|
|
@@ -538,7 +527,7 @@ class ChorusProApi:
|
|
|
538
527
|
|
|
539
528
|
def _completer_facture_api_v1_chorus_pro_factures_completer_post_serialize(
|
|
540
529
|
self,
|
|
541
|
-
|
|
530
|
+
request_body,
|
|
542
531
|
_request_auth,
|
|
543
532
|
_content_type,
|
|
544
533
|
_headers,
|
|
@@ -564,8 +553,8 @@ class ChorusProApi:
|
|
|
564
553
|
# process the header parameters
|
|
565
554
|
# process the form parameters
|
|
566
555
|
# process the body parameter
|
|
567
|
-
if
|
|
568
|
-
_body_params =
|
|
556
|
+
if request_body is not None:
|
|
557
|
+
_body_params = request_body
|
|
569
558
|
|
|
570
559
|
|
|
571
560
|
# set the HTTP header `Accept`
|
|
@@ -616,7 +605,7 @@ class ChorusProApi:
|
|
|
616
605
|
@validate_call
|
|
617
606
|
def consulter_facture_api_v1_chorus_pro_factures_consulter_post(
|
|
618
607
|
self,
|
|
619
|
-
|
|
608
|
+
get_invoice_request: GetInvoiceRequest,
|
|
620
609
|
_request_timeout: Union[
|
|
621
610
|
None,
|
|
622
611
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -629,13 +618,13 @@ class ChorusProApi:
|
|
|
629
618
|
_content_type: Optional[StrictStr] = None,
|
|
630
619
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
631
620
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
632
|
-
) ->
|
|
633
|
-
"""
|
|
621
|
+
) -> GetInvoiceResponse:
|
|
622
|
+
"""Consult invoice status
|
|
634
623
|
|
|
635
|
-
|
|
624
|
+
Retrieves the information and current status of an invoice submitted to Chorus Pro. **Returns**: - Invoice number and date - Total gross amount - **Current status**: SOUMISE, VALIDEE, REJETEE, SUSPENDUE, MANDATEE, MISE_EN_PAIEMENT, etc. - Recipient structure **Use cases**: - Track the processing progress of an invoice - Check if an invoice has been validated or rejected - Get the payment date **Polling**: Call this endpoint regularly to track status changes.
|
|
636
625
|
|
|
637
|
-
:param
|
|
638
|
-
:type
|
|
626
|
+
:param get_invoice_request: (required)
|
|
627
|
+
:type get_invoice_request: GetInvoiceRequest
|
|
639
628
|
:param _request_timeout: timeout setting for this request. If one
|
|
640
629
|
number provided, it will be total request
|
|
641
630
|
timeout. It can also be a pair (tuple) of
|
|
@@ -659,7 +648,7 @@ class ChorusProApi:
|
|
|
659
648
|
""" # noqa: E501
|
|
660
649
|
|
|
661
650
|
_param = self._consulter_facture_api_v1_chorus_pro_factures_consulter_post_serialize(
|
|
662
|
-
|
|
651
|
+
get_invoice_request=get_invoice_request,
|
|
663
652
|
_request_auth=_request_auth,
|
|
664
653
|
_content_type=_content_type,
|
|
665
654
|
_headers=_headers,
|
|
@@ -667,7 +656,7 @@ class ChorusProApi:
|
|
|
667
656
|
)
|
|
668
657
|
|
|
669
658
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
670
|
-
'200': "
|
|
659
|
+
'200': "GetInvoiceResponse",
|
|
671
660
|
'422': "HTTPValidationError",
|
|
672
661
|
}
|
|
673
662
|
response_data = self.api_client.call_api(
|
|
@@ -684,7 +673,7 @@ class ChorusProApi:
|
|
|
684
673
|
@validate_call
|
|
685
674
|
def consulter_facture_api_v1_chorus_pro_factures_consulter_post_with_http_info(
|
|
686
675
|
self,
|
|
687
|
-
|
|
676
|
+
get_invoice_request: GetInvoiceRequest,
|
|
688
677
|
_request_timeout: Union[
|
|
689
678
|
None,
|
|
690
679
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -697,13 +686,13 @@ class ChorusProApi:
|
|
|
697
686
|
_content_type: Optional[StrictStr] = None,
|
|
698
687
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
699
688
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
700
|
-
) -> ApiResponse[
|
|
701
|
-
"""
|
|
689
|
+
) -> ApiResponse[GetInvoiceResponse]:
|
|
690
|
+
"""Consult invoice status
|
|
702
691
|
|
|
703
|
-
|
|
692
|
+
Retrieves the information and current status of an invoice submitted to Chorus Pro. **Returns**: - Invoice number and date - Total gross amount - **Current status**: SOUMISE, VALIDEE, REJETEE, SUSPENDUE, MANDATEE, MISE_EN_PAIEMENT, etc. - Recipient structure **Use cases**: - Track the processing progress of an invoice - Check if an invoice has been validated or rejected - Get the payment date **Polling**: Call this endpoint regularly to track status changes.
|
|
704
693
|
|
|
705
|
-
:param
|
|
706
|
-
:type
|
|
694
|
+
:param get_invoice_request: (required)
|
|
695
|
+
:type get_invoice_request: GetInvoiceRequest
|
|
707
696
|
:param _request_timeout: timeout setting for this request. If one
|
|
708
697
|
number provided, it will be total request
|
|
709
698
|
timeout. It can also be a pair (tuple) of
|
|
@@ -727,7 +716,7 @@ class ChorusProApi:
|
|
|
727
716
|
""" # noqa: E501
|
|
728
717
|
|
|
729
718
|
_param = self._consulter_facture_api_v1_chorus_pro_factures_consulter_post_serialize(
|
|
730
|
-
|
|
719
|
+
get_invoice_request=get_invoice_request,
|
|
731
720
|
_request_auth=_request_auth,
|
|
732
721
|
_content_type=_content_type,
|
|
733
722
|
_headers=_headers,
|
|
@@ -735,7 +724,7 @@ class ChorusProApi:
|
|
|
735
724
|
)
|
|
736
725
|
|
|
737
726
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
738
|
-
'200': "
|
|
727
|
+
'200': "GetInvoiceResponse",
|
|
739
728
|
'422': "HTTPValidationError",
|
|
740
729
|
}
|
|
741
730
|
response_data = self.api_client.call_api(
|
|
@@ -752,7 +741,7 @@ class ChorusProApi:
|
|
|
752
741
|
@validate_call
|
|
753
742
|
def consulter_facture_api_v1_chorus_pro_factures_consulter_post_without_preload_content(
|
|
754
743
|
self,
|
|
755
|
-
|
|
744
|
+
get_invoice_request: GetInvoiceRequest,
|
|
756
745
|
_request_timeout: Union[
|
|
757
746
|
None,
|
|
758
747
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -766,12 +755,12 @@ class ChorusProApi:
|
|
|
766
755
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
767
756
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
768
757
|
) -> RESTResponseType:
|
|
769
|
-
"""
|
|
758
|
+
"""Consult invoice status
|
|
770
759
|
|
|
771
|
-
|
|
760
|
+
Retrieves the information and current status of an invoice submitted to Chorus Pro. **Returns**: - Invoice number and date - Total gross amount - **Current status**: SOUMISE, VALIDEE, REJETEE, SUSPENDUE, MANDATEE, MISE_EN_PAIEMENT, etc. - Recipient structure **Use cases**: - Track the processing progress of an invoice - Check if an invoice has been validated or rejected - Get the payment date **Polling**: Call this endpoint regularly to track status changes.
|
|
772
761
|
|
|
773
|
-
:param
|
|
774
|
-
:type
|
|
762
|
+
:param get_invoice_request: (required)
|
|
763
|
+
:type get_invoice_request: GetInvoiceRequest
|
|
775
764
|
:param _request_timeout: timeout setting for this request. If one
|
|
776
765
|
number provided, it will be total request
|
|
777
766
|
timeout. It can also be a pair (tuple) of
|
|
@@ -795,7 +784,7 @@ class ChorusProApi:
|
|
|
795
784
|
""" # noqa: E501
|
|
796
785
|
|
|
797
786
|
_param = self._consulter_facture_api_v1_chorus_pro_factures_consulter_post_serialize(
|
|
798
|
-
|
|
787
|
+
get_invoice_request=get_invoice_request,
|
|
799
788
|
_request_auth=_request_auth,
|
|
800
789
|
_content_type=_content_type,
|
|
801
790
|
_headers=_headers,
|
|
@@ -803,7 +792,7 @@ class ChorusProApi:
|
|
|
803
792
|
)
|
|
804
793
|
|
|
805
794
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
806
|
-
'200': "
|
|
795
|
+
'200': "GetInvoiceResponse",
|
|
807
796
|
'422': "HTTPValidationError",
|
|
808
797
|
}
|
|
809
798
|
response_data = self.api_client.call_api(
|
|
@@ -815,7 +804,7 @@ class ChorusProApi:
|
|
|
815
804
|
|
|
816
805
|
def _consulter_facture_api_v1_chorus_pro_factures_consulter_post_serialize(
|
|
817
806
|
self,
|
|
818
|
-
|
|
807
|
+
get_invoice_request,
|
|
819
808
|
_request_auth,
|
|
820
809
|
_content_type,
|
|
821
810
|
_headers,
|
|
@@ -841,8 +830,8 @@ class ChorusProApi:
|
|
|
841
830
|
# process the header parameters
|
|
842
831
|
# process the form parameters
|
|
843
832
|
# process the body parameter
|
|
844
|
-
if
|
|
845
|
-
_body_params =
|
|
833
|
+
if get_invoice_request is not None:
|
|
834
|
+
_body_params = get_invoice_request
|
|
846
835
|
|
|
847
836
|
|
|
848
837
|
# set the HTTP header `Accept`
|
|
@@ -893,7 +882,7 @@ class ChorusProApi:
|
|
|
893
882
|
@validate_call
|
|
894
883
|
def consulter_structure_api_v1_chorus_pro_structures_consulter_post(
|
|
895
884
|
self,
|
|
896
|
-
|
|
885
|
+
get_structure_request: GetStructureRequest,
|
|
897
886
|
_request_timeout: Union[
|
|
898
887
|
None,
|
|
899
888
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -906,13 +895,13 @@ class ChorusProApi:
|
|
|
906
895
|
_content_type: Optional[StrictStr] = None,
|
|
907
896
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
908
897
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
909
|
-
) ->
|
|
910
|
-
"""
|
|
898
|
+
) -> GetStructureResponse:
|
|
899
|
+
"""Consult structure details
|
|
911
900
|
|
|
912
|
-
|
|
901
|
+
Retrieves detailed information about a Chorus Pro structure. **Returns**: - Company name - Intra-EU VAT number - Contact email - **Required parameters**: Indicates if service code and/or engagement number are required to submit an invoice **Typical step**: Called after `search-structures` to know which fields are mandatory before submitting an invoice.
|
|
913
902
|
|
|
914
|
-
:param
|
|
915
|
-
:type
|
|
903
|
+
:param get_structure_request: (required)
|
|
904
|
+
:type get_structure_request: GetStructureRequest
|
|
916
905
|
:param _request_timeout: timeout setting for this request. If one
|
|
917
906
|
number provided, it will be total request
|
|
918
907
|
timeout. It can also be a pair (tuple) of
|
|
@@ -936,7 +925,7 @@ class ChorusProApi:
|
|
|
936
925
|
""" # noqa: E501
|
|
937
926
|
|
|
938
927
|
_param = self._consulter_structure_api_v1_chorus_pro_structures_consulter_post_serialize(
|
|
939
|
-
|
|
928
|
+
get_structure_request=get_structure_request,
|
|
940
929
|
_request_auth=_request_auth,
|
|
941
930
|
_content_type=_content_type,
|
|
942
931
|
_headers=_headers,
|
|
@@ -944,7 +933,7 @@ class ChorusProApi:
|
|
|
944
933
|
)
|
|
945
934
|
|
|
946
935
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
947
|
-
'200': "
|
|
936
|
+
'200': "GetStructureResponse",
|
|
948
937
|
'422': "HTTPValidationError",
|
|
949
938
|
}
|
|
950
939
|
response_data = self.api_client.call_api(
|
|
@@ -961,7 +950,7 @@ class ChorusProApi:
|
|
|
961
950
|
@validate_call
|
|
962
951
|
def consulter_structure_api_v1_chorus_pro_structures_consulter_post_with_http_info(
|
|
963
952
|
self,
|
|
964
|
-
|
|
953
|
+
get_structure_request: GetStructureRequest,
|
|
965
954
|
_request_timeout: Union[
|
|
966
955
|
None,
|
|
967
956
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -974,13 +963,13 @@ class ChorusProApi:
|
|
|
974
963
|
_content_type: Optional[StrictStr] = None,
|
|
975
964
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
976
965
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
977
|
-
) -> ApiResponse[
|
|
978
|
-
"""
|
|
966
|
+
) -> ApiResponse[GetStructureResponse]:
|
|
967
|
+
"""Consult structure details
|
|
979
968
|
|
|
980
|
-
|
|
969
|
+
Retrieves detailed information about a Chorus Pro structure. **Returns**: - Company name - Intra-EU VAT number - Contact email - **Required parameters**: Indicates if service code and/or engagement number are required to submit an invoice **Typical step**: Called after `search-structures` to know which fields are mandatory before submitting an invoice.
|
|
981
970
|
|
|
982
|
-
:param
|
|
983
|
-
:type
|
|
971
|
+
:param get_structure_request: (required)
|
|
972
|
+
:type get_structure_request: GetStructureRequest
|
|
984
973
|
:param _request_timeout: timeout setting for this request. If one
|
|
985
974
|
number provided, it will be total request
|
|
986
975
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1004,7 +993,7 @@ class ChorusProApi:
|
|
|
1004
993
|
""" # noqa: E501
|
|
1005
994
|
|
|
1006
995
|
_param = self._consulter_structure_api_v1_chorus_pro_structures_consulter_post_serialize(
|
|
1007
|
-
|
|
996
|
+
get_structure_request=get_structure_request,
|
|
1008
997
|
_request_auth=_request_auth,
|
|
1009
998
|
_content_type=_content_type,
|
|
1010
999
|
_headers=_headers,
|
|
@@ -1012,7 +1001,7 @@ class ChorusProApi:
|
|
|
1012
1001
|
)
|
|
1013
1002
|
|
|
1014
1003
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1015
|
-
'200': "
|
|
1004
|
+
'200': "GetStructureResponse",
|
|
1016
1005
|
'422': "HTTPValidationError",
|
|
1017
1006
|
}
|
|
1018
1007
|
response_data = self.api_client.call_api(
|
|
@@ -1029,7 +1018,7 @@ class ChorusProApi:
|
|
|
1029
1018
|
@validate_call
|
|
1030
1019
|
def consulter_structure_api_v1_chorus_pro_structures_consulter_post_without_preload_content(
|
|
1031
1020
|
self,
|
|
1032
|
-
|
|
1021
|
+
get_structure_request: GetStructureRequest,
|
|
1033
1022
|
_request_timeout: Union[
|
|
1034
1023
|
None,
|
|
1035
1024
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1043,12 +1032,12 @@ class ChorusProApi:
|
|
|
1043
1032
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1044
1033
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1045
1034
|
) -> RESTResponseType:
|
|
1046
|
-
"""
|
|
1035
|
+
"""Consult structure details
|
|
1047
1036
|
|
|
1048
|
-
|
|
1037
|
+
Retrieves detailed information about a Chorus Pro structure. **Returns**: - Company name - Intra-EU VAT number - Contact email - **Required parameters**: Indicates if service code and/or engagement number are required to submit an invoice **Typical step**: Called after `search-structures` to know which fields are mandatory before submitting an invoice.
|
|
1049
1038
|
|
|
1050
|
-
:param
|
|
1051
|
-
:type
|
|
1039
|
+
:param get_structure_request: (required)
|
|
1040
|
+
:type get_structure_request: GetStructureRequest
|
|
1052
1041
|
:param _request_timeout: timeout setting for this request. If one
|
|
1053
1042
|
number provided, it will be total request
|
|
1054
1043
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1072,7 +1061,7 @@ class ChorusProApi:
|
|
|
1072
1061
|
""" # noqa: E501
|
|
1073
1062
|
|
|
1074
1063
|
_param = self._consulter_structure_api_v1_chorus_pro_structures_consulter_post_serialize(
|
|
1075
|
-
|
|
1064
|
+
get_structure_request=get_structure_request,
|
|
1076
1065
|
_request_auth=_request_auth,
|
|
1077
1066
|
_content_type=_content_type,
|
|
1078
1067
|
_headers=_headers,
|
|
@@ -1080,7 +1069,7 @@ class ChorusProApi:
|
|
|
1080
1069
|
)
|
|
1081
1070
|
|
|
1082
1071
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1083
|
-
'200': "
|
|
1072
|
+
'200': "GetStructureResponse",
|
|
1084
1073
|
'422': "HTTPValidationError",
|
|
1085
1074
|
}
|
|
1086
1075
|
response_data = self.api_client.call_api(
|
|
@@ -1092,7 +1081,7 @@ class ChorusProApi:
|
|
|
1092
1081
|
|
|
1093
1082
|
def _consulter_structure_api_v1_chorus_pro_structures_consulter_post_serialize(
|
|
1094
1083
|
self,
|
|
1095
|
-
|
|
1084
|
+
get_structure_request,
|
|
1096
1085
|
_request_auth,
|
|
1097
1086
|
_content_type,
|
|
1098
1087
|
_headers,
|
|
@@ -1118,8 +1107,8 @@ class ChorusProApi:
|
|
|
1118
1107
|
# process the header parameters
|
|
1119
1108
|
# process the form parameters
|
|
1120
1109
|
# process the body parameter
|
|
1121
|
-
if
|
|
1122
|
-
_body_params =
|
|
1110
|
+
if get_structure_request is not None:
|
|
1111
|
+
_body_params = get_structure_request
|
|
1123
1112
|
|
|
1124
1113
|
|
|
1125
1114
|
# set the HTTP header `Accept`
|
|
@@ -1171,7 +1160,6 @@ class ChorusProApi:
|
|
|
1171
1160
|
def lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get(
|
|
1172
1161
|
self,
|
|
1173
1162
|
id_structure_cpp: StrictInt,
|
|
1174
|
-
body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get: BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet,
|
|
1175
1163
|
_request_timeout: Union[
|
|
1176
1164
|
None,
|
|
1177
1165
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1184,15 +1172,13 @@ class ChorusProApi:
|
|
|
1184
1172
|
_content_type: Optional[StrictStr] = None,
|
|
1185
1173
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1186
1174
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1187
|
-
) ->
|
|
1188
|
-
"""
|
|
1175
|
+
) -> SearchServicesResponse:
|
|
1176
|
+
"""List structure services
|
|
1189
1177
|
|
|
1190
|
-
|
|
1178
|
+
Retrieves the list of active services for a public structure. **Use cases**: - List available services for an administration - Verify that a service code exists before submitting an invoice **Returns**: - List of services with their code, label, and status (active/inactive)
|
|
1191
1179
|
|
|
1192
1180
|
:param id_structure_cpp: (required)
|
|
1193
1181
|
:type id_structure_cpp: int
|
|
1194
|
-
:param body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get: (required)
|
|
1195
|
-
:type body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get: BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
1196
1182
|
:param _request_timeout: timeout setting for this request. If one
|
|
1197
1183
|
number provided, it will be total request
|
|
1198
1184
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1217,7 +1203,6 @@ class ChorusProApi:
|
|
|
1217
1203
|
|
|
1218
1204
|
_param = self._lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get_serialize(
|
|
1219
1205
|
id_structure_cpp=id_structure_cpp,
|
|
1220
|
-
body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get=body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get,
|
|
1221
1206
|
_request_auth=_request_auth,
|
|
1222
1207
|
_content_type=_content_type,
|
|
1223
1208
|
_headers=_headers,
|
|
@@ -1225,7 +1210,7 @@ class ChorusProApi:
|
|
|
1225
1210
|
)
|
|
1226
1211
|
|
|
1227
1212
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1228
|
-
'200': "
|
|
1213
|
+
'200': "SearchServicesResponse",
|
|
1229
1214
|
'422': "HTTPValidationError",
|
|
1230
1215
|
}
|
|
1231
1216
|
response_data = self.api_client.call_api(
|
|
@@ -1243,7 +1228,6 @@ class ChorusProApi:
|
|
|
1243
1228
|
def lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get_with_http_info(
|
|
1244
1229
|
self,
|
|
1245
1230
|
id_structure_cpp: StrictInt,
|
|
1246
|
-
body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get: BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet,
|
|
1247
1231
|
_request_timeout: Union[
|
|
1248
1232
|
None,
|
|
1249
1233
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1256,15 +1240,13 @@ class ChorusProApi:
|
|
|
1256
1240
|
_content_type: Optional[StrictStr] = None,
|
|
1257
1241
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1258
1242
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1259
|
-
) -> ApiResponse[
|
|
1260
|
-
"""
|
|
1243
|
+
) -> ApiResponse[SearchServicesResponse]:
|
|
1244
|
+
"""List structure services
|
|
1261
1245
|
|
|
1262
|
-
|
|
1246
|
+
Retrieves the list of active services for a public structure. **Use cases**: - List available services for an administration - Verify that a service code exists before submitting an invoice **Returns**: - List of services with their code, label, and status (active/inactive)
|
|
1263
1247
|
|
|
1264
1248
|
:param id_structure_cpp: (required)
|
|
1265
1249
|
:type id_structure_cpp: int
|
|
1266
|
-
:param body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get: (required)
|
|
1267
|
-
:type body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get: BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
1268
1250
|
:param _request_timeout: timeout setting for this request. If one
|
|
1269
1251
|
number provided, it will be total request
|
|
1270
1252
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1289,7 +1271,6 @@ class ChorusProApi:
|
|
|
1289
1271
|
|
|
1290
1272
|
_param = self._lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get_serialize(
|
|
1291
1273
|
id_structure_cpp=id_structure_cpp,
|
|
1292
|
-
body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get=body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get,
|
|
1293
1274
|
_request_auth=_request_auth,
|
|
1294
1275
|
_content_type=_content_type,
|
|
1295
1276
|
_headers=_headers,
|
|
@@ -1297,7 +1278,7 @@ class ChorusProApi:
|
|
|
1297
1278
|
)
|
|
1298
1279
|
|
|
1299
1280
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1300
|
-
'200': "
|
|
1281
|
+
'200': "SearchServicesResponse",
|
|
1301
1282
|
'422': "HTTPValidationError",
|
|
1302
1283
|
}
|
|
1303
1284
|
response_data = self.api_client.call_api(
|
|
@@ -1315,7 +1296,6 @@ class ChorusProApi:
|
|
|
1315
1296
|
def lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get_without_preload_content(
|
|
1316
1297
|
self,
|
|
1317
1298
|
id_structure_cpp: StrictInt,
|
|
1318
|
-
body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get: BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet,
|
|
1319
1299
|
_request_timeout: Union[
|
|
1320
1300
|
None,
|
|
1321
1301
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1329,14 +1309,12 @@ class ChorusProApi:
|
|
|
1329
1309
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1330
1310
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1331
1311
|
) -> RESTResponseType:
|
|
1332
|
-
"""
|
|
1312
|
+
"""List structure services
|
|
1333
1313
|
|
|
1334
|
-
|
|
1314
|
+
Retrieves the list of active services for a public structure. **Use cases**: - List available services for an administration - Verify that a service code exists before submitting an invoice **Returns**: - List of services with their code, label, and status (active/inactive)
|
|
1335
1315
|
|
|
1336
1316
|
:param id_structure_cpp: (required)
|
|
1337
1317
|
:type id_structure_cpp: int
|
|
1338
|
-
:param body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get: (required)
|
|
1339
|
-
:type body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get: BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
1340
1318
|
:param _request_timeout: timeout setting for this request. If one
|
|
1341
1319
|
number provided, it will be total request
|
|
1342
1320
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1361,7 +1339,6 @@ class ChorusProApi:
|
|
|
1361
1339
|
|
|
1362
1340
|
_param = self._lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get_serialize(
|
|
1363
1341
|
id_structure_cpp=id_structure_cpp,
|
|
1364
|
-
body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get=body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get,
|
|
1365
1342
|
_request_auth=_request_auth,
|
|
1366
1343
|
_content_type=_content_type,
|
|
1367
1344
|
_headers=_headers,
|
|
@@ -1369,7 +1346,7 @@ class ChorusProApi:
|
|
|
1369
1346
|
)
|
|
1370
1347
|
|
|
1371
1348
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1372
|
-
'200': "
|
|
1349
|
+
'200': "SearchServicesResponse",
|
|
1373
1350
|
'422': "HTTPValidationError",
|
|
1374
1351
|
}
|
|
1375
1352
|
response_data = self.api_client.call_api(
|
|
@@ -1382,7 +1359,6 @@ class ChorusProApi:
|
|
|
1382
1359
|
def _lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get_serialize(
|
|
1383
1360
|
self,
|
|
1384
1361
|
id_structure_cpp,
|
|
1385
|
-
body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get,
|
|
1386
1362
|
_request_auth,
|
|
1387
1363
|
_content_type,
|
|
1388
1364
|
_headers,
|
|
@@ -1410,8 +1386,6 @@ class ChorusProApi:
|
|
|
1410
1386
|
# process the header parameters
|
|
1411
1387
|
# process the form parameters
|
|
1412
1388
|
# process the body parameter
|
|
1413
|
-
if body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get is not None:
|
|
1414
|
-
_body_params = body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get
|
|
1415
1389
|
|
|
1416
1390
|
|
|
1417
1391
|
# set the HTTP header `Accept`
|
|
@@ -1422,19 +1396,6 @@ class ChorusProApi:
|
|
|
1422
1396
|
]
|
|
1423
1397
|
)
|
|
1424
1398
|
|
|
1425
|
-
# set the HTTP header `Content-Type`
|
|
1426
|
-
if _content_type:
|
|
1427
|
-
_header_params['Content-Type'] = _content_type
|
|
1428
|
-
else:
|
|
1429
|
-
_default_content_type = (
|
|
1430
|
-
self.api_client.select_header_content_type(
|
|
1431
|
-
[
|
|
1432
|
-
'application/json'
|
|
1433
|
-
]
|
|
1434
|
-
)
|
|
1435
|
-
)
|
|
1436
|
-
if _default_content_type is not None:
|
|
1437
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1438
1399
|
|
|
1439
1400
|
# authentication setting
|
|
1440
1401
|
_auth_settings: List[str] = [
|
|
@@ -1462,7 +1423,7 @@ class ChorusProApi:
|
|
|
1462
1423
|
@validate_call
|
|
1463
1424
|
def obtenir_id_chorus_pro_depuis_siret_api_v1_chorus_pro_structures_obtenir_id_depuis_siret_post(
|
|
1464
1425
|
self,
|
|
1465
|
-
|
|
1426
|
+
get_chorus_pro_id_request: GetChorusProIdRequest,
|
|
1466
1427
|
_request_timeout: Union[
|
|
1467
1428
|
None,
|
|
1468
1429
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1475,13 +1436,13 @@ class ChorusProApi:
|
|
|
1475
1436
|
_content_type: Optional[StrictStr] = None,
|
|
1476
1437
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1477
1438
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1478
|
-
) ->
|
|
1479
|
-
"""
|
|
1439
|
+
) -> GetChorusProIdResponse:
|
|
1440
|
+
"""Utility: Get Chorus Pro ID from SIRET
|
|
1480
1441
|
|
|
1481
|
-
**
|
|
1442
|
+
**Convenient utility** to get a structure's Chorus Pro ID from its SIRET. This wrapper function combines: 1. Searching for the structure by SIRET 2. Extracting the `id_structure_cpp` if a single structure is found **Returns**: - `id_structure_cpp`: Chorus Pro ID (0 if not found or multiple results) - `designation_structure`: Structure name (if found) - `message`: Explanatory message **Use cases**: - Shortcut to directly get the Chorus Pro ID before submitting an invoice - Simplified alternative to `search-structures` + manual ID extraction **Note**: If multiple structures match the SIRET (rare), returns 0 and an error message.
|
|
1482
1443
|
|
|
1483
|
-
:param
|
|
1484
|
-
:type
|
|
1444
|
+
:param get_chorus_pro_id_request: (required)
|
|
1445
|
+
:type get_chorus_pro_id_request: GetChorusProIdRequest
|
|
1485
1446
|
:param _request_timeout: timeout setting for this request. If one
|
|
1486
1447
|
number provided, it will be total request
|
|
1487
1448
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1505,7 +1466,7 @@ class ChorusProApi:
|
|
|
1505
1466
|
""" # noqa: E501
|
|
1506
1467
|
|
|
1507
1468
|
_param = self._obtenir_id_chorus_pro_depuis_siret_api_v1_chorus_pro_structures_obtenir_id_depuis_siret_post_serialize(
|
|
1508
|
-
|
|
1469
|
+
get_chorus_pro_id_request=get_chorus_pro_id_request,
|
|
1509
1470
|
_request_auth=_request_auth,
|
|
1510
1471
|
_content_type=_content_type,
|
|
1511
1472
|
_headers=_headers,
|
|
@@ -1513,7 +1474,7 @@ class ChorusProApi:
|
|
|
1513
1474
|
)
|
|
1514
1475
|
|
|
1515
1476
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1516
|
-
'200': "
|
|
1477
|
+
'200': "GetChorusProIdResponse",
|
|
1517
1478
|
'422': "HTTPValidationError",
|
|
1518
1479
|
}
|
|
1519
1480
|
response_data = self.api_client.call_api(
|
|
@@ -1530,7 +1491,7 @@ class ChorusProApi:
|
|
|
1530
1491
|
@validate_call
|
|
1531
1492
|
def obtenir_id_chorus_pro_depuis_siret_api_v1_chorus_pro_structures_obtenir_id_depuis_siret_post_with_http_info(
|
|
1532
1493
|
self,
|
|
1533
|
-
|
|
1494
|
+
get_chorus_pro_id_request: GetChorusProIdRequest,
|
|
1534
1495
|
_request_timeout: Union[
|
|
1535
1496
|
None,
|
|
1536
1497
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1543,13 +1504,13 @@ class ChorusProApi:
|
|
|
1543
1504
|
_content_type: Optional[StrictStr] = None,
|
|
1544
1505
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1545
1506
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1546
|
-
) -> ApiResponse[
|
|
1547
|
-
"""
|
|
1507
|
+
) -> ApiResponse[GetChorusProIdResponse]:
|
|
1508
|
+
"""Utility: Get Chorus Pro ID from SIRET
|
|
1548
1509
|
|
|
1549
|
-
**
|
|
1510
|
+
**Convenient utility** to get a structure's Chorus Pro ID from its SIRET. This wrapper function combines: 1. Searching for the structure by SIRET 2. Extracting the `id_structure_cpp` if a single structure is found **Returns**: - `id_structure_cpp`: Chorus Pro ID (0 if not found or multiple results) - `designation_structure`: Structure name (if found) - `message`: Explanatory message **Use cases**: - Shortcut to directly get the Chorus Pro ID before submitting an invoice - Simplified alternative to `search-structures` + manual ID extraction **Note**: If multiple structures match the SIRET (rare), returns 0 and an error message.
|
|
1550
1511
|
|
|
1551
|
-
:param
|
|
1552
|
-
:type
|
|
1512
|
+
:param get_chorus_pro_id_request: (required)
|
|
1513
|
+
:type get_chorus_pro_id_request: GetChorusProIdRequest
|
|
1553
1514
|
:param _request_timeout: timeout setting for this request. If one
|
|
1554
1515
|
number provided, it will be total request
|
|
1555
1516
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1573,7 +1534,7 @@ class ChorusProApi:
|
|
|
1573
1534
|
""" # noqa: E501
|
|
1574
1535
|
|
|
1575
1536
|
_param = self._obtenir_id_chorus_pro_depuis_siret_api_v1_chorus_pro_structures_obtenir_id_depuis_siret_post_serialize(
|
|
1576
|
-
|
|
1537
|
+
get_chorus_pro_id_request=get_chorus_pro_id_request,
|
|
1577
1538
|
_request_auth=_request_auth,
|
|
1578
1539
|
_content_type=_content_type,
|
|
1579
1540
|
_headers=_headers,
|
|
@@ -1581,7 +1542,7 @@ class ChorusProApi:
|
|
|
1581
1542
|
)
|
|
1582
1543
|
|
|
1583
1544
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1584
|
-
'200': "
|
|
1545
|
+
'200': "GetChorusProIdResponse",
|
|
1585
1546
|
'422': "HTTPValidationError",
|
|
1586
1547
|
}
|
|
1587
1548
|
response_data = self.api_client.call_api(
|
|
@@ -1598,7 +1559,7 @@ class ChorusProApi:
|
|
|
1598
1559
|
@validate_call
|
|
1599
1560
|
def obtenir_id_chorus_pro_depuis_siret_api_v1_chorus_pro_structures_obtenir_id_depuis_siret_post_without_preload_content(
|
|
1600
1561
|
self,
|
|
1601
|
-
|
|
1562
|
+
get_chorus_pro_id_request: GetChorusProIdRequest,
|
|
1602
1563
|
_request_timeout: Union[
|
|
1603
1564
|
None,
|
|
1604
1565
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1612,12 +1573,12 @@ class ChorusProApi:
|
|
|
1612
1573
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1613
1574
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1614
1575
|
) -> RESTResponseType:
|
|
1615
|
-
"""
|
|
1576
|
+
"""Utility: Get Chorus Pro ID from SIRET
|
|
1616
1577
|
|
|
1617
|
-
**
|
|
1578
|
+
**Convenient utility** to get a structure's Chorus Pro ID from its SIRET. This wrapper function combines: 1. Searching for the structure by SIRET 2. Extracting the `id_structure_cpp` if a single structure is found **Returns**: - `id_structure_cpp`: Chorus Pro ID (0 if not found or multiple results) - `designation_structure`: Structure name (if found) - `message`: Explanatory message **Use cases**: - Shortcut to directly get the Chorus Pro ID before submitting an invoice - Simplified alternative to `search-structures` + manual ID extraction **Note**: If multiple structures match the SIRET (rare), returns 0 and an error message.
|
|
1618
1579
|
|
|
1619
|
-
:param
|
|
1620
|
-
:type
|
|
1580
|
+
:param get_chorus_pro_id_request: (required)
|
|
1581
|
+
:type get_chorus_pro_id_request: GetChorusProIdRequest
|
|
1621
1582
|
:param _request_timeout: timeout setting for this request. If one
|
|
1622
1583
|
number provided, it will be total request
|
|
1623
1584
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1641,7 +1602,7 @@ class ChorusProApi:
|
|
|
1641
1602
|
""" # noqa: E501
|
|
1642
1603
|
|
|
1643
1604
|
_param = self._obtenir_id_chorus_pro_depuis_siret_api_v1_chorus_pro_structures_obtenir_id_depuis_siret_post_serialize(
|
|
1644
|
-
|
|
1605
|
+
get_chorus_pro_id_request=get_chorus_pro_id_request,
|
|
1645
1606
|
_request_auth=_request_auth,
|
|
1646
1607
|
_content_type=_content_type,
|
|
1647
1608
|
_headers=_headers,
|
|
@@ -1649,7 +1610,7 @@ class ChorusProApi:
|
|
|
1649
1610
|
)
|
|
1650
1611
|
|
|
1651
1612
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1652
|
-
'200': "
|
|
1613
|
+
'200': "GetChorusProIdResponse",
|
|
1653
1614
|
'422': "HTTPValidationError",
|
|
1654
1615
|
}
|
|
1655
1616
|
response_data = self.api_client.call_api(
|
|
@@ -1661,7 +1622,7 @@ class ChorusProApi:
|
|
|
1661
1622
|
|
|
1662
1623
|
def _obtenir_id_chorus_pro_depuis_siret_api_v1_chorus_pro_structures_obtenir_id_depuis_siret_post_serialize(
|
|
1663
1624
|
self,
|
|
1664
|
-
|
|
1625
|
+
get_chorus_pro_id_request,
|
|
1665
1626
|
_request_auth,
|
|
1666
1627
|
_content_type,
|
|
1667
1628
|
_headers,
|
|
@@ -1687,8 +1648,8 @@ class ChorusProApi:
|
|
|
1687
1648
|
# process the header parameters
|
|
1688
1649
|
# process the form parameters
|
|
1689
1650
|
# process the body parameter
|
|
1690
|
-
if
|
|
1691
|
-
_body_params =
|
|
1651
|
+
if get_chorus_pro_id_request is not None:
|
|
1652
|
+
_body_params = get_chorus_pro_id_request
|
|
1692
1653
|
|
|
1693
1654
|
|
|
1694
1655
|
# set the HTTP header `Accept`
|
|
@@ -1739,7 +1700,7 @@ class ChorusProApi:
|
|
|
1739
1700
|
@validate_call
|
|
1740
1701
|
def rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post(
|
|
1741
1702
|
self,
|
|
1742
|
-
|
|
1703
|
+
request_body: Dict[str, Any],
|
|
1743
1704
|
_request_timeout: Union[
|
|
1744
1705
|
None,
|
|
1745
1706
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1753,12 +1714,12 @@ class ChorusProApi:
|
|
|
1753
1714
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1754
1715
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1755
1716
|
) -> object:
|
|
1756
|
-
"""
|
|
1717
|
+
"""Search received invoices (Recipient)
|
|
1757
1718
|
|
|
1758
|
-
|
|
1719
|
+
Search invoices received by the connected recipient. **Filters**: - Downloaded / not downloaded - Reception dates - Status (MISE_A_DISPOSITION, SUSPENDUE, etc.) - Supplier **Useful indicator**: `factureTelechargeeParDestinataire` indicates whether the invoice has already been downloaded.
|
|
1759
1720
|
|
|
1760
|
-
:param
|
|
1761
|
-
:type
|
|
1721
|
+
:param request_body: (required)
|
|
1722
|
+
:type request_body: Dict[str, object]
|
|
1762
1723
|
:param _request_timeout: timeout setting for this request. If one
|
|
1763
1724
|
number provided, it will be total request
|
|
1764
1725
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1782,7 +1743,7 @@ class ChorusProApi:
|
|
|
1782
1743
|
""" # noqa: E501
|
|
1783
1744
|
|
|
1784
1745
|
_param = self._rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post_serialize(
|
|
1785
|
-
|
|
1746
|
+
request_body=request_body,
|
|
1786
1747
|
_request_auth=_request_auth,
|
|
1787
1748
|
_content_type=_content_type,
|
|
1788
1749
|
_headers=_headers,
|
|
@@ -1807,7 +1768,7 @@ class ChorusProApi:
|
|
|
1807
1768
|
@validate_call
|
|
1808
1769
|
def rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post_with_http_info(
|
|
1809
1770
|
self,
|
|
1810
|
-
|
|
1771
|
+
request_body: Dict[str, Any],
|
|
1811
1772
|
_request_timeout: Union[
|
|
1812
1773
|
None,
|
|
1813
1774
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1821,12 +1782,12 @@ class ChorusProApi:
|
|
|
1821
1782
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1822
1783
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1823
1784
|
) -> ApiResponse[object]:
|
|
1824
|
-
"""
|
|
1785
|
+
"""Search received invoices (Recipient)
|
|
1825
1786
|
|
|
1826
|
-
|
|
1787
|
+
Search invoices received by the connected recipient. **Filters**: - Downloaded / not downloaded - Reception dates - Status (MISE_A_DISPOSITION, SUSPENDUE, etc.) - Supplier **Useful indicator**: `factureTelechargeeParDestinataire` indicates whether the invoice has already been downloaded.
|
|
1827
1788
|
|
|
1828
|
-
:param
|
|
1829
|
-
:type
|
|
1789
|
+
:param request_body: (required)
|
|
1790
|
+
:type request_body: Dict[str, object]
|
|
1830
1791
|
:param _request_timeout: timeout setting for this request. If one
|
|
1831
1792
|
number provided, it will be total request
|
|
1832
1793
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1850,7 +1811,7 @@ class ChorusProApi:
|
|
|
1850
1811
|
""" # noqa: E501
|
|
1851
1812
|
|
|
1852
1813
|
_param = self._rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post_serialize(
|
|
1853
|
-
|
|
1814
|
+
request_body=request_body,
|
|
1854
1815
|
_request_auth=_request_auth,
|
|
1855
1816
|
_content_type=_content_type,
|
|
1856
1817
|
_headers=_headers,
|
|
@@ -1875,7 +1836,7 @@ class ChorusProApi:
|
|
|
1875
1836
|
@validate_call
|
|
1876
1837
|
def rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post_without_preload_content(
|
|
1877
1838
|
self,
|
|
1878
|
-
|
|
1839
|
+
request_body: Dict[str, Any],
|
|
1879
1840
|
_request_timeout: Union[
|
|
1880
1841
|
None,
|
|
1881
1842
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1889,12 +1850,12 @@ class ChorusProApi:
|
|
|
1889
1850
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1890
1851
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1891
1852
|
) -> RESTResponseType:
|
|
1892
|
-
"""
|
|
1853
|
+
"""Search received invoices (Recipient)
|
|
1893
1854
|
|
|
1894
|
-
|
|
1855
|
+
Search invoices received by the connected recipient. **Filters**: - Downloaded / not downloaded - Reception dates - Status (MISE_A_DISPOSITION, SUSPENDUE, etc.) - Supplier **Useful indicator**: `factureTelechargeeParDestinataire` indicates whether the invoice has already been downloaded.
|
|
1895
1856
|
|
|
1896
|
-
:param
|
|
1897
|
-
:type
|
|
1857
|
+
:param request_body: (required)
|
|
1858
|
+
:type request_body: Dict[str, object]
|
|
1898
1859
|
:param _request_timeout: timeout setting for this request. If one
|
|
1899
1860
|
number provided, it will be total request
|
|
1900
1861
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1918,7 +1879,7 @@ class ChorusProApi:
|
|
|
1918
1879
|
""" # noqa: E501
|
|
1919
1880
|
|
|
1920
1881
|
_param = self._rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post_serialize(
|
|
1921
|
-
|
|
1882
|
+
request_body=request_body,
|
|
1922
1883
|
_request_auth=_request_auth,
|
|
1923
1884
|
_content_type=_content_type,
|
|
1924
1885
|
_headers=_headers,
|
|
@@ -1938,7 +1899,7 @@ class ChorusProApi:
|
|
|
1938
1899
|
|
|
1939
1900
|
def _rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post_serialize(
|
|
1940
1901
|
self,
|
|
1941
|
-
|
|
1902
|
+
request_body,
|
|
1942
1903
|
_request_auth,
|
|
1943
1904
|
_content_type,
|
|
1944
1905
|
_headers,
|
|
@@ -1964,8 +1925,8 @@ class ChorusProApi:
|
|
|
1964
1925
|
# process the header parameters
|
|
1965
1926
|
# process the form parameters
|
|
1966
1927
|
# process the body parameter
|
|
1967
|
-
if
|
|
1968
|
-
_body_params =
|
|
1928
|
+
if request_body is not None:
|
|
1929
|
+
_body_params = request_body
|
|
1969
1930
|
|
|
1970
1931
|
|
|
1971
1932
|
# set the HTTP header `Accept`
|
|
@@ -2016,7 +1977,7 @@ class ChorusProApi:
|
|
|
2016
1977
|
@validate_call
|
|
2017
1978
|
def rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post(
|
|
2018
1979
|
self,
|
|
2019
|
-
|
|
1980
|
+
request_body: Dict[str, Any],
|
|
2020
1981
|
_request_timeout: Union[
|
|
2021
1982
|
None,
|
|
2022
1983
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2030,12 +1991,12 @@ class ChorusProApi:
|
|
|
2030
1991
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2031
1992
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2032
1993
|
) -> object:
|
|
2033
|
-
"""
|
|
1994
|
+
"""Search issued invoices (Supplier)
|
|
2034
1995
|
|
|
2035
|
-
|
|
1996
|
+
Search invoices issued by the connected supplier. **Available filters**: - Invoice number - Dates (start/end) - Status - Recipient structure - Amount **Use cases**: - Track issued invoices - Verify statuses - Export for accounting
|
|
2036
1997
|
|
|
2037
|
-
:param
|
|
2038
|
-
:type
|
|
1998
|
+
:param request_body: (required)
|
|
1999
|
+
:type request_body: Dict[str, object]
|
|
2039
2000
|
:param _request_timeout: timeout setting for this request. If one
|
|
2040
2001
|
number provided, it will be total request
|
|
2041
2002
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2059,7 +2020,7 @@ class ChorusProApi:
|
|
|
2059
2020
|
""" # noqa: E501
|
|
2060
2021
|
|
|
2061
2022
|
_param = self._rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post_serialize(
|
|
2062
|
-
|
|
2023
|
+
request_body=request_body,
|
|
2063
2024
|
_request_auth=_request_auth,
|
|
2064
2025
|
_content_type=_content_type,
|
|
2065
2026
|
_headers=_headers,
|
|
@@ -2084,7 +2045,7 @@ class ChorusProApi:
|
|
|
2084
2045
|
@validate_call
|
|
2085
2046
|
def rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post_with_http_info(
|
|
2086
2047
|
self,
|
|
2087
|
-
|
|
2048
|
+
request_body: Dict[str, Any],
|
|
2088
2049
|
_request_timeout: Union[
|
|
2089
2050
|
None,
|
|
2090
2051
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2098,12 +2059,12 @@ class ChorusProApi:
|
|
|
2098
2059
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2099
2060
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2100
2061
|
) -> ApiResponse[object]:
|
|
2101
|
-
"""
|
|
2062
|
+
"""Search issued invoices (Supplier)
|
|
2102
2063
|
|
|
2103
|
-
|
|
2064
|
+
Search invoices issued by the connected supplier. **Available filters**: - Invoice number - Dates (start/end) - Status - Recipient structure - Amount **Use cases**: - Track issued invoices - Verify statuses - Export for accounting
|
|
2104
2065
|
|
|
2105
|
-
:param
|
|
2106
|
-
:type
|
|
2066
|
+
:param request_body: (required)
|
|
2067
|
+
:type request_body: Dict[str, object]
|
|
2107
2068
|
:param _request_timeout: timeout setting for this request. If one
|
|
2108
2069
|
number provided, it will be total request
|
|
2109
2070
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2127,7 +2088,7 @@ class ChorusProApi:
|
|
|
2127
2088
|
""" # noqa: E501
|
|
2128
2089
|
|
|
2129
2090
|
_param = self._rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post_serialize(
|
|
2130
|
-
|
|
2091
|
+
request_body=request_body,
|
|
2131
2092
|
_request_auth=_request_auth,
|
|
2132
2093
|
_content_type=_content_type,
|
|
2133
2094
|
_headers=_headers,
|
|
@@ -2152,7 +2113,7 @@ class ChorusProApi:
|
|
|
2152
2113
|
@validate_call
|
|
2153
2114
|
def rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post_without_preload_content(
|
|
2154
2115
|
self,
|
|
2155
|
-
|
|
2116
|
+
request_body: Dict[str, Any],
|
|
2156
2117
|
_request_timeout: Union[
|
|
2157
2118
|
None,
|
|
2158
2119
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2166,12 +2127,12 @@ class ChorusProApi:
|
|
|
2166
2127
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2167
2128
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2168
2129
|
) -> RESTResponseType:
|
|
2169
|
-
"""
|
|
2130
|
+
"""Search issued invoices (Supplier)
|
|
2170
2131
|
|
|
2171
|
-
|
|
2132
|
+
Search invoices issued by the connected supplier. **Available filters**: - Invoice number - Dates (start/end) - Status - Recipient structure - Amount **Use cases**: - Track issued invoices - Verify statuses - Export for accounting
|
|
2172
2133
|
|
|
2173
|
-
:param
|
|
2174
|
-
:type
|
|
2134
|
+
:param request_body: (required)
|
|
2135
|
+
:type request_body: Dict[str, object]
|
|
2175
2136
|
:param _request_timeout: timeout setting for this request. If one
|
|
2176
2137
|
number provided, it will be total request
|
|
2177
2138
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2195,7 +2156,7 @@ class ChorusProApi:
|
|
|
2195
2156
|
""" # noqa: E501
|
|
2196
2157
|
|
|
2197
2158
|
_param = self._rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post_serialize(
|
|
2198
|
-
|
|
2159
|
+
request_body=request_body,
|
|
2199
2160
|
_request_auth=_request_auth,
|
|
2200
2161
|
_content_type=_content_type,
|
|
2201
2162
|
_headers=_headers,
|
|
@@ -2215,7 +2176,7 @@ class ChorusProApi:
|
|
|
2215
2176
|
|
|
2216
2177
|
def _rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post_serialize(
|
|
2217
2178
|
self,
|
|
2218
|
-
|
|
2179
|
+
request_body,
|
|
2219
2180
|
_request_auth,
|
|
2220
2181
|
_content_type,
|
|
2221
2182
|
_headers,
|
|
@@ -2241,8 +2202,8 @@ class ChorusProApi:
|
|
|
2241
2202
|
# process the header parameters
|
|
2242
2203
|
# process the form parameters
|
|
2243
2204
|
# process the body parameter
|
|
2244
|
-
if
|
|
2245
|
-
_body_params =
|
|
2205
|
+
if request_body is not None:
|
|
2206
|
+
_body_params = request_body
|
|
2246
2207
|
|
|
2247
2208
|
|
|
2248
2209
|
# set the HTTP header `Accept`
|
|
@@ -2293,7 +2254,7 @@ class ChorusProApi:
|
|
|
2293
2254
|
@validate_call
|
|
2294
2255
|
def rechercher_structures_api_v1_chorus_pro_structures_rechercher_post(
|
|
2295
2256
|
self,
|
|
2296
|
-
|
|
2257
|
+
search_structure_request: SearchStructureRequest,
|
|
2297
2258
|
_request_timeout: Union[
|
|
2298
2259
|
None,
|
|
2299
2260
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2306,13 +2267,13 @@ class ChorusProApi:
|
|
|
2306
2267
|
_content_type: Optional[StrictStr] = None,
|
|
2307
2268
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2308
2269
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2309
|
-
) ->
|
|
2310
|
-
"""
|
|
2270
|
+
) -> SearchStructureResponse:
|
|
2271
|
+
"""Search Chorus Pro structures
|
|
2311
2272
|
|
|
2312
|
-
|
|
2273
|
+
Search for structures (companies, administrations) registered on Chorus Pro. **Use cases**: - Find the Chorus Pro ID of a structure from its SIRET - Check if a structure is registered on Chorus Pro - List structures matching criteria **Available filters**: - Identifier (SIRET, SIREN, etc.) - Company name - Identifier type - Private structures only **Typical step**: Called before `submit-invoice` to get the recipient's `id_structure_cpp`.
|
|
2313
2274
|
|
|
2314
|
-
:param
|
|
2315
|
-
:type
|
|
2275
|
+
:param search_structure_request: (required)
|
|
2276
|
+
:type search_structure_request: SearchStructureRequest
|
|
2316
2277
|
:param _request_timeout: timeout setting for this request. If one
|
|
2317
2278
|
number provided, it will be total request
|
|
2318
2279
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2336,7 +2297,7 @@ class ChorusProApi:
|
|
|
2336
2297
|
""" # noqa: E501
|
|
2337
2298
|
|
|
2338
2299
|
_param = self._rechercher_structures_api_v1_chorus_pro_structures_rechercher_post_serialize(
|
|
2339
|
-
|
|
2300
|
+
search_structure_request=search_structure_request,
|
|
2340
2301
|
_request_auth=_request_auth,
|
|
2341
2302
|
_content_type=_content_type,
|
|
2342
2303
|
_headers=_headers,
|
|
@@ -2344,7 +2305,7 @@ class ChorusProApi:
|
|
|
2344
2305
|
)
|
|
2345
2306
|
|
|
2346
2307
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2347
|
-
'200': "
|
|
2308
|
+
'200': "SearchStructureResponse",
|
|
2348
2309
|
'422': "HTTPValidationError",
|
|
2349
2310
|
}
|
|
2350
2311
|
response_data = self.api_client.call_api(
|
|
@@ -2361,7 +2322,7 @@ class ChorusProApi:
|
|
|
2361
2322
|
@validate_call
|
|
2362
2323
|
def rechercher_structures_api_v1_chorus_pro_structures_rechercher_post_with_http_info(
|
|
2363
2324
|
self,
|
|
2364
|
-
|
|
2325
|
+
search_structure_request: SearchStructureRequest,
|
|
2365
2326
|
_request_timeout: Union[
|
|
2366
2327
|
None,
|
|
2367
2328
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2374,13 +2335,13 @@ class ChorusProApi:
|
|
|
2374
2335
|
_content_type: Optional[StrictStr] = None,
|
|
2375
2336
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2376
2337
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2377
|
-
) -> ApiResponse[
|
|
2378
|
-
"""
|
|
2338
|
+
) -> ApiResponse[SearchStructureResponse]:
|
|
2339
|
+
"""Search Chorus Pro structures
|
|
2379
2340
|
|
|
2380
|
-
|
|
2341
|
+
Search for structures (companies, administrations) registered on Chorus Pro. **Use cases**: - Find the Chorus Pro ID of a structure from its SIRET - Check if a structure is registered on Chorus Pro - List structures matching criteria **Available filters**: - Identifier (SIRET, SIREN, etc.) - Company name - Identifier type - Private structures only **Typical step**: Called before `submit-invoice` to get the recipient's `id_structure_cpp`.
|
|
2381
2342
|
|
|
2382
|
-
:param
|
|
2383
|
-
:type
|
|
2343
|
+
:param search_structure_request: (required)
|
|
2344
|
+
:type search_structure_request: SearchStructureRequest
|
|
2384
2345
|
:param _request_timeout: timeout setting for this request. If one
|
|
2385
2346
|
number provided, it will be total request
|
|
2386
2347
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2404,7 +2365,7 @@ class ChorusProApi:
|
|
|
2404
2365
|
""" # noqa: E501
|
|
2405
2366
|
|
|
2406
2367
|
_param = self._rechercher_structures_api_v1_chorus_pro_structures_rechercher_post_serialize(
|
|
2407
|
-
|
|
2368
|
+
search_structure_request=search_structure_request,
|
|
2408
2369
|
_request_auth=_request_auth,
|
|
2409
2370
|
_content_type=_content_type,
|
|
2410
2371
|
_headers=_headers,
|
|
@@ -2412,7 +2373,7 @@ class ChorusProApi:
|
|
|
2412
2373
|
)
|
|
2413
2374
|
|
|
2414
2375
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2415
|
-
'200': "
|
|
2376
|
+
'200': "SearchStructureResponse",
|
|
2416
2377
|
'422': "HTTPValidationError",
|
|
2417
2378
|
}
|
|
2418
2379
|
response_data = self.api_client.call_api(
|
|
@@ -2429,7 +2390,7 @@ class ChorusProApi:
|
|
|
2429
2390
|
@validate_call
|
|
2430
2391
|
def rechercher_structures_api_v1_chorus_pro_structures_rechercher_post_without_preload_content(
|
|
2431
2392
|
self,
|
|
2432
|
-
|
|
2393
|
+
search_structure_request: SearchStructureRequest,
|
|
2433
2394
|
_request_timeout: Union[
|
|
2434
2395
|
None,
|
|
2435
2396
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2443,12 +2404,12 @@ class ChorusProApi:
|
|
|
2443
2404
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2444
2405
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2445
2406
|
) -> RESTResponseType:
|
|
2446
|
-
"""
|
|
2407
|
+
"""Search Chorus Pro structures
|
|
2447
2408
|
|
|
2448
|
-
|
|
2409
|
+
Search for structures (companies, administrations) registered on Chorus Pro. **Use cases**: - Find the Chorus Pro ID of a structure from its SIRET - Check if a structure is registered on Chorus Pro - List structures matching criteria **Available filters**: - Identifier (SIRET, SIREN, etc.) - Company name - Identifier type - Private structures only **Typical step**: Called before `submit-invoice` to get the recipient's `id_structure_cpp`.
|
|
2449
2410
|
|
|
2450
|
-
:param
|
|
2451
|
-
:type
|
|
2411
|
+
:param search_structure_request: (required)
|
|
2412
|
+
:type search_structure_request: SearchStructureRequest
|
|
2452
2413
|
:param _request_timeout: timeout setting for this request. If one
|
|
2453
2414
|
number provided, it will be total request
|
|
2454
2415
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2472,7 +2433,7 @@ class ChorusProApi:
|
|
|
2472
2433
|
""" # noqa: E501
|
|
2473
2434
|
|
|
2474
2435
|
_param = self._rechercher_structures_api_v1_chorus_pro_structures_rechercher_post_serialize(
|
|
2475
|
-
|
|
2436
|
+
search_structure_request=search_structure_request,
|
|
2476
2437
|
_request_auth=_request_auth,
|
|
2477
2438
|
_content_type=_content_type,
|
|
2478
2439
|
_headers=_headers,
|
|
@@ -2480,7 +2441,7 @@ class ChorusProApi:
|
|
|
2480
2441
|
)
|
|
2481
2442
|
|
|
2482
2443
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2483
|
-
'200': "
|
|
2444
|
+
'200': "SearchStructureResponse",
|
|
2484
2445
|
'422': "HTTPValidationError",
|
|
2485
2446
|
}
|
|
2486
2447
|
response_data = self.api_client.call_api(
|
|
@@ -2492,7 +2453,7 @@ class ChorusProApi:
|
|
|
2492
2453
|
|
|
2493
2454
|
def _rechercher_structures_api_v1_chorus_pro_structures_rechercher_post_serialize(
|
|
2494
2455
|
self,
|
|
2495
|
-
|
|
2456
|
+
search_structure_request,
|
|
2496
2457
|
_request_auth,
|
|
2497
2458
|
_content_type,
|
|
2498
2459
|
_headers,
|
|
@@ -2518,8 +2479,8 @@ class ChorusProApi:
|
|
|
2518
2479
|
# process the header parameters
|
|
2519
2480
|
# process the form parameters
|
|
2520
2481
|
# process the body parameter
|
|
2521
|
-
if
|
|
2522
|
-
_body_params =
|
|
2482
|
+
if search_structure_request is not None:
|
|
2483
|
+
_body_params = search_structure_request
|
|
2523
2484
|
|
|
2524
2485
|
|
|
2525
2486
|
# set the HTTP header `Accept`
|
|
@@ -2570,7 +2531,7 @@ class ChorusProApi:
|
|
|
2570
2531
|
@validate_call
|
|
2571
2532
|
def recycler_facture_api_v1_chorus_pro_factures_recycler_post(
|
|
2572
2533
|
self,
|
|
2573
|
-
|
|
2534
|
+
request_body: Dict[str, Any],
|
|
2574
2535
|
_request_timeout: Union[
|
|
2575
2536
|
None,
|
|
2576
2537
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2584,12 +2545,12 @@ class ChorusProApi:
|
|
|
2584
2545
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2585
2546
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2586
2547
|
) -> object:
|
|
2587
|
-
"""
|
|
2548
|
+
"""Recycle an invoice (Supplier)
|
|
2588
2549
|
|
|
2589
|
-
Recycle
|
|
2550
|
+
Recycle an invoice with A_RECYCLER status by modifying routing data. **Required status**: A_RECYCLER **Modifiable fields**: - Recipient (`idStructureCPP`) - Service code - Engagement number **Use cases**: - Wrong recipient - Change of billing service - Update engagement number **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"idStructureCPP\": 67890, \"codeService\": \"SERVICE_01\", \"numeroEngagement\": \"ENG2024001\" } ``` **Note**: The invoice keeps its number and amounts, only routing fields change.
|
|
2590
2551
|
|
|
2591
|
-
:param
|
|
2592
|
-
:type
|
|
2552
|
+
:param request_body: (required)
|
|
2553
|
+
:type request_body: Dict[str, object]
|
|
2593
2554
|
:param _request_timeout: timeout setting for this request. If one
|
|
2594
2555
|
number provided, it will be total request
|
|
2595
2556
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2613,7 +2574,7 @@ class ChorusProApi:
|
|
|
2613
2574
|
""" # noqa: E501
|
|
2614
2575
|
|
|
2615
2576
|
_param = self._recycler_facture_api_v1_chorus_pro_factures_recycler_post_serialize(
|
|
2616
|
-
|
|
2577
|
+
request_body=request_body,
|
|
2617
2578
|
_request_auth=_request_auth,
|
|
2618
2579
|
_content_type=_content_type,
|
|
2619
2580
|
_headers=_headers,
|
|
@@ -2638,7 +2599,7 @@ class ChorusProApi:
|
|
|
2638
2599
|
@validate_call
|
|
2639
2600
|
def recycler_facture_api_v1_chorus_pro_factures_recycler_post_with_http_info(
|
|
2640
2601
|
self,
|
|
2641
|
-
|
|
2602
|
+
request_body: Dict[str, Any],
|
|
2642
2603
|
_request_timeout: Union[
|
|
2643
2604
|
None,
|
|
2644
2605
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2652,12 +2613,12 @@ class ChorusProApi:
|
|
|
2652
2613
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2653
2614
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2654
2615
|
) -> ApiResponse[object]:
|
|
2655
|
-
"""
|
|
2616
|
+
"""Recycle an invoice (Supplier)
|
|
2656
2617
|
|
|
2657
|
-
Recycle
|
|
2618
|
+
Recycle an invoice with A_RECYCLER status by modifying routing data. **Required status**: A_RECYCLER **Modifiable fields**: - Recipient (`idStructureCPP`) - Service code - Engagement number **Use cases**: - Wrong recipient - Change of billing service - Update engagement number **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"idStructureCPP\": 67890, \"codeService\": \"SERVICE_01\", \"numeroEngagement\": \"ENG2024001\" } ``` **Note**: The invoice keeps its number and amounts, only routing fields change.
|
|
2658
2619
|
|
|
2659
|
-
:param
|
|
2660
|
-
:type
|
|
2620
|
+
:param request_body: (required)
|
|
2621
|
+
:type request_body: Dict[str, object]
|
|
2661
2622
|
:param _request_timeout: timeout setting for this request. If one
|
|
2662
2623
|
number provided, it will be total request
|
|
2663
2624
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2681,7 +2642,7 @@ class ChorusProApi:
|
|
|
2681
2642
|
""" # noqa: E501
|
|
2682
2643
|
|
|
2683
2644
|
_param = self._recycler_facture_api_v1_chorus_pro_factures_recycler_post_serialize(
|
|
2684
|
-
|
|
2645
|
+
request_body=request_body,
|
|
2685
2646
|
_request_auth=_request_auth,
|
|
2686
2647
|
_content_type=_content_type,
|
|
2687
2648
|
_headers=_headers,
|
|
@@ -2706,7 +2667,7 @@ class ChorusProApi:
|
|
|
2706
2667
|
@validate_call
|
|
2707
2668
|
def recycler_facture_api_v1_chorus_pro_factures_recycler_post_without_preload_content(
|
|
2708
2669
|
self,
|
|
2709
|
-
|
|
2670
|
+
request_body: Dict[str, Any],
|
|
2710
2671
|
_request_timeout: Union[
|
|
2711
2672
|
None,
|
|
2712
2673
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2720,12 +2681,12 @@ class ChorusProApi:
|
|
|
2720
2681
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2721
2682
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2722
2683
|
) -> RESTResponseType:
|
|
2723
|
-
"""
|
|
2684
|
+
"""Recycle an invoice (Supplier)
|
|
2724
2685
|
|
|
2725
|
-
Recycle
|
|
2686
|
+
Recycle an invoice with A_RECYCLER status by modifying routing data. **Required status**: A_RECYCLER **Modifiable fields**: - Recipient (`idStructureCPP`) - Service code - Engagement number **Use cases**: - Wrong recipient - Change of billing service - Update engagement number **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"idStructureCPP\": 67890, \"codeService\": \"SERVICE_01\", \"numeroEngagement\": \"ENG2024001\" } ``` **Note**: The invoice keeps its number and amounts, only routing fields change.
|
|
2726
2687
|
|
|
2727
|
-
:param
|
|
2728
|
-
:type
|
|
2688
|
+
:param request_body: (required)
|
|
2689
|
+
:type request_body: Dict[str, object]
|
|
2729
2690
|
:param _request_timeout: timeout setting for this request. If one
|
|
2730
2691
|
number provided, it will be total request
|
|
2731
2692
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2749,7 +2710,7 @@ class ChorusProApi:
|
|
|
2749
2710
|
""" # noqa: E501
|
|
2750
2711
|
|
|
2751
2712
|
_param = self._recycler_facture_api_v1_chorus_pro_factures_recycler_post_serialize(
|
|
2752
|
-
|
|
2713
|
+
request_body=request_body,
|
|
2753
2714
|
_request_auth=_request_auth,
|
|
2754
2715
|
_content_type=_content_type,
|
|
2755
2716
|
_headers=_headers,
|
|
@@ -2769,7 +2730,7 @@ class ChorusProApi:
|
|
|
2769
2730
|
|
|
2770
2731
|
def _recycler_facture_api_v1_chorus_pro_factures_recycler_post_serialize(
|
|
2771
2732
|
self,
|
|
2772
|
-
|
|
2733
|
+
request_body,
|
|
2773
2734
|
_request_auth,
|
|
2774
2735
|
_content_type,
|
|
2775
2736
|
_headers,
|
|
@@ -2795,8 +2756,8 @@ class ChorusProApi:
|
|
|
2795
2756
|
# process the header parameters
|
|
2796
2757
|
# process the form parameters
|
|
2797
2758
|
# process the body parameter
|
|
2798
|
-
if
|
|
2799
|
-
_body_params =
|
|
2759
|
+
if request_body is not None:
|
|
2760
|
+
_body_params = request_body
|
|
2800
2761
|
|
|
2801
2762
|
|
|
2802
2763
|
# set the HTTP header `Accept`
|
|
@@ -2847,7 +2808,7 @@ class ChorusProApi:
|
|
|
2847
2808
|
@validate_call
|
|
2848
2809
|
def soumettre_facture_api_v1_chorus_pro_factures_soumettre_post(
|
|
2849
2810
|
self,
|
|
2850
|
-
|
|
2811
|
+
submit_invoice_request: SubmitInvoiceRequest,
|
|
2851
2812
|
_request_timeout: Union[
|
|
2852
2813
|
None,
|
|
2853
2814
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2860,13 +2821,13 @@ class ChorusProApi:
|
|
|
2860
2821
|
_content_type: Optional[StrictStr] = None,
|
|
2861
2822
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2862
2823
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2863
|
-
) ->
|
|
2864
|
-
"""
|
|
2824
|
+
) -> SubmitInvoiceResponse:
|
|
2825
|
+
"""Submit an invoice to Chorus Pro
|
|
2865
2826
|
|
|
2866
|
-
|
|
2827
|
+
Submits an electronic invoice to a public structure via Chorus Pro. **Complete workflow**: 1. **Upload the Factur-X PDF** via `/transverses/ajouter-fichier` → retrieve `pieceJointeId` 2. **Get the structure ID** via `/structures/rechercher` or `/structures/obtenir-id-depuis-siret` 3. **Check mandatory parameters** via `/structures/consulter` 4. **Submit the invoice** with the `piece_jointe_principale_id` obtained in step 1 **Prerequisites**: 1. Have the recipient's `id_structure_cpp` (via `/structures/rechercher`) 2. Know the mandatory parameters (via `/structures/consulter`): - Service code if `code_service_doit_etre_renseigne=true` - Engagement number if `numero_ej_doit_etre_renseigne=true` 3. Have uploaded the Factur-X PDF (via `/transverses/ajouter-fichier`) **Expected format**: - `piece_jointe_principale_id`: ID returned by `/transverses/ajouter-fichier` - Amounts: Strings with 2 decimals (e.g., \"1250.50\") - Dates: ISO 8601 format (YYYY-MM-DD) **Returns**: - `identifiant_facture_cpp`: Chorus Pro ID of the created invoice - `numero_flux_depot`: Deposit tracking number **Possible statuses after submission**: - SOUMISE: Pending validation - VALIDEE: Validated by recipient - REJETEE: Rejected (data error or business refusal) - SUSPENDUE: Pending additional information **Note**: Use `/factures/consulter` to track status changes.
|
|
2867
2828
|
|
|
2868
|
-
:param
|
|
2869
|
-
:type
|
|
2829
|
+
:param submit_invoice_request: (required)
|
|
2830
|
+
:type submit_invoice_request: SubmitInvoiceRequest
|
|
2870
2831
|
:param _request_timeout: timeout setting for this request. If one
|
|
2871
2832
|
number provided, it will be total request
|
|
2872
2833
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2890,7 +2851,7 @@ class ChorusProApi:
|
|
|
2890
2851
|
""" # noqa: E501
|
|
2891
2852
|
|
|
2892
2853
|
_param = self._soumettre_facture_api_v1_chorus_pro_factures_soumettre_post_serialize(
|
|
2893
|
-
|
|
2854
|
+
submit_invoice_request=submit_invoice_request,
|
|
2894
2855
|
_request_auth=_request_auth,
|
|
2895
2856
|
_content_type=_content_type,
|
|
2896
2857
|
_headers=_headers,
|
|
@@ -2898,7 +2859,7 @@ class ChorusProApi:
|
|
|
2898
2859
|
)
|
|
2899
2860
|
|
|
2900
2861
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2901
|
-
'200': "
|
|
2862
|
+
'200': "SubmitInvoiceResponse",
|
|
2902
2863
|
'422': "HTTPValidationError",
|
|
2903
2864
|
}
|
|
2904
2865
|
response_data = self.api_client.call_api(
|
|
@@ -2915,7 +2876,7 @@ class ChorusProApi:
|
|
|
2915
2876
|
@validate_call
|
|
2916
2877
|
def soumettre_facture_api_v1_chorus_pro_factures_soumettre_post_with_http_info(
|
|
2917
2878
|
self,
|
|
2918
|
-
|
|
2879
|
+
submit_invoice_request: SubmitInvoiceRequest,
|
|
2919
2880
|
_request_timeout: Union[
|
|
2920
2881
|
None,
|
|
2921
2882
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2928,13 +2889,13 @@ class ChorusProApi:
|
|
|
2928
2889
|
_content_type: Optional[StrictStr] = None,
|
|
2929
2890
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2930
2891
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2931
|
-
) -> ApiResponse[
|
|
2932
|
-
"""
|
|
2892
|
+
) -> ApiResponse[SubmitInvoiceResponse]:
|
|
2893
|
+
"""Submit an invoice to Chorus Pro
|
|
2933
2894
|
|
|
2934
|
-
|
|
2895
|
+
Submits an electronic invoice to a public structure via Chorus Pro. **Complete workflow**: 1. **Upload the Factur-X PDF** via `/transverses/ajouter-fichier` → retrieve `pieceJointeId` 2. **Get the structure ID** via `/structures/rechercher` or `/structures/obtenir-id-depuis-siret` 3. **Check mandatory parameters** via `/structures/consulter` 4. **Submit the invoice** with the `piece_jointe_principale_id` obtained in step 1 **Prerequisites**: 1. Have the recipient's `id_structure_cpp` (via `/structures/rechercher`) 2. Know the mandatory parameters (via `/structures/consulter`): - Service code if `code_service_doit_etre_renseigne=true` - Engagement number if `numero_ej_doit_etre_renseigne=true` 3. Have uploaded the Factur-X PDF (via `/transverses/ajouter-fichier`) **Expected format**: - `piece_jointe_principale_id`: ID returned by `/transverses/ajouter-fichier` - Amounts: Strings with 2 decimals (e.g., \"1250.50\") - Dates: ISO 8601 format (YYYY-MM-DD) **Returns**: - `identifiant_facture_cpp`: Chorus Pro ID of the created invoice - `numero_flux_depot`: Deposit tracking number **Possible statuses after submission**: - SOUMISE: Pending validation - VALIDEE: Validated by recipient - REJETEE: Rejected (data error or business refusal) - SUSPENDUE: Pending additional information **Note**: Use `/factures/consulter` to track status changes.
|
|
2935
2896
|
|
|
2936
|
-
:param
|
|
2937
|
-
:type
|
|
2897
|
+
:param submit_invoice_request: (required)
|
|
2898
|
+
:type submit_invoice_request: SubmitInvoiceRequest
|
|
2938
2899
|
:param _request_timeout: timeout setting for this request. If one
|
|
2939
2900
|
number provided, it will be total request
|
|
2940
2901
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2958,7 +2919,7 @@ class ChorusProApi:
|
|
|
2958
2919
|
""" # noqa: E501
|
|
2959
2920
|
|
|
2960
2921
|
_param = self._soumettre_facture_api_v1_chorus_pro_factures_soumettre_post_serialize(
|
|
2961
|
-
|
|
2922
|
+
submit_invoice_request=submit_invoice_request,
|
|
2962
2923
|
_request_auth=_request_auth,
|
|
2963
2924
|
_content_type=_content_type,
|
|
2964
2925
|
_headers=_headers,
|
|
@@ -2966,7 +2927,7 @@ class ChorusProApi:
|
|
|
2966
2927
|
)
|
|
2967
2928
|
|
|
2968
2929
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2969
|
-
'200': "
|
|
2930
|
+
'200': "SubmitInvoiceResponse",
|
|
2970
2931
|
'422': "HTTPValidationError",
|
|
2971
2932
|
}
|
|
2972
2933
|
response_data = self.api_client.call_api(
|
|
@@ -2983,7 +2944,7 @@ class ChorusProApi:
|
|
|
2983
2944
|
@validate_call
|
|
2984
2945
|
def soumettre_facture_api_v1_chorus_pro_factures_soumettre_post_without_preload_content(
|
|
2985
2946
|
self,
|
|
2986
|
-
|
|
2947
|
+
submit_invoice_request: SubmitInvoiceRequest,
|
|
2987
2948
|
_request_timeout: Union[
|
|
2988
2949
|
None,
|
|
2989
2950
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2997,12 +2958,12 @@ class ChorusProApi:
|
|
|
2997
2958
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2998
2959
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2999
2960
|
) -> RESTResponseType:
|
|
3000
|
-
"""
|
|
2961
|
+
"""Submit an invoice to Chorus Pro
|
|
3001
2962
|
|
|
3002
|
-
|
|
2963
|
+
Submits an electronic invoice to a public structure via Chorus Pro. **Complete workflow**: 1. **Upload the Factur-X PDF** via `/transverses/ajouter-fichier` → retrieve `pieceJointeId` 2. **Get the structure ID** via `/structures/rechercher` or `/structures/obtenir-id-depuis-siret` 3. **Check mandatory parameters** via `/structures/consulter` 4. **Submit the invoice** with the `piece_jointe_principale_id` obtained in step 1 **Prerequisites**: 1. Have the recipient's `id_structure_cpp` (via `/structures/rechercher`) 2. Know the mandatory parameters (via `/structures/consulter`): - Service code if `code_service_doit_etre_renseigne=true` - Engagement number if `numero_ej_doit_etre_renseigne=true` 3. Have uploaded the Factur-X PDF (via `/transverses/ajouter-fichier`) **Expected format**: - `piece_jointe_principale_id`: ID returned by `/transverses/ajouter-fichier` - Amounts: Strings with 2 decimals (e.g., \"1250.50\") - Dates: ISO 8601 format (YYYY-MM-DD) **Returns**: - `identifiant_facture_cpp`: Chorus Pro ID of the created invoice - `numero_flux_depot`: Deposit tracking number **Possible statuses after submission**: - SOUMISE: Pending validation - VALIDEE: Validated by recipient - REJETEE: Rejected (data error or business refusal) - SUSPENDUE: Pending additional information **Note**: Use `/factures/consulter` to track status changes.
|
|
3003
2964
|
|
|
3004
|
-
:param
|
|
3005
|
-
:type
|
|
2965
|
+
:param submit_invoice_request: (required)
|
|
2966
|
+
:type submit_invoice_request: SubmitInvoiceRequest
|
|
3006
2967
|
:param _request_timeout: timeout setting for this request. If one
|
|
3007
2968
|
number provided, it will be total request
|
|
3008
2969
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3026,7 +2987,7 @@ class ChorusProApi:
|
|
|
3026
2987
|
""" # noqa: E501
|
|
3027
2988
|
|
|
3028
2989
|
_param = self._soumettre_facture_api_v1_chorus_pro_factures_soumettre_post_serialize(
|
|
3029
|
-
|
|
2990
|
+
submit_invoice_request=submit_invoice_request,
|
|
3030
2991
|
_request_auth=_request_auth,
|
|
3031
2992
|
_content_type=_content_type,
|
|
3032
2993
|
_headers=_headers,
|
|
@@ -3034,7 +2995,7 @@ class ChorusProApi:
|
|
|
3034
2995
|
)
|
|
3035
2996
|
|
|
3036
2997
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3037
|
-
'200': "
|
|
2998
|
+
'200': "SubmitInvoiceResponse",
|
|
3038
2999
|
'422': "HTTPValidationError",
|
|
3039
3000
|
}
|
|
3040
3001
|
response_data = self.api_client.call_api(
|
|
@@ -3046,7 +3007,7 @@ class ChorusProApi:
|
|
|
3046
3007
|
|
|
3047
3008
|
def _soumettre_facture_api_v1_chorus_pro_factures_soumettre_post_serialize(
|
|
3048
3009
|
self,
|
|
3049
|
-
|
|
3010
|
+
submit_invoice_request,
|
|
3050
3011
|
_request_auth,
|
|
3051
3012
|
_content_type,
|
|
3052
3013
|
_headers,
|
|
@@ -3072,8 +3033,8 @@ class ChorusProApi:
|
|
|
3072
3033
|
# process the header parameters
|
|
3073
3034
|
# process the form parameters
|
|
3074
3035
|
# process the body parameter
|
|
3075
|
-
if
|
|
3076
|
-
_body_params =
|
|
3036
|
+
if submit_invoice_request is not None:
|
|
3037
|
+
_body_params = submit_invoice_request
|
|
3077
3038
|
|
|
3078
3039
|
|
|
3079
3040
|
# set the HTTP header `Accept`
|
|
@@ -3124,7 +3085,7 @@ class ChorusProApi:
|
|
|
3124
3085
|
@validate_call
|
|
3125
3086
|
def telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post(
|
|
3126
3087
|
self,
|
|
3127
|
-
|
|
3088
|
+
request_body: Dict[str, Any],
|
|
3128
3089
|
_request_timeout: Union[
|
|
3129
3090
|
None,
|
|
3130
3091
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3138,12 +3099,12 @@ class ChorusProApi:
|
|
|
3138
3099
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3139
3100
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3140
3101
|
) -> object:
|
|
3141
|
-
"""
|
|
3102
|
+
"""Download a group of invoices
|
|
3142
3103
|
|
|
3143
|
-
|
|
3104
|
+
Download one or more invoices (max 10 recommended) with their attachments. **Available formats**: - PDF: PDF file only - XML: XML file only - ZIP: Archive containing PDF + XML + attachments **Maximum size**: 120 MB per download **Example payload**: ```json { \"listeIdentifiantsFactureCPP\": [12345, 12346], \"inclurePiecesJointes\": true, \"formatFichier\": \"ZIP\" } ``` **Returns**: The file is base64-encoded in the `fichierBase64` field. **Note**: The `factureTelechargeeParDestinataire` flag is automatically updated.
|
|
3144
3105
|
|
|
3145
|
-
:param
|
|
3146
|
-
:type
|
|
3106
|
+
:param request_body: (required)
|
|
3107
|
+
:type request_body: Dict[str, object]
|
|
3147
3108
|
:param _request_timeout: timeout setting for this request. If one
|
|
3148
3109
|
number provided, it will be total request
|
|
3149
3110
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3167,7 +3128,7 @@ class ChorusProApi:
|
|
|
3167
3128
|
""" # noqa: E501
|
|
3168
3129
|
|
|
3169
3130
|
_param = self._telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post_serialize(
|
|
3170
|
-
|
|
3131
|
+
request_body=request_body,
|
|
3171
3132
|
_request_auth=_request_auth,
|
|
3172
3133
|
_content_type=_content_type,
|
|
3173
3134
|
_headers=_headers,
|
|
@@ -3192,7 +3153,7 @@ class ChorusProApi:
|
|
|
3192
3153
|
@validate_call
|
|
3193
3154
|
def telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post_with_http_info(
|
|
3194
3155
|
self,
|
|
3195
|
-
|
|
3156
|
+
request_body: Dict[str, Any],
|
|
3196
3157
|
_request_timeout: Union[
|
|
3197
3158
|
None,
|
|
3198
3159
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3206,12 +3167,12 @@ class ChorusProApi:
|
|
|
3206
3167
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3207
3168
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3208
3169
|
) -> ApiResponse[object]:
|
|
3209
|
-
"""
|
|
3170
|
+
"""Download a group of invoices
|
|
3210
3171
|
|
|
3211
|
-
|
|
3172
|
+
Download one or more invoices (max 10 recommended) with their attachments. **Available formats**: - PDF: PDF file only - XML: XML file only - ZIP: Archive containing PDF + XML + attachments **Maximum size**: 120 MB per download **Example payload**: ```json { \"listeIdentifiantsFactureCPP\": [12345, 12346], \"inclurePiecesJointes\": true, \"formatFichier\": \"ZIP\" } ``` **Returns**: The file is base64-encoded in the `fichierBase64` field. **Note**: The `factureTelechargeeParDestinataire` flag is automatically updated.
|
|
3212
3173
|
|
|
3213
|
-
:param
|
|
3214
|
-
:type
|
|
3174
|
+
:param request_body: (required)
|
|
3175
|
+
:type request_body: Dict[str, object]
|
|
3215
3176
|
:param _request_timeout: timeout setting for this request. If one
|
|
3216
3177
|
number provided, it will be total request
|
|
3217
3178
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3235,7 +3196,7 @@ class ChorusProApi:
|
|
|
3235
3196
|
""" # noqa: E501
|
|
3236
3197
|
|
|
3237
3198
|
_param = self._telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post_serialize(
|
|
3238
|
-
|
|
3199
|
+
request_body=request_body,
|
|
3239
3200
|
_request_auth=_request_auth,
|
|
3240
3201
|
_content_type=_content_type,
|
|
3241
3202
|
_headers=_headers,
|
|
@@ -3260,7 +3221,7 @@ class ChorusProApi:
|
|
|
3260
3221
|
@validate_call
|
|
3261
3222
|
def telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post_without_preload_content(
|
|
3262
3223
|
self,
|
|
3263
|
-
|
|
3224
|
+
request_body: Dict[str, Any],
|
|
3264
3225
|
_request_timeout: Union[
|
|
3265
3226
|
None,
|
|
3266
3227
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3274,12 +3235,12 @@ class ChorusProApi:
|
|
|
3274
3235
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3275
3236
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3276
3237
|
) -> RESTResponseType:
|
|
3277
|
-
"""
|
|
3238
|
+
"""Download a group of invoices
|
|
3278
3239
|
|
|
3279
|
-
|
|
3240
|
+
Download one or more invoices (max 10 recommended) with their attachments. **Available formats**: - PDF: PDF file only - XML: XML file only - ZIP: Archive containing PDF + XML + attachments **Maximum size**: 120 MB per download **Example payload**: ```json { \"listeIdentifiantsFactureCPP\": [12345, 12346], \"inclurePiecesJointes\": true, \"formatFichier\": \"ZIP\" } ``` **Returns**: The file is base64-encoded in the `fichierBase64` field. **Note**: The `factureTelechargeeParDestinataire` flag is automatically updated.
|
|
3280
3241
|
|
|
3281
|
-
:param
|
|
3282
|
-
:type
|
|
3242
|
+
:param request_body: (required)
|
|
3243
|
+
:type request_body: Dict[str, object]
|
|
3283
3244
|
:param _request_timeout: timeout setting for this request. If one
|
|
3284
3245
|
number provided, it will be total request
|
|
3285
3246
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3303,7 +3264,7 @@ class ChorusProApi:
|
|
|
3303
3264
|
""" # noqa: E501
|
|
3304
3265
|
|
|
3305
3266
|
_param = self._telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post_serialize(
|
|
3306
|
-
|
|
3267
|
+
request_body=request_body,
|
|
3307
3268
|
_request_auth=_request_auth,
|
|
3308
3269
|
_content_type=_content_type,
|
|
3309
3270
|
_headers=_headers,
|
|
@@ -3323,7 +3284,7 @@ class ChorusProApi:
|
|
|
3323
3284
|
|
|
3324
3285
|
def _telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post_serialize(
|
|
3325
3286
|
self,
|
|
3326
|
-
|
|
3287
|
+
request_body,
|
|
3327
3288
|
_request_auth,
|
|
3328
3289
|
_content_type,
|
|
3329
3290
|
_headers,
|
|
@@ -3349,8 +3310,8 @@ class ChorusProApi:
|
|
|
3349
3310
|
# process the header parameters
|
|
3350
3311
|
# process the form parameters
|
|
3351
3312
|
# process the body parameter
|
|
3352
|
-
if
|
|
3353
|
-
_body_params =
|
|
3313
|
+
if request_body is not None:
|
|
3314
|
+
_body_params = request_body
|
|
3354
3315
|
|
|
3355
3316
|
|
|
3356
3317
|
# set the HTTP header `Accept`
|
|
@@ -3401,7 +3362,7 @@ class ChorusProApi:
|
|
|
3401
3362
|
@validate_call
|
|
3402
3363
|
def traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post(
|
|
3403
3364
|
self,
|
|
3404
|
-
|
|
3365
|
+
request_body: Dict[str, Any],
|
|
3405
3366
|
_request_timeout: Union[
|
|
3406
3367
|
None,
|
|
3407
3368
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3415,12 +3376,12 @@ class ChorusProApi:
|
|
|
3415
3376
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3416
3377
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3417
3378
|
) -> object:
|
|
3418
|
-
"""
|
|
3379
|
+
"""Process a received invoice (Recipient)
|
|
3419
3380
|
|
|
3420
|
-
Change
|
|
3381
|
+
Change the status of a received invoice. **Possible statuses**: - MISE_A_DISPOSITION: Invoice accepted - SUSPENDUE: Pending additional information (reason required) - REJETEE: Invoice refused (reason required) - MANDATEE: Invoice mandated - MISE_EN_PAIEMENT: Invoice being paid - COMPTABILISEE: Invoice accounted - MISE_A_DISPOSITION_COMPTABLE: Made available to accounting - A_RECYCLER: To be recycled - COMPLETEE: Completed - SERVICE-FAIT: Service rendered - PRISE_EN_COMPTE_DESTINATAIRE: Acknowledged - TRANSMISE_MOA: Transmitted to MOA **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"nouveauStatut\": \"REJETEE\", \"motifRejet\": \"Duplicate invoice\", \"commentaire\": \"Invoice already received under reference ABC123\" } ``` **Rules**: - A reason is **required** for SUSPENDUE and REJETEE - Only certain statuses are allowed depending on the invoice's current status
|
|
3421
3382
|
|
|
3422
|
-
:param
|
|
3423
|
-
:type
|
|
3383
|
+
:param request_body: (required)
|
|
3384
|
+
:type request_body: Dict[str, object]
|
|
3424
3385
|
:param _request_timeout: timeout setting for this request. If one
|
|
3425
3386
|
number provided, it will be total request
|
|
3426
3387
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3444,7 +3405,7 @@ class ChorusProApi:
|
|
|
3444
3405
|
""" # noqa: E501
|
|
3445
3406
|
|
|
3446
3407
|
_param = self._traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post_serialize(
|
|
3447
|
-
|
|
3408
|
+
request_body=request_body,
|
|
3448
3409
|
_request_auth=_request_auth,
|
|
3449
3410
|
_content_type=_content_type,
|
|
3450
3411
|
_headers=_headers,
|
|
@@ -3469,7 +3430,7 @@ class ChorusProApi:
|
|
|
3469
3430
|
@validate_call
|
|
3470
3431
|
def traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post_with_http_info(
|
|
3471
3432
|
self,
|
|
3472
|
-
|
|
3433
|
+
request_body: Dict[str, Any],
|
|
3473
3434
|
_request_timeout: Union[
|
|
3474
3435
|
None,
|
|
3475
3436
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3483,12 +3444,12 @@ class ChorusProApi:
|
|
|
3483
3444
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3484
3445
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3485
3446
|
) -> ApiResponse[object]:
|
|
3486
|
-
"""
|
|
3447
|
+
"""Process a received invoice (Recipient)
|
|
3487
3448
|
|
|
3488
|
-
Change
|
|
3449
|
+
Change the status of a received invoice. **Possible statuses**: - MISE_A_DISPOSITION: Invoice accepted - SUSPENDUE: Pending additional information (reason required) - REJETEE: Invoice refused (reason required) - MANDATEE: Invoice mandated - MISE_EN_PAIEMENT: Invoice being paid - COMPTABILISEE: Invoice accounted - MISE_A_DISPOSITION_COMPTABLE: Made available to accounting - A_RECYCLER: To be recycled - COMPLETEE: Completed - SERVICE-FAIT: Service rendered - PRISE_EN_COMPTE_DESTINATAIRE: Acknowledged - TRANSMISE_MOA: Transmitted to MOA **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"nouveauStatut\": \"REJETEE\", \"motifRejet\": \"Duplicate invoice\", \"commentaire\": \"Invoice already received under reference ABC123\" } ``` **Rules**: - A reason is **required** for SUSPENDUE and REJETEE - Only certain statuses are allowed depending on the invoice's current status
|
|
3489
3450
|
|
|
3490
|
-
:param
|
|
3491
|
-
:type
|
|
3451
|
+
:param request_body: (required)
|
|
3452
|
+
:type request_body: Dict[str, object]
|
|
3492
3453
|
:param _request_timeout: timeout setting for this request. If one
|
|
3493
3454
|
number provided, it will be total request
|
|
3494
3455
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3512,7 +3473,7 @@ class ChorusProApi:
|
|
|
3512
3473
|
""" # noqa: E501
|
|
3513
3474
|
|
|
3514
3475
|
_param = self._traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post_serialize(
|
|
3515
|
-
|
|
3476
|
+
request_body=request_body,
|
|
3516
3477
|
_request_auth=_request_auth,
|
|
3517
3478
|
_content_type=_content_type,
|
|
3518
3479
|
_headers=_headers,
|
|
@@ -3537,7 +3498,7 @@ class ChorusProApi:
|
|
|
3537
3498
|
@validate_call
|
|
3538
3499
|
def traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post_without_preload_content(
|
|
3539
3500
|
self,
|
|
3540
|
-
|
|
3501
|
+
request_body: Dict[str, Any],
|
|
3541
3502
|
_request_timeout: Union[
|
|
3542
3503
|
None,
|
|
3543
3504
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3551,12 +3512,12 @@ class ChorusProApi:
|
|
|
3551
3512
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3552
3513
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3553
3514
|
) -> RESTResponseType:
|
|
3554
|
-
"""
|
|
3515
|
+
"""Process a received invoice (Recipient)
|
|
3555
3516
|
|
|
3556
|
-
Change
|
|
3517
|
+
Change the status of a received invoice. **Possible statuses**: - MISE_A_DISPOSITION: Invoice accepted - SUSPENDUE: Pending additional information (reason required) - REJETEE: Invoice refused (reason required) - MANDATEE: Invoice mandated - MISE_EN_PAIEMENT: Invoice being paid - COMPTABILISEE: Invoice accounted - MISE_A_DISPOSITION_COMPTABLE: Made available to accounting - A_RECYCLER: To be recycled - COMPLETEE: Completed - SERVICE-FAIT: Service rendered - PRISE_EN_COMPTE_DESTINATAIRE: Acknowledged - TRANSMISE_MOA: Transmitted to MOA **Example payload**: ```json { \"identifiantFactureCPP\": 12345, \"nouveauStatut\": \"REJETEE\", \"motifRejet\": \"Duplicate invoice\", \"commentaire\": \"Invoice already received under reference ABC123\" } ``` **Rules**: - A reason is **required** for SUSPENDUE and REJETEE - Only certain statuses are allowed depending on the invoice's current status
|
|
3557
3518
|
|
|
3558
|
-
:param
|
|
3559
|
-
:type
|
|
3519
|
+
:param request_body: (required)
|
|
3520
|
+
:type request_body: Dict[str, object]
|
|
3560
3521
|
:param _request_timeout: timeout setting for this request. If one
|
|
3561
3522
|
number provided, it will be total request
|
|
3562
3523
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3580,7 +3541,7 @@ class ChorusProApi:
|
|
|
3580
3541
|
""" # noqa: E501
|
|
3581
3542
|
|
|
3582
3543
|
_param = self._traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post_serialize(
|
|
3583
|
-
|
|
3544
|
+
request_body=request_body,
|
|
3584
3545
|
_request_auth=_request_auth,
|
|
3585
3546
|
_content_type=_content_type,
|
|
3586
3547
|
_headers=_headers,
|
|
@@ -3600,7 +3561,7 @@ class ChorusProApi:
|
|
|
3600
3561
|
|
|
3601
3562
|
def _traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post_serialize(
|
|
3602
3563
|
self,
|
|
3603
|
-
|
|
3564
|
+
request_body,
|
|
3604
3565
|
_request_auth,
|
|
3605
3566
|
_content_type,
|
|
3606
3567
|
_headers,
|
|
@@ -3626,8 +3587,8 @@ class ChorusProApi:
|
|
|
3626
3587
|
# process the header parameters
|
|
3627
3588
|
# process the form parameters
|
|
3628
3589
|
# process the body parameter
|
|
3629
|
-
if
|
|
3630
|
-
_body_params =
|
|
3590
|
+
if request_body is not None:
|
|
3591
|
+
_body_params = request_body
|
|
3631
3592
|
|
|
3632
3593
|
|
|
3633
3594
|
# set the HTTP header `Accept`
|
|
@@ -3678,7 +3639,7 @@ class ChorusProApi:
|
|
|
3678
3639
|
@validate_call
|
|
3679
3640
|
def valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post(
|
|
3680
3641
|
self,
|
|
3681
|
-
|
|
3642
|
+
request_body: Dict[str, Any],
|
|
3682
3643
|
_request_timeout: Union[
|
|
3683
3644
|
None,
|
|
3684
3645
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3692,12 +3653,11 @@ class ChorusProApi:
|
|
|
3692
3653
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3693
3654
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3694
3655
|
) -> object:
|
|
3695
|
-
"""
|
|
3656
|
+
"""Consult an invoice (Validator)
|
|
3696
3657
|
|
|
3697
|
-
Consulte facture (valideur).
|
|
3698
3658
|
|
|
3699
|
-
:param
|
|
3700
|
-
:type
|
|
3659
|
+
:param request_body: (required)
|
|
3660
|
+
:type request_body: Dict[str, object]
|
|
3701
3661
|
:param _request_timeout: timeout setting for this request. If one
|
|
3702
3662
|
number provided, it will be total request
|
|
3703
3663
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3721,7 +3681,7 @@ class ChorusProApi:
|
|
|
3721
3681
|
""" # noqa: E501
|
|
3722
3682
|
|
|
3723
3683
|
_param = self._valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post_serialize(
|
|
3724
|
-
|
|
3684
|
+
request_body=request_body,
|
|
3725
3685
|
_request_auth=_request_auth,
|
|
3726
3686
|
_content_type=_content_type,
|
|
3727
3687
|
_headers=_headers,
|
|
@@ -3746,7 +3706,7 @@ class ChorusProApi:
|
|
|
3746
3706
|
@validate_call
|
|
3747
3707
|
def valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post_with_http_info(
|
|
3748
3708
|
self,
|
|
3749
|
-
|
|
3709
|
+
request_body: Dict[str, Any],
|
|
3750
3710
|
_request_timeout: Union[
|
|
3751
3711
|
None,
|
|
3752
3712
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3760,12 +3720,11 @@ class ChorusProApi:
|
|
|
3760
3720
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3761
3721
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3762
3722
|
) -> ApiResponse[object]:
|
|
3763
|
-
"""
|
|
3723
|
+
"""Consult an invoice (Validator)
|
|
3764
3724
|
|
|
3765
|
-
Consulte facture (valideur).
|
|
3766
3725
|
|
|
3767
|
-
:param
|
|
3768
|
-
:type
|
|
3726
|
+
:param request_body: (required)
|
|
3727
|
+
:type request_body: Dict[str, object]
|
|
3769
3728
|
:param _request_timeout: timeout setting for this request. If one
|
|
3770
3729
|
number provided, it will be total request
|
|
3771
3730
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3789,7 +3748,7 @@ class ChorusProApi:
|
|
|
3789
3748
|
""" # noqa: E501
|
|
3790
3749
|
|
|
3791
3750
|
_param = self._valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post_serialize(
|
|
3792
|
-
|
|
3751
|
+
request_body=request_body,
|
|
3793
3752
|
_request_auth=_request_auth,
|
|
3794
3753
|
_content_type=_content_type,
|
|
3795
3754
|
_headers=_headers,
|
|
@@ -3814,7 +3773,7 @@ class ChorusProApi:
|
|
|
3814
3773
|
@validate_call
|
|
3815
3774
|
def valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post_without_preload_content(
|
|
3816
3775
|
self,
|
|
3817
|
-
|
|
3776
|
+
request_body: Dict[str, Any],
|
|
3818
3777
|
_request_timeout: Union[
|
|
3819
3778
|
None,
|
|
3820
3779
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3828,12 +3787,11 @@ class ChorusProApi:
|
|
|
3828
3787
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3829
3788
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3830
3789
|
) -> RESTResponseType:
|
|
3831
|
-
"""
|
|
3790
|
+
"""Consult an invoice (Validator)
|
|
3832
3791
|
|
|
3833
|
-
Consulte facture (valideur).
|
|
3834
3792
|
|
|
3835
|
-
:param
|
|
3836
|
-
:type
|
|
3793
|
+
:param request_body: (required)
|
|
3794
|
+
:type request_body: Dict[str, object]
|
|
3837
3795
|
:param _request_timeout: timeout setting for this request. If one
|
|
3838
3796
|
number provided, it will be total request
|
|
3839
3797
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3857,7 +3815,7 @@ class ChorusProApi:
|
|
|
3857
3815
|
""" # noqa: E501
|
|
3858
3816
|
|
|
3859
3817
|
_param = self._valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post_serialize(
|
|
3860
|
-
|
|
3818
|
+
request_body=request_body,
|
|
3861
3819
|
_request_auth=_request_auth,
|
|
3862
3820
|
_content_type=_content_type,
|
|
3863
3821
|
_headers=_headers,
|
|
@@ -3877,7 +3835,7 @@ class ChorusProApi:
|
|
|
3877
3835
|
|
|
3878
3836
|
def _valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post_serialize(
|
|
3879
3837
|
self,
|
|
3880
|
-
|
|
3838
|
+
request_body,
|
|
3881
3839
|
_request_auth,
|
|
3882
3840
|
_content_type,
|
|
3883
3841
|
_headers,
|
|
@@ -3903,8 +3861,8 @@ class ChorusProApi:
|
|
|
3903
3861
|
# process the header parameters
|
|
3904
3862
|
# process the form parameters
|
|
3905
3863
|
# process the body parameter
|
|
3906
|
-
if
|
|
3907
|
-
_body_params =
|
|
3864
|
+
if request_body is not None:
|
|
3865
|
+
_body_params = request_body
|
|
3908
3866
|
|
|
3909
3867
|
|
|
3910
3868
|
# set the HTTP header `Accept`
|
|
@@ -3955,7 +3913,7 @@ class ChorusProApi:
|
|
|
3955
3913
|
@validate_call
|
|
3956
3914
|
def valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post(
|
|
3957
3915
|
self,
|
|
3958
|
-
|
|
3916
|
+
request_body: Dict[str, Any],
|
|
3959
3917
|
_request_timeout: Union[
|
|
3960
3918
|
None,
|
|
3961
3919
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3969,12 +3927,12 @@ class ChorusProApi:
|
|
|
3969
3927
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3970
3928
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3971
3929
|
) -> object:
|
|
3972
|
-
"""
|
|
3930
|
+
"""Search invoices to validate (Validator)
|
|
3973
3931
|
|
|
3974
|
-
|
|
3932
|
+
Search invoices pending validation by the connected validator. **Role**: Validator in the internal validation workflow. **Filters**: Dates, structure, service, etc.
|
|
3975
3933
|
|
|
3976
|
-
:param
|
|
3977
|
-
:type
|
|
3934
|
+
:param request_body: (required)
|
|
3935
|
+
:type request_body: Dict[str, object]
|
|
3978
3936
|
:param _request_timeout: timeout setting for this request. If one
|
|
3979
3937
|
number provided, it will be total request
|
|
3980
3938
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3998,7 +3956,7 @@ class ChorusProApi:
|
|
|
3998
3956
|
""" # noqa: E501
|
|
3999
3957
|
|
|
4000
3958
|
_param = self._valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post_serialize(
|
|
4001
|
-
|
|
3959
|
+
request_body=request_body,
|
|
4002
3960
|
_request_auth=_request_auth,
|
|
4003
3961
|
_content_type=_content_type,
|
|
4004
3962
|
_headers=_headers,
|
|
@@ -4023,7 +3981,7 @@ class ChorusProApi:
|
|
|
4023
3981
|
@validate_call
|
|
4024
3982
|
def valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post_with_http_info(
|
|
4025
3983
|
self,
|
|
4026
|
-
|
|
3984
|
+
request_body: Dict[str, Any],
|
|
4027
3985
|
_request_timeout: Union[
|
|
4028
3986
|
None,
|
|
4029
3987
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4037,12 +3995,12 @@ class ChorusProApi:
|
|
|
4037
3995
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4038
3996
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4039
3997
|
) -> ApiResponse[object]:
|
|
4040
|
-
"""
|
|
3998
|
+
"""Search invoices to validate (Validator)
|
|
4041
3999
|
|
|
4042
|
-
|
|
4000
|
+
Search invoices pending validation by the connected validator. **Role**: Validator in the internal validation workflow. **Filters**: Dates, structure, service, etc.
|
|
4043
4001
|
|
|
4044
|
-
:param
|
|
4045
|
-
:type
|
|
4002
|
+
:param request_body: (required)
|
|
4003
|
+
:type request_body: Dict[str, object]
|
|
4046
4004
|
:param _request_timeout: timeout setting for this request. If one
|
|
4047
4005
|
number provided, it will be total request
|
|
4048
4006
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4066,7 +4024,7 @@ class ChorusProApi:
|
|
|
4066
4024
|
""" # noqa: E501
|
|
4067
4025
|
|
|
4068
4026
|
_param = self._valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post_serialize(
|
|
4069
|
-
|
|
4027
|
+
request_body=request_body,
|
|
4070
4028
|
_request_auth=_request_auth,
|
|
4071
4029
|
_content_type=_content_type,
|
|
4072
4030
|
_headers=_headers,
|
|
@@ -4091,7 +4049,7 @@ class ChorusProApi:
|
|
|
4091
4049
|
@validate_call
|
|
4092
4050
|
def valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post_without_preload_content(
|
|
4093
4051
|
self,
|
|
4094
|
-
|
|
4052
|
+
request_body: Dict[str, Any],
|
|
4095
4053
|
_request_timeout: Union[
|
|
4096
4054
|
None,
|
|
4097
4055
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4105,12 +4063,12 @@ class ChorusProApi:
|
|
|
4105
4063
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4106
4064
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4107
4065
|
) -> RESTResponseType:
|
|
4108
|
-
"""
|
|
4066
|
+
"""Search invoices to validate (Validator)
|
|
4109
4067
|
|
|
4110
|
-
|
|
4068
|
+
Search invoices pending validation by the connected validator. **Role**: Validator in the internal validation workflow. **Filters**: Dates, structure, service, etc.
|
|
4111
4069
|
|
|
4112
|
-
:param
|
|
4113
|
-
:type
|
|
4070
|
+
:param request_body: (required)
|
|
4071
|
+
:type request_body: Dict[str, object]
|
|
4114
4072
|
:param _request_timeout: timeout setting for this request. If one
|
|
4115
4073
|
number provided, it will be total request
|
|
4116
4074
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4134,7 +4092,7 @@ class ChorusProApi:
|
|
|
4134
4092
|
""" # noqa: E501
|
|
4135
4093
|
|
|
4136
4094
|
_param = self._valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post_serialize(
|
|
4137
|
-
|
|
4095
|
+
request_body=request_body,
|
|
4138
4096
|
_request_auth=_request_auth,
|
|
4139
4097
|
_content_type=_content_type,
|
|
4140
4098
|
_headers=_headers,
|
|
@@ -4154,7 +4112,7 @@ class ChorusProApi:
|
|
|
4154
4112
|
|
|
4155
4113
|
def _valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post_serialize(
|
|
4156
4114
|
self,
|
|
4157
|
-
|
|
4115
|
+
request_body,
|
|
4158
4116
|
_request_auth,
|
|
4159
4117
|
_content_type,
|
|
4160
4118
|
_headers,
|
|
@@ -4180,8 +4138,8 @@ class ChorusProApi:
|
|
|
4180
4138
|
# process the header parameters
|
|
4181
4139
|
# process the form parameters
|
|
4182
4140
|
# process the body parameter
|
|
4183
|
-
if
|
|
4184
|
-
_body_params =
|
|
4141
|
+
if request_body is not None:
|
|
4142
|
+
_body_params = request_body
|
|
4185
4143
|
|
|
4186
4144
|
|
|
4187
4145
|
# set the HTTP header `Accept`
|
|
@@ -4232,7 +4190,7 @@ class ChorusProApi:
|
|
|
4232
4190
|
@validate_call
|
|
4233
4191
|
def valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post(
|
|
4234
4192
|
self,
|
|
4235
|
-
|
|
4193
|
+
request_body: Dict[str, Any],
|
|
4236
4194
|
_request_timeout: Union[
|
|
4237
4195
|
None,
|
|
4238
4196
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4246,12 +4204,12 @@ class ChorusProApi:
|
|
|
4246
4204
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4247
4205
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4248
4206
|
) -> object:
|
|
4249
|
-
"""
|
|
4207
|
+
"""Validate or reject an invoice (Validator)
|
|
4250
4208
|
|
|
4251
|
-
|
|
4209
|
+
Validate or reject an invoice pending validation. **Actions**: - Validate: The invoice moves to the next status in the workflow - Reject: The invoice is rejected (reason required)
|
|
4252
4210
|
|
|
4253
|
-
:param
|
|
4254
|
-
:type
|
|
4211
|
+
:param request_body: (required)
|
|
4212
|
+
:type request_body: Dict[str, object]
|
|
4255
4213
|
:param _request_timeout: timeout setting for this request. If one
|
|
4256
4214
|
number provided, it will be total request
|
|
4257
4215
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4275,7 +4233,7 @@ class ChorusProApi:
|
|
|
4275
4233
|
""" # noqa: E501
|
|
4276
4234
|
|
|
4277
4235
|
_param = self._valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post_serialize(
|
|
4278
|
-
|
|
4236
|
+
request_body=request_body,
|
|
4279
4237
|
_request_auth=_request_auth,
|
|
4280
4238
|
_content_type=_content_type,
|
|
4281
4239
|
_headers=_headers,
|
|
@@ -4300,7 +4258,7 @@ class ChorusProApi:
|
|
|
4300
4258
|
@validate_call
|
|
4301
4259
|
def valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post_with_http_info(
|
|
4302
4260
|
self,
|
|
4303
|
-
|
|
4261
|
+
request_body: Dict[str, Any],
|
|
4304
4262
|
_request_timeout: Union[
|
|
4305
4263
|
None,
|
|
4306
4264
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4314,12 +4272,12 @@ class ChorusProApi:
|
|
|
4314
4272
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4315
4273
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4316
4274
|
) -> ApiResponse[object]:
|
|
4317
|
-
"""
|
|
4275
|
+
"""Validate or reject an invoice (Validator)
|
|
4318
4276
|
|
|
4319
|
-
|
|
4277
|
+
Validate or reject an invoice pending validation. **Actions**: - Validate: The invoice moves to the next status in the workflow - Reject: The invoice is rejected (reason required)
|
|
4320
4278
|
|
|
4321
|
-
:param
|
|
4322
|
-
:type
|
|
4279
|
+
:param request_body: (required)
|
|
4280
|
+
:type request_body: Dict[str, object]
|
|
4323
4281
|
:param _request_timeout: timeout setting for this request. If one
|
|
4324
4282
|
number provided, it will be total request
|
|
4325
4283
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4343,7 +4301,7 @@ class ChorusProApi:
|
|
|
4343
4301
|
""" # noqa: E501
|
|
4344
4302
|
|
|
4345
4303
|
_param = self._valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post_serialize(
|
|
4346
|
-
|
|
4304
|
+
request_body=request_body,
|
|
4347
4305
|
_request_auth=_request_auth,
|
|
4348
4306
|
_content_type=_content_type,
|
|
4349
4307
|
_headers=_headers,
|
|
@@ -4368,7 +4326,7 @@ class ChorusProApi:
|
|
|
4368
4326
|
@validate_call
|
|
4369
4327
|
def valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post_without_preload_content(
|
|
4370
4328
|
self,
|
|
4371
|
-
|
|
4329
|
+
request_body: Dict[str, Any],
|
|
4372
4330
|
_request_timeout: Union[
|
|
4373
4331
|
None,
|
|
4374
4332
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -4382,12 +4340,12 @@ class ChorusProApi:
|
|
|
4382
4340
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4383
4341
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4384
4342
|
) -> RESTResponseType:
|
|
4385
|
-
"""
|
|
4343
|
+
"""Validate or reject an invoice (Validator)
|
|
4386
4344
|
|
|
4387
|
-
|
|
4345
|
+
Validate or reject an invoice pending validation. **Actions**: - Validate: The invoice moves to the next status in the workflow - Reject: The invoice is rejected (reason required)
|
|
4388
4346
|
|
|
4389
|
-
:param
|
|
4390
|
-
:type
|
|
4347
|
+
:param request_body: (required)
|
|
4348
|
+
:type request_body: Dict[str, object]
|
|
4391
4349
|
:param _request_timeout: timeout setting for this request. If one
|
|
4392
4350
|
number provided, it will be total request
|
|
4393
4351
|
timeout. It can also be a pair (tuple) of
|
|
@@ -4411,7 +4369,7 @@ class ChorusProApi:
|
|
|
4411
4369
|
""" # noqa: E501
|
|
4412
4370
|
|
|
4413
4371
|
_param = self._valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post_serialize(
|
|
4414
|
-
|
|
4372
|
+
request_body=request_body,
|
|
4415
4373
|
_request_auth=_request_auth,
|
|
4416
4374
|
_content_type=_content_type,
|
|
4417
4375
|
_headers=_headers,
|
|
@@ -4431,7 +4389,7 @@ class ChorusProApi:
|
|
|
4431
4389
|
|
|
4432
4390
|
def _valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post_serialize(
|
|
4433
4391
|
self,
|
|
4434
|
-
|
|
4392
|
+
request_body,
|
|
4435
4393
|
_request_auth,
|
|
4436
4394
|
_content_type,
|
|
4437
4395
|
_headers,
|
|
@@ -4457,8 +4415,8 @@ class ChorusProApi:
|
|
|
4457
4415
|
# process the header parameters
|
|
4458
4416
|
# process the form parameters
|
|
4459
4417
|
# process the body parameter
|
|
4460
|
-
if
|
|
4461
|
-
_body_params =
|
|
4418
|
+
if request_body is not None:
|
|
4419
|
+
_body_params = request_body
|
|
4462
4420
|
|
|
4463
4421
|
|
|
4464
4422
|
# set the HTTP header `Accept`
|