factpulse 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +28 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +74 -0
- data/LICENSE +21 -0
- data/README.md +207 -0
- data/Rakefile +10 -0
- data/docs/AFNORPDPPAApi.md +69 -0
- data/docs/AFNORPDPPADirectoryServiceApi.md +1313 -0
- data/docs/AFNORPDPPAFlowServiceApi.md +258 -0
- data/docs/APIError.md +22 -0
- data/docs/AdresseElectronique.md +20 -0
- data/docs/AdressePostale.md +26 -0
- data/docs/CadreDeFacturation.md +22 -0
- data/docs/CategorieTVA.md +15 -0
- data/docs/CertificateInfoResponse.md +40 -0
- data/docs/ChorusProApi.md +1125 -0
- data/docs/ChorusProCredentials.md +26 -0
- data/docs/CodeCadreFacturation.md +15 -0
- data/docs/CodeRaisonReduction.md +15 -0
- data/docs/ConsulterFactureRequest.md +20 -0
- data/docs/ConsulterFactureResponse.md +34 -0
- data/docs/ConsulterStructureRequest.md +22 -0
- data/docs/ConsulterStructureResponse.md +34 -0
- data/docs/CredentialsAFNOR.md +22 -0
- data/docs/CredentialsChorusPro.md +26 -0
- data/docs/Destinataire.md +28 -0
- data/docs/Destination.md +79 -0
- data/docs/DestinationAFNOR.md +24 -0
- data/docs/DestinationChorusPro.md +20 -0
- data/docs/DonneesFactureSimplifiees.md +34 -0
- data/docs/ErrorLevel.md +15 -0
- data/docs/ErrorSource.md +15 -0
- data/docs/FactureEnrichieInfo.md +32 -0
- data/docs/FactureFacturX.md +46 -0
- data/docs/FormatSortie.md +15 -0
- data/docs/Fournisseur.md +36 -0
- data/docs/GenerateCertificateRequest.md +38 -0
- data/docs/GenerateCertificateResponse.md +32 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/InformationSignatureAPI.md +28 -0
- data/docs/LigneDePoste.md +46 -0
- data/docs/LigneDePosteMontantRemiseHt.md +15 -0
- data/docs/LigneDePosteTauxTvaManuel.md +15 -0
- data/docs/LigneDeTVA.md +26 -0
- data/docs/ModeDepot.md +15 -0
- data/docs/ModePaiement.md +15 -0
- data/docs/MontantAPayer.md +15 -0
- data/docs/MontantBaseHt.md +15 -0
- data/docs/MontantHtTotal.md +15 -0
- data/docs/MontantRemiseGlobaleTtc.md +15 -0
- data/docs/MontantTotal.md +30 -0
- data/docs/MontantTotalAcompte.md +15 -0
- data/docs/MontantTotalLigneHt.md +15 -0
- data/docs/MontantTtcTotal.md +15 -0
- data/docs/MontantTva.md +15 -0
- data/docs/MontantTvaLigne.md +15 -0
- data/docs/MontantTvaTotal.md +15 -0
- data/docs/MontantUnitaireHt.md +15 -0
- data/docs/Note.md +20 -0
- data/docs/ObtenirIdChorusProRequest.md +22 -0
- data/docs/ObtenirIdChorusProResponse.md +24 -0
- data/docs/OptionsProcessing.md +24 -0
- data/docs/PDFFacturXInfo.md +22 -0
- data/docs/ParametresSignature.md +34 -0
- data/docs/ParametresStructure.md +22 -0
- data/docs/PieceJointeComplementaire.md +26 -0
- data/docs/ProfilAPI.md +15 -0
- data/docs/Quantite.md +15 -0
- data/docs/RechercherServicesResponse.md +24 -0
- data/docs/RechercherStructureRequest.md +26 -0
- data/docs/RechercherStructureResponse.md +24 -0
- data/docs/References.md +32 -0
- data/docs/ReponseTache.md +18 -0
- data/docs/ReponseValidationErreur.md +18 -0
- data/docs/ReponseValidationSucces.md +18 -0
- data/docs/ResultatAFNOR.md +26 -0
- data/docs/ResultatChorusPro.md +22 -0
- data/docs/ResultatValidationPDFAPI.md +62 -0
- data/docs/SantApi.md +131 -0
- data/docs/SchemeID.md +15 -0
- data/docs/ServiceStructure.md +24 -0
- data/docs/SignatureInfo.md +22 -0
- data/docs/SoumettreFactureCompleteRequest.md +26 -0
- data/docs/SoumettreFactureCompleteResponse.md +34 -0
- data/docs/SoumettreFactureRequest.md +46 -0
- data/docs/SoumettreFactureResponse.md +24 -0
- data/docs/StatutCelery.md +15 -0
- data/docs/StatutFacture.md +22 -0
- data/docs/StatutTache.md +22 -0
- data/docs/StructureInfo.md +26 -0
- data/docs/Tauxmanuel.md +15 -0
- data/docs/TraitementFactureApi.md +831 -0
- data/docs/TypeFacture.md +15 -0
- data/docs/TypeTVA.md +15 -0
- data/docs/Unite.md +15 -0
- data/docs/UtilisateurApi.md +74 -0
- data/docs/ValidationError.md +22 -0
- data/docs/ValidationErrorDetail.md +26 -0
- data/docs/ValidationErrorLocInner.md +15 -0
- data/factpulse.gemspec +39 -0
- data/git_push.sh +57 -0
- data/lib/factpulse/api/afnorpdppa_api.rb +79 -0
- data/lib/factpulse/api/afnorpdppa_directory_service_api.rb +1183 -0
- data/lib/factpulse/api/afnorpdppa_flow_service_api.rb +256 -0
- data/lib/factpulse/api/chorus_pro_api.rb +1103 -0
- data/lib/factpulse/api/sant_api.rb +136 -0
- data/lib/factpulse/api/traitement_facture_api.rb +835 -0
- data/lib/factpulse/api/utilisateur_api.rb +79 -0
- data/lib/factpulse/api_client.rb +397 -0
- data/lib/factpulse/api_error.rb +58 -0
- data/lib/factpulse/api_model_base.rb +88 -0
- data/lib/factpulse/configuration.rb +308 -0
- data/lib/factpulse/helpers/client.rb +300 -0
- data/lib/factpulse/helpers/exceptions.rb +21 -0
- data/lib/factpulse/helpers.rb +13 -0
- data/lib/factpulse/models/adresse_electronique.rb +196 -0
- data/lib/factpulse/models/adresse_postale.rb +189 -0
- data/lib/factpulse/models/api_error.rb +205 -0
- data/lib/factpulse/models/cadre_de_facturation.rb +207 -0
- data/lib/factpulse/models/categorie_tva.rb +47 -0
- data/lib/factpulse/models/certificate_info_response.rb +446 -0
- data/lib/factpulse/models/chorus_pro_credentials.rb +259 -0
- data/lib/factpulse/models/code_cadre_facturation.rb +42 -0
- data/lib/factpulse/models/code_raison_reduction.rb +45 -0
- data/lib/factpulse/models/consulter_facture_request.rb +176 -0
- data/lib/factpulse/models/consulter_facture_response.rb +261 -0
- data/lib/factpulse/models/consulter_structure_request.rb +188 -0
- data/lib/factpulse/models/consulter_structure_response.rb +261 -0
- data/lib/factpulse/models/credentials_afnor.rb +169 -0
- data/lib/factpulse/models/credentials_chorus_pro.rb +191 -0
- data/lib/factpulse/models/destinataire.rb +215 -0
- data/lib/factpulse/models/destination.rb +56 -0
- data/lib/factpulse/models/destination_afnor.rb +228 -0
- data/lib/factpulse/models/destination_chorus_pro.rb +194 -0
- data/lib/factpulse/models/donnees_facture_simplifiees.rb +342 -0
- data/lib/factpulse/models/error_level.rb +40 -0
- data/lib/factpulse/models/error_source.rb +46 -0
- data/lib/factpulse/models/facture_enrichie_info.rb +348 -0
- data/lib/factpulse/models/facture_factur_x.rb +443 -0
- data/lib/factpulse/models/format_sortie.rb +40 -0
- data/lib/factpulse/models/fournisseur.rb +271 -0
- data/lib/factpulse/models/generate_certificate_request.rb +323 -0
- data/lib/factpulse/models/generate_certificate_response.rb +254 -0
- data/lib/factpulse/models/http_validation_error.rb +149 -0
- data/lib/factpulse/models/information_signature_api.rb +216 -0
- data/lib/factpulse/models/ligne_de_poste.rb +390 -0
- data/lib/factpulse/models/ligne_de_poste_montant_remise_ht.rb +104 -0
- data/lib/factpulse/models/ligne_de_poste_taux_tva_manuel.rb +104 -0
- data/lib/factpulse/models/ligne_de_tva.rb +242 -0
- data/lib/factpulse/models/mode_depot.rb +41 -0
- data/lib/factpulse/models/mode_paiement.rb +44 -0
- data/lib/factpulse/models/montant_a_payer.rb +104 -0
- data/lib/factpulse/models/montant_base_ht.rb +104 -0
- data/lib/factpulse/models/montant_ht_total.rb +104 -0
- data/lib/factpulse/models/montant_remise_globale_ttc.rb +104 -0
- data/lib/factpulse/models/montant_total.rb +272 -0
- data/lib/factpulse/models/montant_total_acompte.rb +104 -0
- data/lib/factpulse/models/montant_total_ligne_ht.rb +104 -0
- data/lib/factpulse/models/montant_ttc_total.rb +104 -0
- data/lib/factpulse/models/montant_tva.rb +104 -0
- data/lib/factpulse/models/montant_tva_ligne.rb +104 -0
- data/lib/factpulse/models/montant_tva_total.rb +104 -0
- data/lib/factpulse/models/montant_unitaire_ht.rb +104 -0
- data/lib/factpulse/models/note.rb +175 -0
- data/lib/factpulse/models/obtenir_id_chorus_pro_request.rb +188 -0
- data/lib/factpulse/models/obtenir_id_chorus_pro_response.rb +230 -0
- data/lib/factpulse/models/options_processing.rb +207 -0
- data/lib/factpulse/models/parametres_signature.rb +235 -0
- data/lib/factpulse/models/parametres_structure.rb +175 -0
- data/lib/factpulse/models/pdf_factur_x_info.rb +205 -0
- data/lib/factpulse/models/piece_jointe_complementaire.rb +269 -0
- data/lib/factpulse/models/profil_api.rb +42 -0
- data/lib/factpulse/models/quantite.rb +104 -0
- data/lib/factpulse/models/rechercher_services_response.rb +214 -0
- data/lib/factpulse/models/rechercher_structure_request.rb +191 -0
- data/lib/factpulse/models/rechercher_structure_response.rb +216 -0
- data/lib/factpulse/models/references.rb +290 -0
- data/lib/factpulse/models/reponse_tache.rb +165 -0
- data/lib/factpulse/models/reponse_validation_erreur.rb +167 -0
- data/lib/factpulse/models/reponse_validation_succes.rb +165 -0
- data/lib/factpulse/models/resultat_afnor.rb +240 -0
- data/lib/factpulse/models/resultat_chorus_pro.rb +186 -0
- data/lib/factpulse/models/resultat_validation_pdfapi.rb +523 -0
- data/lib/factpulse/models/scheme_id.rb +43 -0
- data/lib/factpulse/models/service_structure.rb +247 -0
- data/lib/factpulse/models/signature_info.rb +186 -0
- data/lib/factpulse/models/soumettre_facture_complete_request.rb +239 -0
- data/lib/factpulse/models/soumettre_facture_complete_response.rb +355 -0
- data/lib/factpulse/models/soumettre_facture_request.rb +388 -0
- data/lib/factpulse/models/soumettre_facture_response.rb +213 -0
- data/lib/factpulse/models/statut_celery.rb +43 -0
- data/lib/factpulse/models/statut_facture.rb +203 -0
- data/lib/factpulse/models/statut_tache.rb +226 -0
- data/lib/factpulse/models/structure_info.rb +274 -0
- data/lib/factpulse/models/tauxmanuel.rb +104 -0
- data/lib/factpulse/models/type_facture.rb +40 -0
- data/lib/factpulse/models/type_tva.rb +42 -0
- data/lib/factpulse/models/unite.rb +44 -0
- data/lib/factpulse/models/validation_error.rb +218 -0
- data/lib/factpulse/models/validation_error_detail.rb +245 -0
- data/lib/factpulse/models/validation_error_loc_inner.rb +103 -0
- data/lib/factpulse/version.rb +15 -0
- data/lib/factpulse.rb +133 -0
- metadata +345 -0
|
@@ -0,0 +1,1183 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#API REST FactPulse
|
|
3
|
+
|
|
4
|
+
# API REST pour la facturation électronique en France : Factur-X, AFNOR PDP/PA, signatures électroniques. ## 🎯 Fonctionnalités principales ### 📄 Génération de factures Factur-X - **Formats** : XML seul ou PDF/A-3 avec XML embarqué - **Profils** : MINIMUM, BASIC, EN16931, EXTENDED - **Normes** : EN 16931 (directive UE 2014/55), ISO 19005-3 (PDF/A-3), CII (UN/CEFACT) - **🆕 Format simplifié** : Génération à partir de SIRET + auto-enrichissement (API Chorus Pro + Recherche Entreprises) ### ✅ Validation et conformité - **Validation XML** : Schematron (45 à 210+ règles selon profil) - **Validation PDF** : PDF/A-3, métadonnées XMP Factur-X, signatures électroniques - **VeraPDF** : Validation stricte PDF/A (146+ règles ISO 19005-3) - **Traitement asynchrone** : Support Celery pour validations lourdes (VeraPDF) ### 📡 Intégration AFNOR PDP/PA (XP Z12-013) - **Soumission de flux** : Envoi de factures vers Plateformes de Dématérialisation Partenaires - **Recherche de flux** : Consultation des factures soumises - **Téléchargement** : Récupération des PDF/A-3 avec XML - **Directory Service** : Recherche d'entreprises (SIREN/SIRET) - **Multi-client** : Support de plusieurs configs PDP par utilisateur (stored credentials ou zero-storage) ### ✍️ Signature électronique PDF - **Standards** : PAdES-B-B, PAdES-B-T (horodatage RFC 3161), PAdES-B-LT (archivage long terme) - **Niveaux eIDAS** : SES (auto-signé), AdES (CA commerciale), QES (PSCO) - **Validation** : Vérification intégrité cryptographique et certificats - **Génération de certificats** : Certificats X.509 auto-signés pour tests ### 🔄 Traitement asynchrone - **Celery** : Génération, validation et signature asynchrones - **Polling** : Suivi d'état via `/taches/{id_tache}/statut` - **Pas de timeout** : Idéal pour gros fichiers ou validations lourdes ## 🔒 Authentification Toutes les requêtes nécessitent un **token JWT** dans le header Authorization : ``` Authorization: Bearer YOUR_JWT_TOKEN ``` ### Comment obtenir un token JWT ? #### 🔑 Méthode 1 : API `/api/token/` (Recommandée) **URL :** `https://www.factpulse.fr/api/token/` Cette méthode est **recommandée** pour l'intégration dans vos applications et workflows CI/CD. **Prérequis :** Avoir défini un mot de passe sur votre compte **Pour les utilisateurs inscrits via email/password :** - Vous avez déjà un mot de passe, utilisez-le directement **Pour les utilisateurs inscrits via OAuth (Google/GitHub) :** - Vous devez d'abord définir un mot de passe sur : https://www.factpulse.fr/accounts/password/set/ - Une fois le mot de passe créé, vous pourrez utiliser l'API **Exemple de requête :** ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d '{ \"username\": \"votre_email@example.com\", \"password\": \"votre_mot_de_passe\" }' ``` **Paramètre optionnel `client_uid` :** Pour sélectionner les credentials d'un client spécifique (PA/PDP, Chorus Pro, certificats de signature), ajoutez `client_uid` : ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d '{ \"username\": \"votre_email@example.com\", \"password\": \"votre_mot_de_passe\", \"client_uid\": \"550e8400-e29b-41d4-a716-446655440000\" }' ``` Le `client_uid` sera inclus dans le JWT et permettra à l'API d'utiliser automatiquement : - Les credentials AFNOR/PDP configurés pour ce client - Les credentials Chorus Pro configurés pour ce client - Les certificats de signature électronique configurés pour ce client **Réponse :** ```json { \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\", // Token d'accès (validité: 30 min) \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\" // Token de rafraîchissement (validité: 7 jours) } ``` **Avantages :** - ✅ Automatisation complète (CI/CD, scripts) - ✅ Gestion programmatique des tokens - ✅ Support du refresh token pour renouveler automatiquement l'accès - ✅ Intégration facile dans n'importe quel langage/outil #### 🖥️ Méthode 2 : Génération via Dashboard (Alternative) **URL :** https://www.factpulse.fr/dashboard/ Cette méthode convient pour des tests rapides ou une utilisation occasionnelle via l'interface graphique. **Fonctionnement :** - Connectez-vous au dashboard - Utilisez les boutons \"Generate Test Token\" ou \"Generate Production Token\" - Fonctionne pour **tous** les utilisateurs (OAuth et email/password), sans nécessiter de mot de passe **Types de tokens :** - **Token Test** : Validité 24h, quota 1000 appels/jour (gratuit) - **Token Production** : Validité 7 jours, quota selon votre forfait **Avantages :** - ✅ Rapide pour tester l'API - ✅ Aucun mot de passe requis - ✅ Interface visuelle simple **Inconvénients :** - ❌ Nécessite une action manuelle - ❌ Pas de refresh token - ❌ Moins adapté pour l'automatisation ### 📚 Documentation complète Pour plus d'informations sur l'authentification et l'utilisation de l'API : https://www.factpulse.fr/documentation-api/
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.18.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module FactPulse
|
|
16
|
+
class AFNORPDPPADirectoryServiceApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Creating a directory line
|
|
23
|
+
# Créer une ligne dans l'annuaire
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [Object]
|
|
26
|
+
def create_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_post(opts = {})
|
|
27
|
+
data, _status_code, _headers = create_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_post_with_http_info(opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Creating a directory line
|
|
32
|
+
# Créer une ligne dans l'annuaire
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
35
|
+
def create_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_post_with_http_info(opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.create_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_post ...'
|
|
38
|
+
end
|
|
39
|
+
# resource path
|
|
40
|
+
local_var_path = '/api/v1/afnor/directory/v1/directory-line'
|
|
41
|
+
|
|
42
|
+
# query parameters
|
|
43
|
+
query_params = opts[:query_params] || {}
|
|
44
|
+
|
|
45
|
+
# header parameters
|
|
46
|
+
header_params = opts[:header_params] || {}
|
|
47
|
+
# HTTP header 'Accept' (if needed)
|
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
49
|
+
|
|
50
|
+
# form parameters
|
|
51
|
+
form_params = opts[:form_params] || {}
|
|
52
|
+
|
|
53
|
+
# http body (model)
|
|
54
|
+
post_body = opts[:debug_body]
|
|
55
|
+
|
|
56
|
+
# return_type
|
|
57
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
58
|
+
|
|
59
|
+
# auth_names
|
|
60
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
61
|
+
|
|
62
|
+
new_options = opts.merge(
|
|
63
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.create_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_post",
|
|
64
|
+
:header_params => header_params,
|
|
65
|
+
:query_params => query_params,
|
|
66
|
+
:form_params => form_params,
|
|
67
|
+
:body => post_body,
|
|
68
|
+
:auth_names => auth_names,
|
|
69
|
+
:return_type => return_type
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
73
|
+
if @api_client.config.debugging
|
|
74
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#create_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
75
|
+
end
|
|
76
|
+
return data, status_code, headers
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Create a routing code
|
|
80
|
+
# Créer un code de routage dans l'annuaire
|
|
81
|
+
# @param [Hash] opts the optional parameters
|
|
82
|
+
# @return [Object]
|
|
83
|
+
def create_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_post(opts = {})
|
|
84
|
+
data, _status_code, _headers = create_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_post_with_http_info(opts)
|
|
85
|
+
data
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Create a routing code
|
|
89
|
+
# Créer un code de routage dans l'annuaire
|
|
90
|
+
# @param [Hash] opts the optional parameters
|
|
91
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
92
|
+
def create_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_post_with_http_info(opts = {})
|
|
93
|
+
if @api_client.config.debugging
|
|
94
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.create_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_post ...'
|
|
95
|
+
end
|
|
96
|
+
# resource path
|
|
97
|
+
local_var_path = '/api/v1/afnor/directory/v1/routing-code'
|
|
98
|
+
|
|
99
|
+
# query parameters
|
|
100
|
+
query_params = opts[:query_params] || {}
|
|
101
|
+
|
|
102
|
+
# header parameters
|
|
103
|
+
header_params = opts[:header_params] || {}
|
|
104
|
+
# HTTP header 'Accept' (if needed)
|
|
105
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
106
|
+
|
|
107
|
+
# form parameters
|
|
108
|
+
form_params = opts[:form_params] || {}
|
|
109
|
+
|
|
110
|
+
# http body (model)
|
|
111
|
+
post_body = opts[:debug_body]
|
|
112
|
+
|
|
113
|
+
# return_type
|
|
114
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
115
|
+
|
|
116
|
+
# auth_names
|
|
117
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
118
|
+
|
|
119
|
+
new_options = opts.merge(
|
|
120
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.create_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_post",
|
|
121
|
+
:header_params => header_params,
|
|
122
|
+
:query_params => query_params,
|
|
123
|
+
:form_params => form_params,
|
|
124
|
+
:body => post_body,
|
|
125
|
+
:auth_names => auth_names,
|
|
126
|
+
:return_type => return_type
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
130
|
+
if @api_client.config.debugging
|
|
131
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#create_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
132
|
+
end
|
|
133
|
+
return data, status_code, headers
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Delete a directory line
|
|
137
|
+
# Supprimer une ligne d'annuaire
|
|
138
|
+
# @param id_instance [String]
|
|
139
|
+
# @param [Hash] opts the optional parameters
|
|
140
|
+
# @return [Object]
|
|
141
|
+
def delete_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_delete(id_instance, opts = {})
|
|
142
|
+
data, _status_code, _headers = delete_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_delete_with_http_info(id_instance, opts)
|
|
143
|
+
data
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Delete a directory line
|
|
147
|
+
# Supprimer une ligne d'annuaire
|
|
148
|
+
# @param id_instance [String]
|
|
149
|
+
# @param [Hash] opts the optional parameters
|
|
150
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
151
|
+
def delete_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_delete_with_http_info(id_instance, opts = {})
|
|
152
|
+
if @api_client.config.debugging
|
|
153
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.delete_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_delete ...'
|
|
154
|
+
end
|
|
155
|
+
# verify the required parameter 'id_instance' is set
|
|
156
|
+
if @api_client.config.client_side_validation && id_instance.nil?
|
|
157
|
+
fail ArgumentError, "Missing the required parameter 'id_instance' when calling AFNORPDPPADirectoryServiceApi.delete_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_delete"
|
|
158
|
+
end
|
|
159
|
+
# resource path
|
|
160
|
+
local_var_path = '/api/v1/afnor/directory/v1/directory-line/id-instance:{id_instance}'.sub('{' + 'id_instance' + '}', CGI.escape(id_instance.to_s))
|
|
161
|
+
|
|
162
|
+
# query parameters
|
|
163
|
+
query_params = opts[:query_params] || {}
|
|
164
|
+
|
|
165
|
+
# header parameters
|
|
166
|
+
header_params = opts[:header_params] || {}
|
|
167
|
+
# HTTP header 'Accept' (if needed)
|
|
168
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
169
|
+
|
|
170
|
+
# form parameters
|
|
171
|
+
form_params = opts[:form_params] || {}
|
|
172
|
+
|
|
173
|
+
# http body (model)
|
|
174
|
+
post_body = opts[:debug_body]
|
|
175
|
+
|
|
176
|
+
# return_type
|
|
177
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
178
|
+
|
|
179
|
+
# auth_names
|
|
180
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
181
|
+
|
|
182
|
+
new_options = opts.merge(
|
|
183
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.delete_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_delete",
|
|
184
|
+
:header_params => header_params,
|
|
185
|
+
:query_params => query_params,
|
|
186
|
+
:form_params => form_params,
|
|
187
|
+
:body => post_body,
|
|
188
|
+
:auth_names => auth_names,
|
|
189
|
+
:return_type => return_type
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
193
|
+
if @api_client.config.debugging
|
|
194
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#delete_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
195
|
+
end
|
|
196
|
+
return data, status_code, headers
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Healthcheck Directory Service
|
|
200
|
+
# Vérifier la disponibilité du Directory Service
|
|
201
|
+
# @param [Hash] opts the optional parameters
|
|
202
|
+
# @return [Object]
|
|
203
|
+
def directory_healthcheck_proxy_api_v1_afnor_directory_v1_healthcheck_get(opts = {})
|
|
204
|
+
data, _status_code, _headers = directory_healthcheck_proxy_api_v1_afnor_directory_v1_healthcheck_get_with_http_info(opts)
|
|
205
|
+
data
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Healthcheck Directory Service
|
|
209
|
+
# Vérifier la disponibilité du Directory Service
|
|
210
|
+
# @param [Hash] opts the optional parameters
|
|
211
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
212
|
+
def directory_healthcheck_proxy_api_v1_afnor_directory_v1_healthcheck_get_with_http_info(opts = {})
|
|
213
|
+
if @api_client.config.debugging
|
|
214
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.directory_healthcheck_proxy_api_v1_afnor_directory_v1_healthcheck_get ...'
|
|
215
|
+
end
|
|
216
|
+
# resource path
|
|
217
|
+
local_var_path = '/api/v1/afnor/directory/v1/healthcheck'
|
|
218
|
+
|
|
219
|
+
# query parameters
|
|
220
|
+
query_params = opts[:query_params] || {}
|
|
221
|
+
|
|
222
|
+
# header parameters
|
|
223
|
+
header_params = opts[:header_params] || {}
|
|
224
|
+
# HTTP header 'Accept' (if needed)
|
|
225
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
226
|
+
|
|
227
|
+
# form parameters
|
|
228
|
+
form_params = opts[:form_params] || {}
|
|
229
|
+
|
|
230
|
+
# http body (model)
|
|
231
|
+
post_body = opts[:debug_body]
|
|
232
|
+
|
|
233
|
+
# return_type
|
|
234
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
235
|
+
|
|
236
|
+
# auth_names
|
|
237
|
+
auth_names = opts[:debug_auth_names] || []
|
|
238
|
+
|
|
239
|
+
new_options = opts.merge(
|
|
240
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.directory_healthcheck_proxy_api_v1_afnor_directory_v1_healthcheck_get",
|
|
241
|
+
:header_params => header_params,
|
|
242
|
+
:query_params => query_params,
|
|
243
|
+
:form_params => form_params,
|
|
244
|
+
:body => post_body,
|
|
245
|
+
:auth_names => auth_names,
|
|
246
|
+
:return_type => return_type
|
|
247
|
+
)
|
|
248
|
+
|
|
249
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
250
|
+
if @api_client.config.debugging
|
|
251
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#directory_healthcheck_proxy_api_v1_afnor_directory_v1_healthcheck_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
252
|
+
end
|
|
253
|
+
return data, status_code, headers
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Get a directory line
|
|
257
|
+
# Obtenir une ligne d'annuaire identifiée par un identifiant d'adressage
|
|
258
|
+
# @param addressing_identifier [String]
|
|
259
|
+
# @param [Hash] opts the optional parameters
|
|
260
|
+
# @return [Object]
|
|
261
|
+
def get_directory_line_by_code_proxy_api_v1_afnor_directory_v1_directory_line_code_addressing_identifier_get(addressing_identifier, opts = {})
|
|
262
|
+
data, _status_code, _headers = get_directory_line_by_code_proxy_api_v1_afnor_directory_v1_directory_line_code_addressing_identifier_get_with_http_info(addressing_identifier, opts)
|
|
263
|
+
data
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# Get a directory line
|
|
267
|
+
# Obtenir une ligne d'annuaire identifiée par un identifiant d'adressage
|
|
268
|
+
# @param addressing_identifier [String]
|
|
269
|
+
# @param [Hash] opts the optional parameters
|
|
270
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
271
|
+
def get_directory_line_by_code_proxy_api_v1_afnor_directory_v1_directory_line_code_addressing_identifier_get_with_http_info(addressing_identifier, opts = {})
|
|
272
|
+
if @api_client.config.debugging
|
|
273
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.get_directory_line_by_code_proxy_api_v1_afnor_directory_v1_directory_line_code_addressing_identifier_get ...'
|
|
274
|
+
end
|
|
275
|
+
# verify the required parameter 'addressing_identifier' is set
|
|
276
|
+
if @api_client.config.client_side_validation && addressing_identifier.nil?
|
|
277
|
+
fail ArgumentError, "Missing the required parameter 'addressing_identifier' when calling AFNORPDPPADirectoryServiceApi.get_directory_line_by_code_proxy_api_v1_afnor_directory_v1_directory_line_code_addressing_identifier_get"
|
|
278
|
+
end
|
|
279
|
+
# resource path
|
|
280
|
+
local_var_path = '/api/v1/afnor/directory/v1/directory-line/code:{addressing_identifier}'.sub('{' + 'addressing_identifier' + '}', CGI.escape(addressing_identifier.to_s))
|
|
281
|
+
|
|
282
|
+
# query parameters
|
|
283
|
+
query_params = opts[:query_params] || {}
|
|
284
|
+
|
|
285
|
+
# header parameters
|
|
286
|
+
header_params = opts[:header_params] || {}
|
|
287
|
+
# HTTP header 'Accept' (if needed)
|
|
288
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
289
|
+
|
|
290
|
+
# form parameters
|
|
291
|
+
form_params = opts[:form_params] || {}
|
|
292
|
+
|
|
293
|
+
# http body (model)
|
|
294
|
+
post_body = opts[:debug_body]
|
|
295
|
+
|
|
296
|
+
# return_type
|
|
297
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
298
|
+
|
|
299
|
+
# auth_names
|
|
300
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
301
|
+
|
|
302
|
+
new_options = opts.merge(
|
|
303
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.get_directory_line_by_code_proxy_api_v1_afnor_directory_v1_directory_line_code_addressing_identifier_get",
|
|
304
|
+
:header_params => header_params,
|
|
305
|
+
:query_params => query_params,
|
|
306
|
+
:form_params => form_params,
|
|
307
|
+
:body => post_body,
|
|
308
|
+
:auth_names => auth_names,
|
|
309
|
+
:return_type => return_type
|
|
310
|
+
)
|
|
311
|
+
|
|
312
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
313
|
+
if @api_client.config.debugging
|
|
314
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#get_directory_line_by_code_proxy_api_v1_afnor_directory_v1_directory_line_code_addressing_identifier_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
315
|
+
end
|
|
316
|
+
return data, status_code, headers
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# Get a directory line
|
|
320
|
+
# Obtenir une ligne d'annuaire identifiée par son idInstance
|
|
321
|
+
# @param id_instance [String]
|
|
322
|
+
# @param [Hash] opts the optional parameters
|
|
323
|
+
# @return [Object]
|
|
324
|
+
def get_directory_line_by_id_instance_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_get(id_instance, opts = {})
|
|
325
|
+
data, _status_code, _headers = get_directory_line_by_id_instance_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_get_with_http_info(id_instance, opts)
|
|
326
|
+
data
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
# Get a directory line
|
|
330
|
+
# Obtenir une ligne d'annuaire identifiée par son idInstance
|
|
331
|
+
# @param id_instance [String]
|
|
332
|
+
# @param [Hash] opts the optional parameters
|
|
333
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
334
|
+
def get_directory_line_by_id_instance_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_get_with_http_info(id_instance, opts = {})
|
|
335
|
+
if @api_client.config.debugging
|
|
336
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.get_directory_line_by_id_instance_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_get ...'
|
|
337
|
+
end
|
|
338
|
+
# verify the required parameter 'id_instance' is set
|
|
339
|
+
if @api_client.config.client_side_validation && id_instance.nil?
|
|
340
|
+
fail ArgumentError, "Missing the required parameter 'id_instance' when calling AFNORPDPPADirectoryServiceApi.get_directory_line_by_id_instance_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_get"
|
|
341
|
+
end
|
|
342
|
+
# resource path
|
|
343
|
+
local_var_path = '/api/v1/afnor/directory/v1/directory-line/id-instance:{id_instance}'.sub('{' + 'id_instance' + '}', CGI.escape(id_instance.to_s))
|
|
344
|
+
|
|
345
|
+
# query parameters
|
|
346
|
+
query_params = opts[:query_params] || {}
|
|
347
|
+
|
|
348
|
+
# header parameters
|
|
349
|
+
header_params = opts[:header_params] || {}
|
|
350
|
+
# HTTP header 'Accept' (if needed)
|
|
351
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
352
|
+
|
|
353
|
+
# form parameters
|
|
354
|
+
form_params = opts[:form_params] || {}
|
|
355
|
+
|
|
356
|
+
# http body (model)
|
|
357
|
+
post_body = opts[:debug_body]
|
|
358
|
+
|
|
359
|
+
# return_type
|
|
360
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
361
|
+
|
|
362
|
+
# auth_names
|
|
363
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
364
|
+
|
|
365
|
+
new_options = opts.merge(
|
|
366
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.get_directory_line_by_id_instance_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_get",
|
|
367
|
+
:header_params => header_params,
|
|
368
|
+
:query_params => query_params,
|
|
369
|
+
:form_params => form_params,
|
|
370
|
+
:body => post_body,
|
|
371
|
+
:auth_names => auth_names,
|
|
372
|
+
:return_type => return_type
|
|
373
|
+
)
|
|
374
|
+
|
|
375
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
376
|
+
if @api_client.config.debugging
|
|
377
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#get_directory_line_by_id_instance_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
378
|
+
end
|
|
379
|
+
return data, status_code, headers
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
# Get a routing code by instance-id
|
|
383
|
+
# Obtenir un code de routage identifié par son idInstance
|
|
384
|
+
# @param id_instance [String]
|
|
385
|
+
# @param [Hash] opts the optional parameters
|
|
386
|
+
# @return [Object]
|
|
387
|
+
def get_routing_code_by_id_instance_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_get(id_instance, opts = {})
|
|
388
|
+
data, _status_code, _headers = get_routing_code_by_id_instance_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_get_with_http_info(id_instance, opts)
|
|
389
|
+
data
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
# Get a routing code by instance-id
|
|
393
|
+
# Obtenir un code de routage identifié par son idInstance
|
|
394
|
+
# @param id_instance [String]
|
|
395
|
+
# @param [Hash] opts the optional parameters
|
|
396
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
397
|
+
def get_routing_code_by_id_instance_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_get_with_http_info(id_instance, opts = {})
|
|
398
|
+
if @api_client.config.debugging
|
|
399
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.get_routing_code_by_id_instance_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_get ...'
|
|
400
|
+
end
|
|
401
|
+
# verify the required parameter 'id_instance' is set
|
|
402
|
+
if @api_client.config.client_side_validation && id_instance.nil?
|
|
403
|
+
fail ArgumentError, "Missing the required parameter 'id_instance' when calling AFNORPDPPADirectoryServiceApi.get_routing_code_by_id_instance_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_get"
|
|
404
|
+
end
|
|
405
|
+
# resource path
|
|
406
|
+
local_var_path = '/api/v1/afnor/directory/v1/routing-code/id-instance:{id_instance}'.sub('{' + 'id_instance' + '}', CGI.escape(id_instance.to_s))
|
|
407
|
+
|
|
408
|
+
# query parameters
|
|
409
|
+
query_params = opts[:query_params] || {}
|
|
410
|
+
|
|
411
|
+
# header parameters
|
|
412
|
+
header_params = opts[:header_params] || {}
|
|
413
|
+
# HTTP header 'Accept' (if needed)
|
|
414
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
415
|
+
|
|
416
|
+
# form parameters
|
|
417
|
+
form_params = opts[:form_params] || {}
|
|
418
|
+
|
|
419
|
+
# http body (model)
|
|
420
|
+
post_body = opts[:debug_body]
|
|
421
|
+
|
|
422
|
+
# return_type
|
|
423
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
424
|
+
|
|
425
|
+
# auth_names
|
|
426
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
427
|
+
|
|
428
|
+
new_options = opts.merge(
|
|
429
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.get_routing_code_by_id_instance_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_get",
|
|
430
|
+
:header_params => header_params,
|
|
431
|
+
:query_params => query_params,
|
|
432
|
+
:form_params => form_params,
|
|
433
|
+
:body => post_body,
|
|
434
|
+
:auth_names => auth_names,
|
|
435
|
+
:return_type => return_type
|
|
436
|
+
)
|
|
437
|
+
|
|
438
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
439
|
+
if @api_client.config.debugging
|
|
440
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#get_routing_code_by_id_instance_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
441
|
+
end
|
|
442
|
+
return data, status_code, headers
|
|
443
|
+
end
|
|
444
|
+
|
|
445
|
+
# Get a routing code by SIRET and routing identifier
|
|
446
|
+
# Consulter un code de routage identifié par SIRET et identifiant de routage
|
|
447
|
+
# @param siret [String]
|
|
448
|
+
# @param routing_identifier [String]
|
|
449
|
+
# @param [Hash] opts the optional parameters
|
|
450
|
+
# @return [Object]
|
|
451
|
+
def get_routing_code_by_siret_and_code_proxy_api_v1_afnor_directory_v1_routing_code_siret_siret_code_routing_identifier_get(siret, routing_identifier, opts = {})
|
|
452
|
+
data, _status_code, _headers = get_routing_code_by_siret_and_code_proxy_api_v1_afnor_directory_v1_routing_code_siret_siret_code_routing_identifier_get_with_http_info(siret, routing_identifier, opts)
|
|
453
|
+
data
|
|
454
|
+
end
|
|
455
|
+
|
|
456
|
+
# Get a routing code by SIRET and routing identifier
|
|
457
|
+
# Consulter un code de routage identifié par SIRET et identifiant de routage
|
|
458
|
+
# @param siret [String]
|
|
459
|
+
# @param routing_identifier [String]
|
|
460
|
+
# @param [Hash] opts the optional parameters
|
|
461
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
462
|
+
def get_routing_code_by_siret_and_code_proxy_api_v1_afnor_directory_v1_routing_code_siret_siret_code_routing_identifier_get_with_http_info(siret, routing_identifier, opts = {})
|
|
463
|
+
if @api_client.config.debugging
|
|
464
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.get_routing_code_by_siret_and_code_proxy_api_v1_afnor_directory_v1_routing_code_siret_siret_code_routing_identifier_get ...'
|
|
465
|
+
end
|
|
466
|
+
# verify the required parameter 'siret' is set
|
|
467
|
+
if @api_client.config.client_side_validation && siret.nil?
|
|
468
|
+
fail ArgumentError, "Missing the required parameter 'siret' when calling AFNORPDPPADirectoryServiceApi.get_routing_code_by_siret_and_code_proxy_api_v1_afnor_directory_v1_routing_code_siret_siret_code_routing_identifier_get"
|
|
469
|
+
end
|
|
470
|
+
# verify the required parameter 'routing_identifier' is set
|
|
471
|
+
if @api_client.config.client_side_validation && routing_identifier.nil?
|
|
472
|
+
fail ArgumentError, "Missing the required parameter 'routing_identifier' when calling AFNORPDPPADirectoryServiceApi.get_routing_code_by_siret_and_code_proxy_api_v1_afnor_directory_v1_routing_code_siret_siret_code_routing_identifier_get"
|
|
473
|
+
end
|
|
474
|
+
# resource path
|
|
475
|
+
local_var_path = '/api/v1/afnor/directory/v1/routing-code/siret:{siret}/code:{routing_identifier}'.sub('{' + 'siret' + '}', CGI.escape(siret.to_s)).sub('{' + 'routing_identifier' + '}', CGI.escape(routing_identifier.to_s))
|
|
476
|
+
|
|
477
|
+
# query parameters
|
|
478
|
+
query_params = opts[:query_params] || {}
|
|
479
|
+
|
|
480
|
+
# header parameters
|
|
481
|
+
header_params = opts[:header_params] || {}
|
|
482
|
+
# HTTP header 'Accept' (if needed)
|
|
483
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
484
|
+
|
|
485
|
+
# form parameters
|
|
486
|
+
form_params = opts[:form_params] || {}
|
|
487
|
+
|
|
488
|
+
# http body (model)
|
|
489
|
+
post_body = opts[:debug_body]
|
|
490
|
+
|
|
491
|
+
# return_type
|
|
492
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
493
|
+
|
|
494
|
+
# auth_names
|
|
495
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
496
|
+
|
|
497
|
+
new_options = opts.merge(
|
|
498
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.get_routing_code_by_siret_and_code_proxy_api_v1_afnor_directory_v1_routing_code_siret_siret_code_routing_identifier_get",
|
|
499
|
+
:header_params => header_params,
|
|
500
|
+
:query_params => query_params,
|
|
501
|
+
:form_params => form_params,
|
|
502
|
+
:body => post_body,
|
|
503
|
+
:auth_names => auth_names,
|
|
504
|
+
:return_type => return_type
|
|
505
|
+
)
|
|
506
|
+
|
|
507
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
508
|
+
if @api_client.config.debugging
|
|
509
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#get_routing_code_by_siret_and_code_proxy_api_v1_afnor_directory_v1_routing_code_siret_siret_code_routing_identifier_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
510
|
+
end
|
|
511
|
+
return data, status_code, headers
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
# Consult a siren (legal unit) by SIREN number
|
|
515
|
+
# Retourne les détails d'une entreprise (unité légale) identifiée par son numéro SIREN
|
|
516
|
+
# @param siren [String]
|
|
517
|
+
# @param [Hash] opts the optional parameters
|
|
518
|
+
# @return [Object]
|
|
519
|
+
def get_siren_by_code_insee_proxy_api_v1_afnor_directory_v1_siren_code_insee_siren_get(siren, opts = {})
|
|
520
|
+
data, _status_code, _headers = get_siren_by_code_insee_proxy_api_v1_afnor_directory_v1_siren_code_insee_siren_get_with_http_info(siren, opts)
|
|
521
|
+
data
|
|
522
|
+
end
|
|
523
|
+
|
|
524
|
+
# Consult a siren (legal unit) by SIREN number
|
|
525
|
+
# Retourne les détails d'une entreprise (unité légale) identifiée par son numéro SIREN
|
|
526
|
+
# @param siren [String]
|
|
527
|
+
# @param [Hash] opts the optional parameters
|
|
528
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
529
|
+
def get_siren_by_code_insee_proxy_api_v1_afnor_directory_v1_siren_code_insee_siren_get_with_http_info(siren, opts = {})
|
|
530
|
+
if @api_client.config.debugging
|
|
531
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.get_siren_by_code_insee_proxy_api_v1_afnor_directory_v1_siren_code_insee_siren_get ...'
|
|
532
|
+
end
|
|
533
|
+
# verify the required parameter 'siren' is set
|
|
534
|
+
if @api_client.config.client_side_validation && siren.nil?
|
|
535
|
+
fail ArgumentError, "Missing the required parameter 'siren' when calling AFNORPDPPADirectoryServiceApi.get_siren_by_code_insee_proxy_api_v1_afnor_directory_v1_siren_code_insee_siren_get"
|
|
536
|
+
end
|
|
537
|
+
# resource path
|
|
538
|
+
local_var_path = '/api/v1/afnor/directory/v1/siren/code-insee:{siren}'.sub('{' + 'siren' + '}', CGI.escape(siren.to_s))
|
|
539
|
+
|
|
540
|
+
# query parameters
|
|
541
|
+
query_params = opts[:query_params] || {}
|
|
542
|
+
|
|
543
|
+
# header parameters
|
|
544
|
+
header_params = opts[:header_params] || {}
|
|
545
|
+
# HTTP header 'Accept' (if needed)
|
|
546
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
547
|
+
|
|
548
|
+
# form parameters
|
|
549
|
+
form_params = opts[:form_params] || {}
|
|
550
|
+
|
|
551
|
+
# http body (model)
|
|
552
|
+
post_body = opts[:debug_body]
|
|
553
|
+
|
|
554
|
+
# return_type
|
|
555
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
556
|
+
|
|
557
|
+
# auth_names
|
|
558
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
559
|
+
|
|
560
|
+
new_options = opts.merge(
|
|
561
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.get_siren_by_code_insee_proxy_api_v1_afnor_directory_v1_siren_code_insee_siren_get",
|
|
562
|
+
:header_params => header_params,
|
|
563
|
+
:query_params => query_params,
|
|
564
|
+
:form_params => form_params,
|
|
565
|
+
:body => post_body,
|
|
566
|
+
:auth_names => auth_names,
|
|
567
|
+
:return_type => return_type
|
|
568
|
+
)
|
|
569
|
+
|
|
570
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
571
|
+
if @api_client.config.debugging
|
|
572
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#get_siren_by_code_insee_proxy_api_v1_afnor_directory_v1_siren_code_insee_siren_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
573
|
+
end
|
|
574
|
+
return data, status_code, headers
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
# Gets a siren (legal unit) by instance ID
|
|
578
|
+
# Obtenir une entreprise (unité légale) identifiée par son idInstance
|
|
579
|
+
# @param id_instance [String]
|
|
580
|
+
# @param [Hash] opts the optional parameters
|
|
581
|
+
# @return [Object]
|
|
582
|
+
def get_siren_by_id_instance_proxy_api_v1_afnor_directory_v1_siren_id_instance_id_instance_get(id_instance, opts = {})
|
|
583
|
+
data, _status_code, _headers = get_siren_by_id_instance_proxy_api_v1_afnor_directory_v1_siren_id_instance_id_instance_get_with_http_info(id_instance, opts)
|
|
584
|
+
data
|
|
585
|
+
end
|
|
586
|
+
|
|
587
|
+
# Gets a siren (legal unit) by instance ID
|
|
588
|
+
# Obtenir une entreprise (unité légale) identifiée par son idInstance
|
|
589
|
+
# @param id_instance [String]
|
|
590
|
+
# @param [Hash] opts the optional parameters
|
|
591
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
592
|
+
def get_siren_by_id_instance_proxy_api_v1_afnor_directory_v1_siren_id_instance_id_instance_get_with_http_info(id_instance, opts = {})
|
|
593
|
+
if @api_client.config.debugging
|
|
594
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.get_siren_by_id_instance_proxy_api_v1_afnor_directory_v1_siren_id_instance_id_instance_get ...'
|
|
595
|
+
end
|
|
596
|
+
# verify the required parameter 'id_instance' is set
|
|
597
|
+
if @api_client.config.client_side_validation && id_instance.nil?
|
|
598
|
+
fail ArgumentError, "Missing the required parameter 'id_instance' when calling AFNORPDPPADirectoryServiceApi.get_siren_by_id_instance_proxy_api_v1_afnor_directory_v1_siren_id_instance_id_instance_get"
|
|
599
|
+
end
|
|
600
|
+
# resource path
|
|
601
|
+
local_var_path = '/api/v1/afnor/directory/v1/siren/id-instance:{id_instance}'.sub('{' + 'id_instance' + '}', CGI.escape(id_instance.to_s))
|
|
602
|
+
|
|
603
|
+
# query parameters
|
|
604
|
+
query_params = opts[:query_params] || {}
|
|
605
|
+
|
|
606
|
+
# header parameters
|
|
607
|
+
header_params = opts[:header_params] || {}
|
|
608
|
+
# HTTP header 'Accept' (if needed)
|
|
609
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
610
|
+
|
|
611
|
+
# form parameters
|
|
612
|
+
form_params = opts[:form_params] || {}
|
|
613
|
+
|
|
614
|
+
# http body (model)
|
|
615
|
+
post_body = opts[:debug_body]
|
|
616
|
+
|
|
617
|
+
# return_type
|
|
618
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
619
|
+
|
|
620
|
+
# auth_names
|
|
621
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
622
|
+
|
|
623
|
+
new_options = opts.merge(
|
|
624
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.get_siren_by_id_instance_proxy_api_v1_afnor_directory_v1_siren_id_instance_id_instance_get",
|
|
625
|
+
:header_params => header_params,
|
|
626
|
+
:query_params => query_params,
|
|
627
|
+
:form_params => form_params,
|
|
628
|
+
:body => post_body,
|
|
629
|
+
:auth_names => auth_names,
|
|
630
|
+
:return_type => return_type
|
|
631
|
+
)
|
|
632
|
+
|
|
633
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
634
|
+
if @api_client.config.debugging
|
|
635
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#get_siren_by_id_instance_proxy_api_v1_afnor_directory_v1_siren_id_instance_id_instance_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
636
|
+
end
|
|
637
|
+
return data, status_code, headers
|
|
638
|
+
end
|
|
639
|
+
|
|
640
|
+
# Gets a siret (facility) by SIRET number
|
|
641
|
+
# Obtenir un établissement identifié par son numéro SIRET
|
|
642
|
+
# @param siret [String]
|
|
643
|
+
# @param [Hash] opts the optional parameters
|
|
644
|
+
# @return [Object]
|
|
645
|
+
def get_siret_by_code_insee_proxy_api_v1_afnor_directory_v1_siret_code_insee_siret_get(siret, opts = {})
|
|
646
|
+
data, _status_code, _headers = get_siret_by_code_insee_proxy_api_v1_afnor_directory_v1_siret_code_insee_siret_get_with_http_info(siret, opts)
|
|
647
|
+
data
|
|
648
|
+
end
|
|
649
|
+
|
|
650
|
+
# Gets a siret (facility) by SIRET number
|
|
651
|
+
# Obtenir un établissement identifié par son numéro SIRET
|
|
652
|
+
# @param siret [String]
|
|
653
|
+
# @param [Hash] opts the optional parameters
|
|
654
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
655
|
+
def get_siret_by_code_insee_proxy_api_v1_afnor_directory_v1_siret_code_insee_siret_get_with_http_info(siret, opts = {})
|
|
656
|
+
if @api_client.config.debugging
|
|
657
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.get_siret_by_code_insee_proxy_api_v1_afnor_directory_v1_siret_code_insee_siret_get ...'
|
|
658
|
+
end
|
|
659
|
+
# verify the required parameter 'siret' is set
|
|
660
|
+
if @api_client.config.client_side_validation && siret.nil?
|
|
661
|
+
fail ArgumentError, "Missing the required parameter 'siret' when calling AFNORPDPPADirectoryServiceApi.get_siret_by_code_insee_proxy_api_v1_afnor_directory_v1_siret_code_insee_siret_get"
|
|
662
|
+
end
|
|
663
|
+
# resource path
|
|
664
|
+
local_var_path = '/api/v1/afnor/directory/v1/siret/code-insee:{siret}'.sub('{' + 'siret' + '}', CGI.escape(siret.to_s))
|
|
665
|
+
|
|
666
|
+
# query parameters
|
|
667
|
+
query_params = opts[:query_params] || {}
|
|
668
|
+
|
|
669
|
+
# header parameters
|
|
670
|
+
header_params = opts[:header_params] || {}
|
|
671
|
+
# HTTP header 'Accept' (if needed)
|
|
672
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
673
|
+
|
|
674
|
+
# form parameters
|
|
675
|
+
form_params = opts[:form_params] || {}
|
|
676
|
+
|
|
677
|
+
# http body (model)
|
|
678
|
+
post_body = opts[:debug_body]
|
|
679
|
+
|
|
680
|
+
# return_type
|
|
681
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
682
|
+
|
|
683
|
+
# auth_names
|
|
684
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
685
|
+
|
|
686
|
+
new_options = opts.merge(
|
|
687
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.get_siret_by_code_insee_proxy_api_v1_afnor_directory_v1_siret_code_insee_siret_get",
|
|
688
|
+
:header_params => header_params,
|
|
689
|
+
:query_params => query_params,
|
|
690
|
+
:form_params => form_params,
|
|
691
|
+
:body => post_body,
|
|
692
|
+
:auth_names => auth_names,
|
|
693
|
+
:return_type => return_type
|
|
694
|
+
)
|
|
695
|
+
|
|
696
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
697
|
+
if @api_client.config.debugging
|
|
698
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#get_siret_by_code_insee_proxy_api_v1_afnor_directory_v1_siret_code_insee_siret_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
699
|
+
end
|
|
700
|
+
return data, status_code, headers
|
|
701
|
+
end
|
|
702
|
+
|
|
703
|
+
# Gets a siret (facility) by id-instance
|
|
704
|
+
# Obtenir un établissement identifié par son idInstance
|
|
705
|
+
# @param id_instance [String]
|
|
706
|
+
# @param [Hash] opts the optional parameters
|
|
707
|
+
# @return [Object]
|
|
708
|
+
def get_siret_by_id_instance_proxy_api_v1_afnor_directory_v1_siret_id_instance_id_instance_get(id_instance, opts = {})
|
|
709
|
+
data, _status_code, _headers = get_siret_by_id_instance_proxy_api_v1_afnor_directory_v1_siret_id_instance_id_instance_get_with_http_info(id_instance, opts)
|
|
710
|
+
data
|
|
711
|
+
end
|
|
712
|
+
|
|
713
|
+
# Gets a siret (facility) by id-instance
|
|
714
|
+
# Obtenir un établissement identifié par son idInstance
|
|
715
|
+
# @param id_instance [String]
|
|
716
|
+
# @param [Hash] opts the optional parameters
|
|
717
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
718
|
+
def get_siret_by_id_instance_proxy_api_v1_afnor_directory_v1_siret_id_instance_id_instance_get_with_http_info(id_instance, opts = {})
|
|
719
|
+
if @api_client.config.debugging
|
|
720
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.get_siret_by_id_instance_proxy_api_v1_afnor_directory_v1_siret_id_instance_id_instance_get ...'
|
|
721
|
+
end
|
|
722
|
+
# verify the required parameter 'id_instance' is set
|
|
723
|
+
if @api_client.config.client_side_validation && id_instance.nil?
|
|
724
|
+
fail ArgumentError, "Missing the required parameter 'id_instance' when calling AFNORPDPPADirectoryServiceApi.get_siret_by_id_instance_proxy_api_v1_afnor_directory_v1_siret_id_instance_id_instance_get"
|
|
725
|
+
end
|
|
726
|
+
# resource path
|
|
727
|
+
local_var_path = '/api/v1/afnor/directory/v1/siret/id-instance:{id_instance}'.sub('{' + 'id_instance' + '}', CGI.escape(id_instance.to_s))
|
|
728
|
+
|
|
729
|
+
# query parameters
|
|
730
|
+
query_params = opts[:query_params] || {}
|
|
731
|
+
|
|
732
|
+
# header parameters
|
|
733
|
+
header_params = opts[:header_params] || {}
|
|
734
|
+
# HTTP header 'Accept' (if needed)
|
|
735
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
736
|
+
|
|
737
|
+
# form parameters
|
|
738
|
+
form_params = opts[:form_params] || {}
|
|
739
|
+
|
|
740
|
+
# http body (model)
|
|
741
|
+
post_body = opts[:debug_body]
|
|
742
|
+
|
|
743
|
+
# return_type
|
|
744
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
745
|
+
|
|
746
|
+
# auth_names
|
|
747
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
748
|
+
|
|
749
|
+
new_options = opts.merge(
|
|
750
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.get_siret_by_id_instance_proxy_api_v1_afnor_directory_v1_siret_id_instance_id_instance_get",
|
|
751
|
+
:header_params => header_params,
|
|
752
|
+
:query_params => query_params,
|
|
753
|
+
:form_params => form_params,
|
|
754
|
+
:body => post_body,
|
|
755
|
+
:auth_names => auth_names,
|
|
756
|
+
:return_type => return_type
|
|
757
|
+
)
|
|
758
|
+
|
|
759
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
760
|
+
if @api_client.config.debugging
|
|
761
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#get_siret_by_id_instance_proxy_api_v1_afnor_directory_v1_siret_id_instance_id_instance_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
762
|
+
end
|
|
763
|
+
return data, status_code, headers
|
|
764
|
+
end
|
|
765
|
+
|
|
766
|
+
# Partially updates a directory line
|
|
767
|
+
# Mettre à jour partiellement une ligne d'annuaire
|
|
768
|
+
# @param id_instance [String]
|
|
769
|
+
# @param [Hash] opts the optional parameters
|
|
770
|
+
# @return [Object]
|
|
771
|
+
def patch_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_patch(id_instance, opts = {})
|
|
772
|
+
data, _status_code, _headers = patch_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_patch_with_http_info(id_instance, opts)
|
|
773
|
+
data
|
|
774
|
+
end
|
|
775
|
+
|
|
776
|
+
# Partially updates a directory line
|
|
777
|
+
# Mettre à jour partiellement une ligne d'annuaire
|
|
778
|
+
# @param id_instance [String]
|
|
779
|
+
# @param [Hash] opts the optional parameters
|
|
780
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
781
|
+
def patch_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_patch_with_http_info(id_instance, opts = {})
|
|
782
|
+
if @api_client.config.debugging
|
|
783
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.patch_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_patch ...'
|
|
784
|
+
end
|
|
785
|
+
# verify the required parameter 'id_instance' is set
|
|
786
|
+
if @api_client.config.client_side_validation && id_instance.nil?
|
|
787
|
+
fail ArgumentError, "Missing the required parameter 'id_instance' when calling AFNORPDPPADirectoryServiceApi.patch_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_patch"
|
|
788
|
+
end
|
|
789
|
+
# resource path
|
|
790
|
+
local_var_path = '/api/v1/afnor/directory/v1/directory-line/id-instance:{id_instance}'.sub('{' + 'id_instance' + '}', CGI.escape(id_instance.to_s))
|
|
791
|
+
|
|
792
|
+
# query parameters
|
|
793
|
+
query_params = opts[:query_params] || {}
|
|
794
|
+
|
|
795
|
+
# header parameters
|
|
796
|
+
header_params = opts[:header_params] || {}
|
|
797
|
+
# HTTP header 'Accept' (if needed)
|
|
798
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
799
|
+
|
|
800
|
+
# form parameters
|
|
801
|
+
form_params = opts[:form_params] || {}
|
|
802
|
+
|
|
803
|
+
# http body (model)
|
|
804
|
+
post_body = opts[:debug_body]
|
|
805
|
+
|
|
806
|
+
# return_type
|
|
807
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
808
|
+
|
|
809
|
+
# auth_names
|
|
810
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
811
|
+
|
|
812
|
+
new_options = opts.merge(
|
|
813
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.patch_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_patch",
|
|
814
|
+
:header_params => header_params,
|
|
815
|
+
:query_params => query_params,
|
|
816
|
+
:form_params => form_params,
|
|
817
|
+
:body => post_body,
|
|
818
|
+
:auth_names => auth_names,
|
|
819
|
+
:return_type => return_type
|
|
820
|
+
)
|
|
821
|
+
|
|
822
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
823
|
+
if @api_client.config.debugging
|
|
824
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#patch_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_id_instance_id_instance_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
825
|
+
end
|
|
826
|
+
return data, status_code, headers
|
|
827
|
+
end
|
|
828
|
+
|
|
829
|
+
# Partially update a private routing code
|
|
830
|
+
# Mettre à jour partiellement un code de routage privé
|
|
831
|
+
# @param id_instance [String]
|
|
832
|
+
# @param [Hash] opts the optional parameters
|
|
833
|
+
# @return [Object]
|
|
834
|
+
def patch_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_patch(id_instance, opts = {})
|
|
835
|
+
data, _status_code, _headers = patch_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_patch_with_http_info(id_instance, opts)
|
|
836
|
+
data
|
|
837
|
+
end
|
|
838
|
+
|
|
839
|
+
# Partially update a private routing code
|
|
840
|
+
# Mettre à jour partiellement un code de routage privé
|
|
841
|
+
# @param id_instance [String]
|
|
842
|
+
# @param [Hash] opts the optional parameters
|
|
843
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
844
|
+
def patch_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_patch_with_http_info(id_instance, opts = {})
|
|
845
|
+
if @api_client.config.debugging
|
|
846
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.patch_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_patch ...'
|
|
847
|
+
end
|
|
848
|
+
# verify the required parameter 'id_instance' is set
|
|
849
|
+
if @api_client.config.client_side_validation && id_instance.nil?
|
|
850
|
+
fail ArgumentError, "Missing the required parameter 'id_instance' when calling AFNORPDPPADirectoryServiceApi.patch_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_patch"
|
|
851
|
+
end
|
|
852
|
+
# resource path
|
|
853
|
+
local_var_path = '/api/v1/afnor/directory/v1/routing-code/id-instance:{id_instance}'.sub('{' + 'id_instance' + '}', CGI.escape(id_instance.to_s))
|
|
854
|
+
|
|
855
|
+
# query parameters
|
|
856
|
+
query_params = opts[:query_params] || {}
|
|
857
|
+
|
|
858
|
+
# header parameters
|
|
859
|
+
header_params = opts[:header_params] || {}
|
|
860
|
+
# HTTP header 'Accept' (if needed)
|
|
861
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
862
|
+
|
|
863
|
+
# form parameters
|
|
864
|
+
form_params = opts[:form_params] || {}
|
|
865
|
+
|
|
866
|
+
# http body (model)
|
|
867
|
+
post_body = opts[:debug_body]
|
|
868
|
+
|
|
869
|
+
# return_type
|
|
870
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
871
|
+
|
|
872
|
+
# auth_names
|
|
873
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
874
|
+
|
|
875
|
+
new_options = opts.merge(
|
|
876
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.patch_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_patch",
|
|
877
|
+
:header_params => header_params,
|
|
878
|
+
:query_params => query_params,
|
|
879
|
+
:form_params => form_params,
|
|
880
|
+
:body => post_body,
|
|
881
|
+
:auth_names => auth_names,
|
|
882
|
+
:return_type => return_type
|
|
883
|
+
)
|
|
884
|
+
|
|
885
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
886
|
+
if @api_client.config.debugging
|
|
887
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#patch_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
888
|
+
end
|
|
889
|
+
return data, status_code, headers
|
|
890
|
+
end
|
|
891
|
+
|
|
892
|
+
# Completely update a private routing code
|
|
893
|
+
# Mettre à jour complètement un code de routage privé
|
|
894
|
+
# @param id_instance [String]
|
|
895
|
+
# @param [Hash] opts the optional parameters
|
|
896
|
+
# @return [Object]
|
|
897
|
+
def put_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_put(id_instance, opts = {})
|
|
898
|
+
data, _status_code, _headers = put_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_put_with_http_info(id_instance, opts)
|
|
899
|
+
data
|
|
900
|
+
end
|
|
901
|
+
|
|
902
|
+
# Completely update a private routing code
|
|
903
|
+
# Mettre à jour complètement un code de routage privé
|
|
904
|
+
# @param id_instance [String]
|
|
905
|
+
# @param [Hash] opts the optional parameters
|
|
906
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
907
|
+
def put_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_put_with_http_info(id_instance, opts = {})
|
|
908
|
+
if @api_client.config.debugging
|
|
909
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.put_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_put ...'
|
|
910
|
+
end
|
|
911
|
+
# verify the required parameter 'id_instance' is set
|
|
912
|
+
if @api_client.config.client_side_validation && id_instance.nil?
|
|
913
|
+
fail ArgumentError, "Missing the required parameter 'id_instance' when calling AFNORPDPPADirectoryServiceApi.put_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_put"
|
|
914
|
+
end
|
|
915
|
+
# resource path
|
|
916
|
+
local_var_path = '/api/v1/afnor/directory/v1/routing-code/id-instance:{id_instance}'.sub('{' + 'id_instance' + '}', CGI.escape(id_instance.to_s))
|
|
917
|
+
|
|
918
|
+
# query parameters
|
|
919
|
+
query_params = opts[:query_params] || {}
|
|
920
|
+
|
|
921
|
+
# header parameters
|
|
922
|
+
header_params = opts[:header_params] || {}
|
|
923
|
+
# HTTP header 'Accept' (if needed)
|
|
924
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
925
|
+
|
|
926
|
+
# form parameters
|
|
927
|
+
form_params = opts[:form_params] || {}
|
|
928
|
+
|
|
929
|
+
# http body (model)
|
|
930
|
+
post_body = opts[:debug_body]
|
|
931
|
+
|
|
932
|
+
# return_type
|
|
933
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
934
|
+
|
|
935
|
+
# auth_names
|
|
936
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
937
|
+
|
|
938
|
+
new_options = opts.merge(
|
|
939
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.put_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_put",
|
|
940
|
+
:header_params => header_params,
|
|
941
|
+
:query_params => query_params,
|
|
942
|
+
:form_params => form_params,
|
|
943
|
+
:body => post_body,
|
|
944
|
+
:auth_names => auth_names,
|
|
945
|
+
:return_type => return_type
|
|
946
|
+
)
|
|
947
|
+
|
|
948
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
949
|
+
if @api_client.config.debugging
|
|
950
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#put_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_id_instance_id_instance_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
951
|
+
end
|
|
952
|
+
return data, status_code, headers
|
|
953
|
+
end
|
|
954
|
+
|
|
955
|
+
# Search for a directory line
|
|
956
|
+
# Rechercher des lignes d'annuaire selon des critères
|
|
957
|
+
# @param [Hash] opts the optional parameters
|
|
958
|
+
# @return [Object]
|
|
959
|
+
def search_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_search_post(opts = {})
|
|
960
|
+
data, _status_code, _headers = search_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_search_post_with_http_info(opts)
|
|
961
|
+
data
|
|
962
|
+
end
|
|
963
|
+
|
|
964
|
+
# Search for a directory line
|
|
965
|
+
# Rechercher des lignes d'annuaire selon des critères
|
|
966
|
+
# @param [Hash] opts the optional parameters
|
|
967
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
968
|
+
def search_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_search_post_with_http_info(opts = {})
|
|
969
|
+
if @api_client.config.debugging
|
|
970
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.search_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_search_post ...'
|
|
971
|
+
end
|
|
972
|
+
# resource path
|
|
973
|
+
local_var_path = '/api/v1/afnor/directory/v1/directory-line/search'
|
|
974
|
+
|
|
975
|
+
# query parameters
|
|
976
|
+
query_params = opts[:query_params] || {}
|
|
977
|
+
|
|
978
|
+
# header parameters
|
|
979
|
+
header_params = opts[:header_params] || {}
|
|
980
|
+
# HTTP header 'Accept' (if needed)
|
|
981
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
982
|
+
|
|
983
|
+
# form parameters
|
|
984
|
+
form_params = opts[:form_params] || {}
|
|
985
|
+
|
|
986
|
+
# http body (model)
|
|
987
|
+
post_body = opts[:debug_body]
|
|
988
|
+
|
|
989
|
+
# return_type
|
|
990
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
991
|
+
|
|
992
|
+
# auth_names
|
|
993
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
994
|
+
|
|
995
|
+
new_options = opts.merge(
|
|
996
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.search_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_search_post",
|
|
997
|
+
:header_params => header_params,
|
|
998
|
+
:query_params => query_params,
|
|
999
|
+
:form_params => form_params,
|
|
1000
|
+
:body => post_body,
|
|
1001
|
+
:auth_names => auth_names,
|
|
1002
|
+
:return_type => return_type
|
|
1003
|
+
)
|
|
1004
|
+
|
|
1005
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1006
|
+
if @api_client.config.debugging
|
|
1007
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#search_directory_line_proxy_api_v1_afnor_directory_v1_directory_line_search_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1008
|
+
end
|
|
1009
|
+
return data, status_code, headers
|
|
1010
|
+
end
|
|
1011
|
+
|
|
1012
|
+
# Search for a routing code
|
|
1013
|
+
# Rechercher des codes de routage selon des critères
|
|
1014
|
+
# @param [Hash] opts the optional parameters
|
|
1015
|
+
# @return [Object]
|
|
1016
|
+
def search_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_search_post(opts = {})
|
|
1017
|
+
data, _status_code, _headers = search_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_search_post_with_http_info(opts)
|
|
1018
|
+
data
|
|
1019
|
+
end
|
|
1020
|
+
|
|
1021
|
+
# Search for a routing code
|
|
1022
|
+
# Rechercher des codes de routage selon des critères
|
|
1023
|
+
# @param [Hash] opts the optional parameters
|
|
1024
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
1025
|
+
def search_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_search_post_with_http_info(opts = {})
|
|
1026
|
+
if @api_client.config.debugging
|
|
1027
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.search_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_search_post ...'
|
|
1028
|
+
end
|
|
1029
|
+
# resource path
|
|
1030
|
+
local_var_path = '/api/v1/afnor/directory/v1/routing-code/search'
|
|
1031
|
+
|
|
1032
|
+
# query parameters
|
|
1033
|
+
query_params = opts[:query_params] || {}
|
|
1034
|
+
|
|
1035
|
+
# header parameters
|
|
1036
|
+
header_params = opts[:header_params] || {}
|
|
1037
|
+
# HTTP header 'Accept' (if needed)
|
|
1038
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1039
|
+
|
|
1040
|
+
# form parameters
|
|
1041
|
+
form_params = opts[:form_params] || {}
|
|
1042
|
+
|
|
1043
|
+
# http body (model)
|
|
1044
|
+
post_body = opts[:debug_body]
|
|
1045
|
+
|
|
1046
|
+
# return_type
|
|
1047
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
1048
|
+
|
|
1049
|
+
# auth_names
|
|
1050
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
1051
|
+
|
|
1052
|
+
new_options = opts.merge(
|
|
1053
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.search_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_search_post",
|
|
1054
|
+
:header_params => header_params,
|
|
1055
|
+
:query_params => query_params,
|
|
1056
|
+
:form_params => form_params,
|
|
1057
|
+
:body => post_body,
|
|
1058
|
+
:auth_names => auth_names,
|
|
1059
|
+
:return_type => return_type
|
|
1060
|
+
)
|
|
1061
|
+
|
|
1062
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1063
|
+
if @api_client.config.debugging
|
|
1064
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#search_routing_code_proxy_api_v1_afnor_directory_v1_routing_code_search_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1065
|
+
end
|
|
1066
|
+
return data, status_code, headers
|
|
1067
|
+
end
|
|
1068
|
+
|
|
1069
|
+
# SIREN search (or legal unit)
|
|
1070
|
+
# Recherche multi-critères d'entreprises (unités légales)
|
|
1071
|
+
# @param [Hash] opts the optional parameters
|
|
1072
|
+
# @return [Object]
|
|
1073
|
+
def search_siren_proxy_api_v1_afnor_directory_v1_siren_search_post(opts = {})
|
|
1074
|
+
data, _status_code, _headers = search_siren_proxy_api_v1_afnor_directory_v1_siren_search_post_with_http_info(opts)
|
|
1075
|
+
data
|
|
1076
|
+
end
|
|
1077
|
+
|
|
1078
|
+
# SIREN search (or legal unit)
|
|
1079
|
+
# Recherche multi-critères d'entreprises (unités légales)
|
|
1080
|
+
# @param [Hash] opts the optional parameters
|
|
1081
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
1082
|
+
def search_siren_proxy_api_v1_afnor_directory_v1_siren_search_post_with_http_info(opts = {})
|
|
1083
|
+
if @api_client.config.debugging
|
|
1084
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.search_siren_proxy_api_v1_afnor_directory_v1_siren_search_post ...'
|
|
1085
|
+
end
|
|
1086
|
+
# resource path
|
|
1087
|
+
local_var_path = '/api/v1/afnor/directory/v1/siren/search'
|
|
1088
|
+
|
|
1089
|
+
# query parameters
|
|
1090
|
+
query_params = opts[:query_params] || {}
|
|
1091
|
+
|
|
1092
|
+
# header parameters
|
|
1093
|
+
header_params = opts[:header_params] || {}
|
|
1094
|
+
# HTTP header 'Accept' (if needed)
|
|
1095
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1096
|
+
|
|
1097
|
+
# form parameters
|
|
1098
|
+
form_params = opts[:form_params] || {}
|
|
1099
|
+
|
|
1100
|
+
# http body (model)
|
|
1101
|
+
post_body = opts[:debug_body]
|
|
1102
|
+
|
|
1103
|
+
# return_type
|
|
1104
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
1105
|
+
|
|
1106
|
+
# auth_names
|
|
1107
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
1108
|
+
|
|
1109
|
+
new_options = opts.merge(
|
|
1110
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.search_siren_proxy_api_v1_afnor_directory_v1_siren_search_post",
|
|
1111
|
+
:header_params => header_params,
|
|
1112
|
+
:query_params => query_params,
|
|
1113
|
+
:form_params => form_params,
|
|
1114
|
+
:body => post_body,
|
|
1115
|
+
:auth_names => auth_names,
|
|
1116
|
+
:return_type => return_type
|
|
1117
|
+
)
|
|
1118
|
+
|
|
1119
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1120
|
+
if @api_client.config.debugging
|
|
1121
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#search_siren_proxy_api_v1_afnor_directory_v1_siren_search_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1122
|
+
end
|
|
1123
|
+
return data, status_code, headers
|
|
1124
|
+
end
|
|
1125
|
+
|
|
1126
|
+
# Search for a SIRET (facility)
|
|
1127
|
+
# Recherche multi-critères d'établissements
|
|
1128
|
+
# @param [Hash] opts the optional parameters
|
|
1129
|
+
# @return [Object]
|
|
1130
|
+
def search_siret_proxy_api_v1_afnor_directory_v1_siret_search_post(opts = {})
|
|
1131
|
+
data, _status_code, _headers = search_siret_proxy_api_v1_afnor_directory_v1_siret_search_post_with_http_info(opts)
|
|
1132
|
+
data
|
|
1133
|
+
end
|
|
1134
|
+
|
|
1135
|
+
# Search for a SIRET (facility)
|
|
1136
|
+
# Recherche multi-critères d'établissements
|
|
1137
|
+
# @param [Hash] opts the optional parameters
|
|
1138
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
1139
|
+
def search_siret_proxy_api_v1_afnor_directory_v1_siret_search_post_with_http_info(opts = {})
|
|
1140
|
+
if @api_client.config.debugging
|
|
1141
|
+
@api_client.config.logger.debug 'Calling API: AFNORPDPPADirectoryServiceApi.search_siret_proxy_api_v1_afnor_directory_v1_siret_search_post ...'
|
|
1142
|
+
end
|
|
1143
|
+
# resource path
|
|
1144
|
+
local_var_path = '/api/v1/afnor/directory/v1/siret/search'
|
|
1145
|
+
|
|
1146
|
+
# query parameters
|
|
1147
|
+
query_params = opts[:query_params] || {}
|
|
1148
|
+
|
|
1149
|
+
# header parameters
|
|
1150
|
+
header_params = opts[:header_params] || {}
|
|
1151
|
+
# HTTP header 'Accept' (if needed)
|
|
1152
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1153
|
+
|
|
1154
|
+
# form parameters
|
|
1155
|
+
form_params = opts[:form_params] || {}
|
|
1156
|
+
|
|
1157
|
+
# http body (model)
|
|
1158
|
+
post_body = opts[:debug_body]
|
|
1159
|
+
|
|
1160
|
+
# return_type
|
|
1161
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
1162
|
+
|
|
1163
|
+
# auth_names
|
|
1164
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
|
1165
|
+
|
|
1166
|
+
new_options = opts.merge(
|
|
1167
|
+
:operation => :"AFNORPDPPADirectoryServiceApi.search_siret_proxy_api_v1_afnor_directory_v1_siret_search_post",
|
|
1168
|
+
:header_params => header_params,
|
|
1169
|
+
:query_params => query_params,
|
|
1170
|
+
:form_params => form_params,
|
|
1171
|
+
:body => post_body,
|
|
1172
|
+
:auth_names => auth_names,
|
|
1173
|
+
:return_type => return_type
|
|
1174
|
+
)
|
|
1175
|
+
|
|
1176
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1177
|
+
if @api_client.config.debugging
|
|
1178
|
+
@api_client.config.logger.debug "API called: AFNORPDPPADirectoryServiceApi#search_siret_proxy_api_v1_afnor_directory_v1_siret_search_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1179
|
+
end
|
|
1180
|
+
return data, status_code, headers
|
|
1181
|
+
end
|
|
1182
|
+
end
|
|
1183
|
+
end
|