factpulse 2.0.3 → 2.0.5
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 +4 -4
- data/CHANGELOG.md +3 -3
- data/Gemfile.lock +1 -1
- data/docs/AFNORPDPPADirectoryServiceApi.md +108 -18
- data/factpulse.gemspec +2 -2
- data/lib/factpulse/api/afnorpdppa_api.rb +1 -1
- data/lib/factpulse/api/afnorpdppa_directory_service_api.rb +19 -19
- data/lib/factpulse/api/afnorpdppa_flow_service_api.rb +1 -1
- data/lib/factpulse/api/chorus_pro_api.rb +1 -1
- data/lib/factpulse/api/sant_api.rb +1 -1
- data/lib/factpulse/api/traitement_facture_api.rb +1 -1
- data/lib/factpulse/api/utilisateur_api.rb +1 -1
- data/lib/factpulse/api_client.rb +1 -1
- data/lib/factpulse/api_error.rb +1 -1
- data/lib/factpulse/api_model_base.rb +1 -1
- data/lib/factpulse/configuration.rb +1 -1
- data/lib/factpulse/models/adresse_electronique.rb +1 -1
- data/lib/factpulse/models/adresse_postale.rb +1 -1
- data/lib/factpulse/models/body_ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post.rb +1 -1
- data/lib/factpulse/models/body_completer_facture_api_v1_chorus_pro_factures_completer_post.rb +1 -1
- data/lib/factpulse/models/body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get.rb +1 -1
- data/lib/factpulse/models/body_rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post.rb +1 -1
- data/lib/factpulse/models/body_rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post.rb +1 -1
- data/lib/factpulse/models/body_recycler_facture_api_v1_chorus_pro_factures_recycler_post.rb +1 -1
- data/lib/factpulse/models/body_telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post.rb +1 -1
- data/lib/factpulse/models/body_traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post.rb +1 -1
- data/lib/factpulse/models/body_valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post.rb +1 -1
- data/lib/factpulse/models/body_valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post.rb +1 -1
- data/lib/factpulse/models/body_valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post.rb +1 -1
- data/lib/factpulse/models/cadre_de_facturation.rb +1 -1
- data/lib/factpulse/models/categorie_tva.rb +11 -11
- data/lib/factpulse/models/certificate_info_response.rb +1 -1
- data/lib/factpulse/models/chorus_pro_credentials.rb +1 -1
- data/lib/factpulse/models/code_cadre_facturation.rb +1 -1
- data/lib/factpulse/models/code_raison_reduction.rb +9 -9
- data/lib/factpulse/models/consulter_facture_request.rb +1 -1
- data/lib/factpulse/models/consulter_facture_response.rb +1 -1
- data/lib/factpulse/models/consulter_structure_request.rb +1 -1
- data/lib/factpulse/models/consulter_structure_response.rb +1 -1
- data/lib/factpulse/models/credentials_afnor.rb +1 -1
- data/lib/factpulse/models/credentials_chorus_pro.rb +1 -1
- data/lib/factpulse/models/destinataire.rb +1 -1
- data/lib/factpulse/models/destination.rb +1 -1
- data/lib/factpulse/models/destination_afnor.rb +1 -1
- data/lib/factpulse/models/destination_chorus_pro.rb +1 -1
- data/lib/factpulse/models/donnees_facture_simplifiees.rb +1 -1
- data/lib/factpulse/models/facture_enrichie_info_input.rb +1 -1
- data/lib/factpulse/models/facture_enrichie_info_output.rb +1 -1
- data/lib/factpulse/models/facture_factur_x.rb +1 -1
- data/lib/factpulse/models/format_sortie.rb +1 -1
- data/lib/factpulse/models/fournisseur.rb +1 -1
- data/lib/factpulse/models/generate_certificate_request.rb +1 -1
- data/lib/factpulse/models/generate_certificate_response.rb +1 -1
- data/lib/factpulse/models/http_validation_error.rb +1 -1
- data/lib/factpulse/models/information_signature_api.rb +1 -1
- data/lib/factpulse/models/ligne_de_poste.rb +1 -1
- data/lib/factpulse/models/ligne_de_poste_montant_remise_ht.rb +1 -1
- data/lib/factpulse/models/ligne_de_poste_taux_tva_manuel.rb +1 -1
- data/lib/factpulse/models/ligne_de_tva.rb +1 -1
- data/lib/factpulse/models/mode_depot.rb +1 -1
- data/lib/factpulse/models/mode_paiement.rb +1 -1
- data/lib/factpulse/models/montant_a_payer.rb +1 -1
- data/lib/factpulse/models/montant_base_ht.rb +1 -1
- data/lib/factpulse/models/montant_ht_total.rb +1 -1
- data/lib/factpulse/models/montant_ht_total1.rb +1 -1
- data/lib/factpulse/models/montant_remise_globale_ttc.rb +1 -1
- data/lib/factpulse/models/montant_total.rb +1 -1
- data/lib/factpulse/models/montant_total_acompte.rb +1 -1
- data/lib/factpulse/models/montant_total_ligne_ht.rb +1 -1
- data/lib/factpulse/models/montant_ttc_total.rb +1 -1
- data/lib/factpulse/models/montant_ttc_total1.rb +1 -1
- data/lib/factpulse/models/montant_tva.rb +1 -1
- data/lib/factpulse/models/montant_tva1.rb +1 -1
- data/lib/factpulse/models/montant_unitaire_ht.rb +1 -1
- data/lib/factpulse/models/obtenir_id_chorus_pro_request.rb +1 -1
- data/lib/factpulse/models/obtenir_id_chorus_pro_response.rb +1 -1
- data/lib/factpulse/models/options_processing.rb +1 -1
- data/lib/factpulse/models/parametres_signature.rb +1 -1
- data/lib/factpulse/models/parametres_structure.rb +1 -1
- data/lib/factpulse/models/pdf_factur_x_info.rb +1 -1
- data/lib/factpulse/models/piece_jointe_complementaire.rb +1 -1
- data/lib/factpulse/models/profil_api.rb +1 -1
- data/lib/factpulse/models/quantite.rb +1 -1
- data/lib/factpulse/models/quota_info.rb +1 -1
- data/lib/factpulse/models/rechercher_services_response.rb +1 -1
- data/lib/factpulse/models/rechercher_structure_request.rb +1 -1
- data/lib/factpulse/models/rechercher_structure_response.rb +1 -1
- data/lib/factpulse/models/references.rb +1 -1
- data/lib/factpulse/models/reponse_tache.rb +1 -1
- data/lib/factpulse/models/reponse_validation_erreur.rb +1 -1
- data/lib/factpulse/models/reponse_validation_succes.rb +1 -1
- data/lib/factpulse/models/resultat_afnor.rb +1 -1
- data/lib/factpulse/models/resultat_chorus_pro.rb +1 -1
- data/lib/factpulse/models/resultat_validation_pdfapi.rb +1 -1
- data/lib/factpulse/models/scheme_id.rb +7 -7
- data/lib/factpulse/models/service_structure.rb +1 -1
- data/lib/factpulse/models/signature_info.rb +1 -1
- data/lib/factpulse/models/soumettre_facture_complete_request.rb +1 -1
- data/lib/factpulse/models/soumettre_facture_complete_response.rb +1 -1
- data/lib/factpulse/models/soumettre_facture_request.rb +1 -1
- data/lib/factpulse/models/soumettre_facture_response.rb +1 -1
- data/lib/factpulse/models/statut_facture.rb +1 -1
- data/lib/factpulse/models/statut_tache.rb +1 -1
- data/lib/factpulse/models/structure_info.rb +1 -1
- data/lib/factpulse/models/tauxmanuel.rb +1 -1
- data/lib/factpulse/models/type_facture.rb +1 -1
- data/lib/factpulse/models/type_tva.rb +1 -1
- data/lib/factpulse/models/unite.rb +1 -1
- data/lib/factpulse/models/utilisateur.rb +1 -1
- data/lib/factpulse/models/validation_error.rb +1 -1
- data/lib/factpulse/models/validation_error_loc_inner.rb +1 -1
- data/lib/factpulse/version.rb +2 -2
- data/lib/factpulse.rb +1 -13
- metadata +11 -27
- data/docs/DirectionFlux.md +0 -15
- data/docs/FluxResume.md +0 -32
- data/docs/PDPCredentials.md +0 -26
- data/docs/ProfilFlux.md +0 -15
- data/docs/ReponseHealthcheckAFNOR.md +0 -22
- data/docs/ReponseRechercheFlux.md +0 -24
- data/docs/ReponseSoumissionFlux.md +0 -30
- data/docs/RequeteRechercheFlux.md +0 -34
- data/docs/RequeteSoumissionFlux.md +0 -28
- data/docs/StatutAcquittement.md +0 -15
- data/docs/SyntaxeFlux.md +0 -15
- data/docs/TypeFlux.md +0 -15
- data/lib/factpulse/models/direction_flux.rb +0 -40
- data/lib/factpulse/models/flux_resume.rb +0 -251
- data/lib/factpulse/models/pdp_credentials.rb +0 -257
- data/lib/factpulse/models/profil_flux.rb +0 -41
- data/lib/factpulse/models/reponse_healthcheck_afnor.rb +0 -220
- data/lib/factpulse/models/reponse_recherche_flux.rb +0 -249
- data/lib/factpulse/models/reponse_soumission_flux.rb +0 -294
- data/lib/factpulse/models/requete_recherche_flux.rb +0 -306
- data/lib/factpulse/models/requete_soumission_flux.rb +0 -238
- data/lib/factpulse/models/statut_acquittement.rb +0 -41
- data/lib/factpulse/models/syntaxe_flux.rb +0 -43
- data/lib/factpulse/models/type_flux.rb +0 -43
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 99557b8015b22937479cc8c1d3b1fd230af629d03486fccdf1447e31679f1fac
|
|
4
|
+
data.tar.gz: '068a40a5e78cdd11064286558979782194e4cebeac071d60a95009eba560dd3a'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95bf88d1d5b3bf6e20cf059da39353240e43e96556c75395de5db3fd70df1a2ffbd2afa0fb77536c714230c776bfa431317de4edba4364ff9ea42ea9e3b3c779
|
|
7
|
+
data.tar.gz: 113a631809991ac88d964b158441d86b037d144cc9b91b065af1493ff2850151e6e729197eab8f893319d98c530cf371ca746f696218b6ddc5b4fee25dd8d7e4
|
data/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,7 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
## [2.0.
|
|
10
|
+
## [2.0.5] - 2025-11-19
|
|
11
11
|
|
|
12
12
|
### Added
|
|
13
13
|
- Version initiale du SDK ruby
|
|
@@ -24,5 +24,5 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
24
24
|
- Guide d'authentification JWT
|
|
25
25
|
- Configuration avancée (timeout, proxy, debug)
|
|
26
26
|
|
|
27
|
-
[Unreleased]: https://github.com/factpulse/sdk-ruby/compare/v2.0.
|
|
28
|
-
[2.0.
|
|
27
|
+
[Unreleased]: https://github.com/factpulse/sdk-ruby/compare/v2.0.5...HEAD
|
|
28
|
+
[2.0.5]: https://github.com/factpulse/sdk-ruby/releases/tag/v2.0.5
|
data/Gemfile.lock
CHANGED
|
@@ -38,6 +38,11 @@ Créer une ligne dans l'annuaire
|
|
|
38
38
|
```ruby
|
|
39
39
|
require 'time'
|
|
40
40
|
require 'factpulse'
|
|
41
|
+
# setup authorization
|
|
42
|
+
FactPulse.configure do |config|
|
|
43
|
+
# Configure Bearer authorization: HTTPBearer
|
|
44
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
45
|
+
end
|
|
41
46
|
|
|
42
47
|
api_instance = FactPulse::AFNORPDPPADirectoryServiceApi.new
|
|
43
48
|
|
|
@@ -78,7 +83,7 @@ This endpoint does not need any parameter.
|
|
|
78
83
|
|
|
79
84
|
### Authorization
|
|
80
85
|
|
|
81
|
-
|
|
86
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
82
87
|
|
|
83
88
|
### HTTP request headers
|
|
84
89
|
|
|
@@ -99,6 +104,11 @@ Créer un code de routage dans l'annuaire
|
|
|
99
104
|
```ruby
|
|
100
105
|
require 'time'
|
|
101
106
|
require 'factpulse'
|
|
107
|
+
# setup authorization
|
|
108
|
+
FactPulse.configure do |config|
|
|
109
|
+
# Configure Bearer authorization: HTTPBearer
|
|
110
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
111
|
+
end
|
|
102
112
|
|
|
103
113
|
api_instance = FactPulse::AFNORPDPPADirectoryServiceApi.new
|
|
104
114
|
|
|
@@ -139,7 +149,7 @@ This endpoint does not need any parameter.
|
|
|
139
149
|
|
|
140
150
|
### Authorization
|
|
141
151
|
|
|
142
|
-
|
|
152
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
143
153
|
|
|
144
154
|
### HTTP request headers
|
|
145
155
|
|
|
@@ -160,6 +170,11 @@ Supprimer une ligne d'annuaire
|
|
|
160
170
|
```ruby
|
|
161
171
|
require 'time'
|
|
162
172
|
require 'factpulse'
|
|
173
|
+
# setup authorization
|
|
174
|
+
FactPulse.configure do |config|
|
|
175
|
+
# Configure Bearer authorization: HTTPBearer
|
|
176
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
177
|
+
end
|
|
163
178
|
|
|
164
179
|
api_instance = FactPulse::AFNORPDPPADirectoryServiceApi.new
|
|
165
180
|
id_instance = 'id_instance_example' # String |
|
|
@@ -203,7 +218,7 @@ end
|
|
|
203
218
|
|
|
204
219
|
### Authorization
|
|
205
220
|
|
|
206
|
-
|
|
221
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
207
222
|
|
|
208
223
|
### HTTP request headers
|
|
209
224
|
|
|
@@ -285,6 +300,11 @@ Obtenir une ligne d'annuaire identifiée par un identifiant d'adressage
|
|
|
285
300
|
```ruby
|
|
286
301
|
require 'time'
|
|
287
302
|
require 'factpulse'
|
|
303
|
+
# setup authorization
|
|
304
|
+
FactPulse.configure do |config|
|
|
305
|
+
# Configure Bearer authorization: HTTPBearer
|
|
306
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
307
|
+
end
|
|
288
308
|
|
|
289
309
|
api_instance = FactPulse::AFNORPDPPADirectoryServiceApi.new
|
|
290
310
|
addressing_identifier = 'addressing_identifier_example' # String |
|
|
@@ -328,7 +348,7 @@ end
|
|
|
328
348
|
|
|
329
349
|
### Authorization
|
|
330
350
|
|
|
331
|
-
|
|
351
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
332
352
|
|
|
333
353
|
### HTTP request headers
|
|
334
354
|
|
|
@@ -349,6 +369,11 @@ Obtenir une ligne d'annuaire identifiée par son idInstance
|
|
|
349
369
|
```ruby
|
|
350
370
|
require 'time'
|
|
351
371
|
require 'factpulse'
|
|
372
|
+
# setup authorization
|
|
373
|
+
FactPulse.configure do |config|
|
|
374
|
+
# Configure Bearer authorization: HTTPBearer
|
|
375
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
376
|
+
end
|
|
352
377
|
|
|
353
378
|
api_instance = FactPulse::AFNORPDPPADirectoryServiceApi.new
|
|
354
379
|
id_instance = 'id_instance_example' # String |
|
|
@@ -392,7 +417,7 @@ end
|
|
|
392
417
|
|
|
393
418
|
### Authorization
|
|
394
419
|
|
|
395
|
-
|
|
420
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
396
421
|
|
|
397
422
|
### HTTP request headers
|
|
398
423
|
|
|
@@ -413,6 +438,11 @@ Obtenir un code de routage identifié par son idInstance
|
|
|
413
438
|
```ruby
|
|
414
439
|
require 'time'
|
|
415
440
|
require 'factpulse'
|
|
441
|
+
# setup authorization
|
|
442
|
+
FactPulse.configure do |config|
|
|
443
|
+
# Configure Bearer authorization: HTTPBearer
|
|
444
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
445
|
+
end
|
|
416
446
|
|
|
417
447
|
api_instance = FactPulse::AFNORPDPPADirectoryServiceApi.new
|
|
418
448
|
id_instance = 'id_instance_example' # String |
|
|
@@ -456,7 +486,7 @@ end
|
|
|
456
486
|
|
|
457
487
|
### Authorization
|
|
458
488
|
|
|
459
|
-
|
|
489
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
460
490
|
|
|
461
491
|
### HTTP request headers
|
|
462
492
|
|
|
@@ -477,6 +507,11 @@ Consulter un code de routage identifié par SIRET et identifiant de routage
|
|
|
477
507
|
```ruby
|
|
478
508
|
require 'time'
|
|
479
509
|
require 'factpulse'
|
|
510
|
+
# setup authorization
|
|
511
|
+
FactPulse.configure do |config|
|
|
512
|
+
# Configure Bearer authorization: HTTPBearer
|
|
513
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
514
|
+
end
|
|
480
515
|
|
|
481
516
|
api_instance = FactPulse::AFNORPDPPADirectoryServiceApi.new
|
|
482
517
|
siret = 'siret_example' # String |
|
|
@@ -522,7 +557,7 @@ end
|
|
|
522
557
|
|
|
523
558
|
### Authorization
|
|
524
559
|
|
|
525
|
-
|
|
560
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
526
561
|
|
|
527
562
|
### HTTP request headers
|
|
528
563
|
|
|
@@ -543,6 +578,11 @@ Retourne les détails d'une entreprise (unité légale) identifiée par son num
|
|
|
543
578
|
```ruby
|
|
544
579
|
require 'time'
|
|
545
580
|
require 'factpulse'
|
|
581
|
+
# setup authorization
|
|
582
|
+
FactPulse.configure do |config|
|
|
583
|
+
# Configure Bearer authorization: HTTPBearer
|
|
584
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
585
|
+
end
|
|
546
586
|
|
|
547
587
|
api_instance = FactPulse::AFNORPDPPADirectoryServiceApi.new
|
|
548
588
|
siren = 'siren_example' # String |
|
|
@@ -586,7 +626,7 @@ end
|
|
|
586
626
|
|
|
587
627
|
### Authorization
|
|
588
628
|
|
|
589
|
-
|
|
629
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
590
630
|
|
|
591
631
|
### HTTP request headers
|
|
592
632
|
|
|
@@ -607,6 +647,11 @@ Obtenir une entreprise (unité légale) identifiée par son idInstance
|
|
|
607
647
|
```ruby
|
|
608
648
|
require 'time'
|
|
609
649
|
require 'factpulse'
|
|
650
|
+
# setup authorization
|
|
651
|
+
FactPulse.configure do |config|
|
|
652
|
+
# Configure Bearer authorization: HTTPBearer
|
|
653
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
654
|
+
end
|
|
610
655
|
|
|
611
656
|
api_instance = FactPulse::AFNORPDPPADirectoryServiceApi.new
|
|
612
657
|
id_instance = 'id_instance_example' # String |
|
|
@@ -650,7 +695,7 @@ end
|
|
|
650
695
|
|
|
651
696
|
### Authorization
|
|
652
697
|
|
|
653
|
-
|
|
698
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
654
699
|
|
|
655
700
|
### HTTP request headers
|
|
656
701
|
|
|
@@ -671,6 +716,11 @@ Obtenir un établissement identifié par son numéro SIRET
|
|
|
671
716
|
```ruby
|
|
672
717
|
require 'time'
|
|
673
718
|
require 'factpulse'
|
|
719
|
+
# setup authorization
|
|
720
|
+
FactPulse.configure do |config|
|
|
721
|
+
# Configure Bearer authorization: HTTPBearer
|
|
722
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
723
|
+
end
|
|
674
724
|
|
|
675
725
|
api_instance = FactPulse::AFNORPDPPADirectoryServiceApi.new
|
|
676
726
|
siret = 'siret_example' # String |
|
|
@@ -714,7 +764,7 @@ end
|
|
|
714
764
|
|
|
715
765
|
### Authorization
|
|
716
766
|
|
|
717
|
-
|
|
767
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
718
768
|
|
|
719
769
|
### HTTP request headers
|
|
720
770
|
|
|
@@ -735,6 +785,11 @@ Obtenir un établissement identifié par son idInstance
|
|
|
735
785
|
```ruby
|
|
736
786
|
require 'time'
|
|
737
787
|
require 'factpulse'
|
|
788
|
+
# setup authorization
|
|
789
|
+
FactPulse.configure do |config|
|
|
790
|
+
# Configure Bearer authorization: HTTPBearer
|
|
791
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
792
|
+
end
|
|
738
793
|
|
|
739
794
|
api_instance = FactPulse::AFNORPDPPADirectoryServiceApi.new
|
|
740
795
|
id_instance = 'id_instance_example' # String |
|
|
@@ -778,7 +833,7 @@ end
|
|
|
778
833
|
|
|
779
834
|
### Authorization
|
|
780
835
|
|
|
781
|
-
|
|
836
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
782
837
|
|
|
783
838
|
### HTTP request headers
|
|
784
839
|
|
|
@@ -799,6 +854,11 @@ Mettre à jour partiellement une ligne d'annuaire
|
|
|
799
854
|
```ruby
|
|
800
855
|
require 'time'
|
|
801
856
|
require 'factpulse'
|
|
857
|
+
# setup authorization
|
|
858
|
+
FactPulse.configure do |config|
|
|
859
|
+
# Configure Bearer authorization: HTTPBearer
|
|
860
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
861
|
+
end
|
|
802
862
|
|
|
803
863
|
api_instance = FactPulse::AFNORPDPPADirectoryServiceApi.new
|
|
804
864
|
id_instance = 'id_instance_example' # String |
|
|
@@ -842,7 +902,7 @@ end
|
|
|
842
902
|
|
|
843
903
|
### Authorization
|
|
844
904
|
|
|
845
|
-
|
|
905
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
846
906
|
|
|
847
907
|
### HTTP request headers
|
|
848
908
|
|
|
@@ -863,6 +923,11 @@ Mettre à jour partiellement un code de routage privé
|
|
|
863
923
|
```ruby
|
|
864
924
|
require 'time'
|
|
865
925
|
require 'factpulse'
|
|
926
|
+
# setup authorization
|
|
927
|
+
FactPulse.configure do |config|
|
|
928
|
+
# Configure Bearer authorization: HTTPBearer
|
|
929
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
930
|
+
end
|
|
866
931
|
|
|
867
932
|
api_instance = FactPulse::AFNORPDPPADirectoryServiceApi.new
|
|
868
933
|
id_instance = 'id_instance_example' # String |
|
|
@@ -906,7 +971,7 @@ end
|
|
|
906
971
|
|
|
907
972
|
### Authorization
|
|
908
973
|
|
|
909
|
-
|
|
974
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
910
975
|
|
|
911
976
|
### HTTP request headers
|
|
912
977
|
|
|
@@ -927,6 +992,11 @@ Mettre à jour complètement un code de routage privé
|
|
|
927
992
|
```ruby
|
|
928
993
|
require 'time'
|
|
929
994
|
require 'factpulse'
|
|
995
|
+
# setup authorization
|
|
996
|
+
FactPulse.configure do |config|
|
|
997
|
+
# Configure Bearer authorization: HTTPBearer
|
|
998
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
999
|
+
end
|
|
930
1000
|
|
|
931
1001
|
api_instance = FactPulse::AFNORPDPPADirectoryServiceApi.new
|
|
932
1002
|
id_instance = 'id_instance_example' # String |
|
|
@@ -970,7 +1040,7 @@ end
|
|
|
970
1040
|
|
|
971
1041
|
### Authorization
|
|
972
1042
|
|
|
973
|
-
|
|
1043
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
974
1044
|
|
|
975
1045
|
### HTTP request headers
|
|
976
1046
|
|
|
@@ -991,6 +1061,11 @@ Rechercher des lignes d'annuaire selon des critères
|
|
|
991
1061
|
```ruby
|
|
992
1062
|
require 'time'
|
|
993
1063
|
require 'factpulse'
|
|
1064
|
+
# setup authorization
|
|
1065
|
+
FactPulse.configure do |config|
|
|
1066
|
+
# Configure Bearer authorization: HTTPBearer
|
|
1067
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1068
|
+
end
|
|
994
1069
|
|
|
995
1070
|
api_instance = FactPulse::AFNORPDPPADirectoryServiceApi.new
|
|
996
1071
|
|
|
@@ -1031,7 +1106,7 @@ This endpoint does not need any parameter.
|
|
|
1031
1106
|
|
|
1032
1107
|
### Authorization
|
|
1033
1108
|
|
|
1034
|
-
|
|
1109
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
1035
1110
|
|
|
1036
1111
|
### HTTP request headers
|
|
1037
1112
|
|
|
@@ -1052,6 +1127,11 @@ Rechercher des codes de routage selon des critères
|
|
|
1052
1127
|
```ruby
|
|
1053
1128
|
require 'time'
|
|
1054
1129
|
require 'factpulse'
|
|
1130
|
+
# setup authorization
|
|
1131
|
+
FactPulse.configure do |config|
|
|
1132
|
+
# Configure Bearer authorization: HTTPBearer
|
|
1133
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1134
|
+
end
|
|
1055
1135
|
|
|
1056
1136
|
api_instance = FactPulse::AFNORPDPPADirectoryServiceApi.new
|
|
1057
1137
|
|
|
@@ -1092,7 +1172,7 @@ This endpoint does not need any parameter.
|
|
|
1092
1172
|
|
|
1093
1173
|
### Authorization
|
|
1094
1174
|
|
|
1095
|
-
|
|
1175
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
1096
1176
|
|
|
1097
1177
|
### HTTP request headers
|
|
1098
1178
|
|
|
@@ -1113,6 +1193,11 @@ Recherche multi-critères d'entreprises (unités légales)
|
|
|
1113
1193
|
```ruby
|
|
1114
1194
|
require 'time'
|
|
1115
1195
|
require 'factpulse'
|
|
1196
|
+
# setup authorization
|
|
1197
|
+
FactPulse.configure do |config|
|
|
1198
|
+
# Configure Bearer authorization: HTTPBearer
|
|
1199
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1200
|
+
end
|
|
1116
1201
|
|
|
1117
1202
|
api_instance = FactPulse::AFNORPDPPADirectoryServiceApi.new
|
|
1118
1203
|
|
|
@@ -1153,7 +1238,7 @@ This endpoint does not need any parameter.
|
|
|
1153
1238
|
|
|
1154
1239
|
### Authorization
|
|
1155
1240
|
|
|
1156
|
-
|
|
1241
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
1157
1242
|
|
|
1158
1243
|
### HTTP request headers
|
|
1159
1244
|
|
|
@@ -1174,6 +1259,11 @@ Recherche multi-critères d'établissements
|
|
|
1174
1259
|
```ruby
|
|
1175
1260
|
require 'time'
|
|
1176
1261
|
require 'factpulse'
|
|
1262
|
+
# setup authorization
|
|
1263
|
+
FactPulse.configure do |config|
|
|
1264
|
+
# Configure Bearer authorization: HTTPBearer
|
|
1265
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1266
|
+
end
|
|
1177
1267
|
|
|
1178
1268
|
api_instance = FactPulse::AFNORPDPPADirectoryServiceApi.new
|
|
1179
1269
|
|
|
@@ -1214,7 +1304,7 @@ This endpoint does not need any parameter.
|
|
|
1214
1304
|
|
|
1215
1305
|
### Authorization
|
|
1216
1306
|
|
|
1217
|
-
|
|
1307
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
1218
1308
|
|
|
1219
1309
|
### HTTP request headers
|
|
1220
1310
|
|
data/factpulse.gemspec
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
=begin
|
|
4
4
|
#API REST FactPulse
|
|
5
5
|
|
|
6
|
-
# 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\" }' ``` **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/
|
|
6
|
+
# 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/
|
|
7
7
|
|
|
8
8
|
The version of the OpenAPI document: 1.0.0
|
|
9
9
|
|
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
|
|
|
23
23
|
s.email = [""]
|
|
24
24
|
s.homepage = "https://openapi-generator.tech"
|
|
25
25
|
s.summary = "API REST FactPulse Ruby Gem"
|
|
26
|
-
s.description = " 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\" }' ``` **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/ "
|
|
26
|
+
s.description = " 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/ "
|
|
27
27
|
s.license = "Unlicense"
|
|
28
28
|
s.required_ruby_version = ">= 2.7"
|
|
29
29
|
s.metadata = {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#API REST FactPulse
|
|
3
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\" }' ``` **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/
|
|
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
5
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
|