factpulse 0.1.0 → 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 +4 -4
- data/CHANGELOG.md +15 -4
- data/Gemfile.lock +7 -7
- data/LICENSE +1 -1
- data/README.md +146 -159
- data/docs/AFNORPDPPAApi.md +6 -87
- data/docs/AFNORPDPPADirectoryServiceApi.md +238 -148
- data/docs/AFNORPDPPAFlowServiceApi.md +40 -52
- data/docs/APIError.md +2 -2
- 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 +20 -20
- data/docs/ChorusProApi.md +142 -224
- data/docs/ChorusProCredentials.md +5 -5
- data/docs/{AFNORDiffusionStatus.md → CodeCadreFacturation.md} +2 -2
- data/docs/{AFNORFacilityType.md → CodeRaisonReduction.md} +2 -2
- data/docs/{GetInvoiceRequest.md → ConsulterFactureRequest.md} +4 -4
- data/docs/ConsulterFactureResponse.md +34 -0
- data/docs/ConsulterStructureRequest.md +22 -0
- data/docs/ConsulterStructureResponse.md +34 -0
- data/docs/{AFNORCredentials.md → CredentialsAFNOR.md} +2 -2
- data/docs/{FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md → CredentialsChorusPro.md} +4 -4
- data/docs/Destinataire.md +28 -0
- data/docs/Destination.md +7 -7
- data/docs/DestinationAFNOR.md +24 -0
- data/docs/DestinationChorusPro.md +20 -0
- data/docs/DonneesFactureSimplifiees.md +34 -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 +19 -19
- data/docs/GenerateCertificateResponse.md +8 -8
- 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/{AmountDue.md → ModeDepot.md} +2 -2
- data/docs/ModePaiement.md +15 -0
- data/docs/{AFNORFlowType.md → MontantAPayer.md} +2 -2
- data/docs/MontantBaseHt.md +15 -0
- data/docs/{AFNORAlgorithm.md → MontantHtTotal.md} +2 -2
- data/docs/{AFNORContainsOperator.md → MontantRemiseGlobaleTtc.md} +2 -2
- data/docs/MontantTotal.md +30 -0
- data/docs/{AFNORFacilityNature.md → MontantTotalAcompte.md} +2 -2
- data/docs/MontantTotalLigneHt.md +15 -0
- data/docs/{AFNORFlowSyntax.md → MontantTtcTotal.md} +2 -2
- data/docs/{APIProfile.md → MontantTva.md} +2 -2
- data/docs/{AFNOREntityType.md → MontantTvaLigne.md} +2 -2
- data/docs/MontantTvaTotal.md +15 -0
- data/docs/{AFNORFlowProfile.md → MontantUnitaireHt.md} +2 -2
- data/docs/{InvoiceNote.md → Note.md} +3 -3
- 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/{Amount.md → ProfilAPI.md} +2 -2
- data/docs/{Amount2.md → Quantite.md} +2 -2
- 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/ServiceStructure.md +24 -0
- data/docs/SignatureInfo.md +2 -2
- 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/{InvoiceStatus.md → StatutFacture.md} +5 -5
- data/docs/StatutTache.md +22 -0
- data/docs/StructureInfo.md +10 -10
- data/docs/Tauxmanuel.md +15 -0
- data/docs/TraitementFactureApi.md +831 -0
- data/docs/TypeFacture.md +15 -0
- data/docs/{Amount1.md → TypeTVA.md} +2 -2
- data/docs/{Rate.md → Unite.md} +2 -2
- data/docs/UtilisateurApi.md +74 -0
- data/docs/ValidationError.md +1 -1
- data/docs/ValidationErrorDetail.md +3 -3
- data/docs/{AFNORDirectoryLineField.md → ValidationErrorLocInner.md} +2 -2
- data/factpulse.gemspec +7 -7
- data/lib/factpulse/api/afnorpdppa_api.rb +8 -77
- data/lib/factpulse/api/afnorpdppa_directory_service_api.rb +143 -143
- data/lib/factpulse/api/afnorpdppa_flow_service_api.rb +34 -67
- data/lib/factpulse/api/chorus_pro_api.rb +147 -149
- 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 +4 -4
- data/lib/factpulse/api_error.rb +4 -4
- data/lib/factpulse/api_model_base.rb +4 -4
- data/lib/factpulse/configuration.rb +8 -19
- data/lib/factpulse/helpers/client.rb +246 -218
- data/lib/factpulse/helpers/exceptions.rb +14 -38
- 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 +7 -7
- 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 +166 -166
- data/lib/factpulse/models/chorus_pro_credentials.rb +14 -14
- 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 +9 -9
- 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 +4 -4
- data/lib/factpulse/models/error_source.rb +5 -6
- 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 +108 -108
- data/lib/factpulse/models/generate_certificate_response.rb +49 -49
- data/lib/factpulse/models/http_validation_error.rb +4 -4
- 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 +7 -20
- data/lib/factpulse/models/service_structure.rb +247 -0
- data/lib/factpulse/models/signature_info.rb +22 -22
- 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 +86 -86
- 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 +5 -5
- data/lib/factpulse/models/validation_error_detail.rb +8 -8
- data/lib/factpulse/models/validation_error_loc_inner.rb +103 -0
- data/lib/factpulse/version.rb +5 -5
- data/lib/factpulse.rb +79 -315
- metadata +215 -676
- data/docs/AFNORAcknowledgement.md +0 -20
- data/docs/AFNORAcknowledgementDetail.md +0 -24
- data/docs/AFNORAddressEdit.md +0 -30
- data/docs/AFNORAddressPatch.md +0 -30
- data/docs/AFNORAddressPut.md +0 -30
- data/docs/AFNORAddressRead.md +0 -32
- data/docs/AFNORCreateDirectoryLineBody.md +0 -20
- data/docs/AFNORCreateDirectoryLineBodyAddressingInformation.md +0 -24
- data/docs/AFNORCreateDirectoryLineBodyPeriod.md +0 -20
- data/docs/AFNORCreateRoutingCodeBody.md +0 -32
- data/docs/AFNORDestination.md +0 -26
- data/docs/AFNORDirectoryLinePayloadHistoryLegalUnitFacilityRoutingCode.md +0 -32
- data/docs/AFNORDirectoryLinePayloadHistoryLegalUnitFacilityRoutingCodePlatform.md +0 -20
- data/docs/AFNORDirectoryLinePayloadHistoryLegalUnitFacilityRoutingCodeRoutingCode.md +0 -28
- data/docs/AFNORDirectoryLinePost201Response.md +0 -22
- data/docs/AFNORDirectoryLineSearchPost200Response.md +0 -22
- data/docs/AFNORError.md +0 -26
- data/docs/AFNORFacilityAdministrativeStatus.md +0 -15
- data/docs/AFNORFacilityPayloadHistory.md +0 -34
- data/docs/AFNORFacilityPayloadHistoryUleB2gAdditionalData.md +0 -28
- data/docs/AFNORFacilityPayloadIncluded.md +0 -32
- data/docs/AFNORFlow.md +0 -38
- data/docs/AFNORFlowAckStatus.md +0 -15
- data/docs/AFNORFlowDirection.md +0 -15
- data/docs/AFNORFlowInfo.md +0 -28
- data/docs/AFNORFullFlowInfo.md +0 -32
- data/docs/AFNORHealthCheckResponse.md +0 -22
- data/docs/AFNORLegalUnitAdministrativeStatus.md +0 -15
- data/docs/AFNORLegalUnitPayloadHistory.md +0 -24
- data/docs/AFNORLegalUnitPayloadIncluded.md +0 -24
- data/docs/AFNORLegalUnitPayloadIncludedNoSiren.md +0 -22
- data/docs/AFNORPlatformStatus.md +0 -15
- data/docs/AFNORProcessingRule.md +0 -15
- data/docs/AFNORReasonCode.md +0 -49
- data/docs/AFNORReasonCodeEnum.md +0 -15
- data/docs/AFNORRecipientPlatformType.md +0 -15
- data/docs/AFNORResult.md +0 -32
- data/docs/AFNORRoutingCodeAdministrativeStatus.md +0 -15
- data/docs/AFNORRoutingCodeField.md +0 -15
- data/docs/AFNORRoutingCodePayloadHistoryLegalUnitFacility.md +0 -34
- data/docs/AFNORRoutingCodePost201Response.md +0 -22
- data/docs/AFNORRoutingCodeSearch.md +0 -28
- data/docs/AFNORRoutingCodeSearchFilters.md +0 -30
- data/docs/AFNORRoutingCodeSearchFiltersAdministrativeStatus.md +0 -20
- data/docs/AFNORRoutingCodeSearchFiltersRoutingCodeName.md +0 -20
- data/docs/AFNORRoutingCodeSearchFiltersRoutingIdentifier.md +0 -20
- data/docs/AFNORRoutingCodeSearchPost200Response.md +0 -22
- data/docs/AFNORRoutingCodeSearchSortingInner.md +0 -20
- data/docs/AFNORSearchDirectoryLine.md +0 -26
- data/docs/AFNORSearchDirectoryLineFilters.md +0 -26
- data/docs/AFNORSearchDirectoryLineFiltersAddressingIdentifier.md +0 -20
- data/docs/AFNORSearchDirectoryLineFiltersAddressingSuffix.md +0 -20
- data/docs/AFNORSearchDirectoryLineSortingInner.md +0 -20
- data/docs/AFNORSearchFlowContent.md +0 -22
- data/docs/AFNORSearchFlowFilters.md +0 -30
- data/docs/AFNORSearchFlowParams.md +0 -20
- data/docs/AFNORSearchSiren.md +0 -26
- data/docs/AFNORSearchSirenFilters.md +0 -24
- data/docs/AFNORSearchSirenFiltersAdministrativeStatus.md +0 -20
- data/docs/AFNORSearchSirenFiltersBusinessName.md +0 -20
- data/docs/AFNORSearchSirenFiltersEntityType.md +0 -20
- data/docs/AFNORSearchSirenFiltersSiren.md +0 -20
- data/docs/AFNORSearchSirenSortingInner.md +0 -20
- data/docs/AFNORSearchSiret.md +0 -28
- data/docs/AFNORSearchSiretFilters.md +0 -34
- data/docs/AFNORSearchSiretFiltersAddressLines.md +0 -20
- data/docs/AFNORSearchSiretFiltersAdministrativeStatus.md +0 -20
- data/docs/AFNORSearchSiretFiltersCountrySubdivision.md +0 -20
- data/docs/AFNORSearchSiretFiltersFacilityType.md +0 -20
- data/docs/AFNORSearchSiretFiltersLocality.md +0 -20
- data/docs/AFNORSearchSiretFiltersName.md +0 -20
- data/docs/AFNORSearchSiretFiltersPostalCode.md +0 -20
- data/docs/AFNORSearchSiretFiltersSiret.md +0 -20
- data/docs/AFNORSearchSiretSortingInner.md +0 -20
- data/docs/AFNORSirenField.md +0 -15
- data/docs/AFNORSirenSearchPost200Response.md +0 -22
- data/docs/AFNORSiretField.md +0 -15
- data/docs/AFNORSiretSearchPost200Response.md +0 -22
- data/docs/AFNORSortingOrder.md +0 -15
- data/docs/AFNORStrictOperator.md +0 -15
- data/docs/AFNORUpdatePatchDirectoryLineBody.md +0 -18
- data/docs/AFNORUpdatePatchRoutingCodeBody.md +0 -24
- data/docs/AFNORUpdatePutRoutingCodeBody.md +0 -24
- data/docs/AFNORWebhookCallbackContent.md +0 -18
- data/docs/AcknowledgmentStatus.md +0 -15
- data/docs/ActionCodeInfo.md +0 -22
- data/docs/ActionCodesResponse.md +0 -22
- data/docs/AdditionalDocument.md +0 -26
- data/docs/AggregatedPaymentInput.md +0 -22
- data/docs/AggregatedTransactionInput.md +0 -32
- data/docs/AllowanceCharge.md +0 -32
- data/docs/AllowanceChargeReasonCode.md +0 -15
- data/docs/AllowanceReasonCode.md +0 -15
- data/docs/AllowanceTotalAmount.md +0 -15
- data/docs/AsyncTaskStatus.md +0 -22
- data/docs/AsyncTasksApi.md +0 -82
- data/docs/BaseAmount.md +0 -15
- data/docs/BoundingBoxSchema.md +0 -30
- data/docs/Buyercountry.md +0 -15
- data/docs/CeleryStatus.md +0 -15
- data/docs/ChargeTotalAmount.md +0 -15
- data/docs/ChorusProDestination.md +0 -20
- data/docs/ChorusProResult.md +0 -22
- data/docs/ClientActivateResponse.md +0 -22
- data/docs/ClientCreateRequest.md +0 -22
- data/docs/ClientDetail.md +0 -38
- data/docs/ClientListResponse.md +0 -24
- data/docs/ClientManagementApi.md +0 -921
- data/docs/ClientSummary.md +0 -38
- data/docs/ClientUpdateRequest.md +0 -22
- data/docs/Contact.md +0 -24
- data/docs/ConvertResumeRequest.md +0 -18
- data/docs/ConvertSuccessResponse.md +0 -36
- data/docs/ConvertValidationFailedResponse.md +0 -34
- data/docs/CountryCode.md +0 -15
- data/docs/CreateAggregatedReportRequest.md +0 -36
- data/docs/CreateCDARRequest.md +0 -52
- data/docs/CreateEReportingRequest.md +0 -38
- data/docs/Currency.md +0 -15
- data/docs/CurrencyCode.md +0 -15
- data/docs/DeliveryParty.md +0 -24
- data/docs/DocType.md +0 -15
- data/docs/DocumentTypeInfo.md +0 -22
- data/docs/DownloadsApi.md +0 -161
- data/docs/EReportingFlowType.md +0 -15
- data/docs/EReportingValidationError.md +0 -22
- data/docs/ElectronicAddress.md +0 -20
- data/docs/ElectronicSignatureApi.md +0 -339
- data/docs/Encaisseamount.md +0 -15
- data/docs/Encaisseamount1.md +0 -15
- data/docs/EncaisseeRequest.md +0 -40
- data/docs/EnrichedInvoiceInfo.md +0 -32
- data/docs/ExtractionInfo.md +0 -24
- data/docs/FacturXConversionApi.md +0 -319
- data/docs/FacturXGenerationApi.md +0 -254
- data/docs/FacturXInvoice.md +0 -76
- data/docs/FacturXPDFInfo.md +0 -22
- data/docs/FacturXPDFXMLVerificationApi.md +0 -240
- data/docs/FacturXValidationApi.md +0 -256
- data/docs/FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode.md +0 -15
- data/docs/FactureElectroniqueRestApiSchemasValidationValidationErrorResponse.md +0 -18
- data/docs/FieldStatus.md +0 -15
- data/docs/FileInfo.md +0 -20
- data/docs/FilesInfo.md +0 -20
- data/docs/FlowDirection.md +0 -15
- data/docs/FlowProfile.md +0 -15
- data/docs/FlowSummary.md +0 -32
- data/docs/FlowSyntax.md +0 -15
- data/docs/FlowType.md +0 -15
- data/docs/Flux10EReportingApi.md +0 -814
- data/docs/Flux6InvoiceLifecycleCDARApi.md +0 -698
- data/docs/GenerateAggregatedReportResponse.md +0 -30
- data/docs/GenerateCDARResponse.md +0 -26
- data/docs/GenerateEReportingResponse.md +0 -26
- data/docs/GetChorusProIdRequest.md +0 -22
- data/docs/GetChorusProIdResponse.md +0 -24
- data/docs/GetInvoiceResponse.md +0 -34
- data/docs/GetStructureRequest.md +0 -22
- data/docs/GetStructureResponse.md +0 -34
- data/docs/GlobalAllowanceAmount.md +0 -15
- data/docs/GrossUnitPrice.md +0 -15
- data/docs/HealthApi.md +0 -203
- data/docs/IncomingInvoice.md +0 -54
- data/docs/IncomingSupplier.md +0 -32
- data/docs/InvoiceFormat.md +0 -15
- data/docs/InvoiceInput.md +0 -50
- data/docs/InvoiceLine.md +0 -84
- data/docs/InvoiceLineAllowanceAmount.md +0 -15
- data/docs/InvoicePaymentInput.md +0 -26
- data/docs/InvoiceReferences.md +0 -52
- data/docs/InvoiceTotals.md +0 -38
- data/docs/InvoiceTotalsPrepayment.md +0 -15
- data/docs/InvoiceTypeCode.md +0 -15
- data/docs/InvoiceTypeCodeOutput.md +0 -15
- data/docs/InvoicingFramework.md +0 -24
- data/docs/InvoicingFrameworkCode.md +0 -15
- data/docs/IssuerRoleCode.md +0 -15
- data/docs/KeyRotationRequest.md +0 -20
- data/docs/KeyRotationResponse.md +0 -24
- data/docs/LineNetAmount.md +0 -15
- data/docs/LineSubType.md +0 -15
- data/docs/LineTotalAmount.md +0 -15
- data/docs/LocationInner.md +0 -15
- data/docs/MandatoryNoteSchema.md +0 -30
- data/docs/ManualRate.md +0 -15
- data/docs/ManualVatRate.md +0 -15
- data/docs/MissingField.md +0 -28
- data/docs/OperationNature.md +0 -15
- data/docs/OutputFormat.md +0 -15
- data/docs/PDFValidationResultAPI.md +0 -62
- data/docs/PDPConfigResponse.md +0 -46
- data/docs/PDPConfigUpdateRequest.md +0 -30
- data/docs/PDPCredentials.md +0 -26
- data/docs/PageDimensionsSchema.md +0 -20
- data/docs/Payee.md +0 -32
- data/docs/PaymentAmountByRate.md +0 -20
- data/docs/PaymentCard.md +0 -20
- data/docs/PaymentMeans.md +0 -15
- data/docs/Percentage.md +0 -15
- data/docs/PostalAddress.md +0 -30
- data/docs/PriceAllowanceAmount.md +0 -15
- data/docs/PriceBasisQuantity.md +0 -15
- data/docs/ProcessingOptions.md +0 -24
- data/docs/ProcessingRule.md +0 -15
- data/docs/ProductCharacteristic.md +0 -20
- data/docs/ProductClassification.md +0 -22
- data/docs/Quantity.md +0 -15
- data/docs/Rate1.md +0 -15
- data/docs/ReasonCodeInfo.md +0 -22
- data/docs/ReasonCodesResponse.md +0 -22
- data/docs/Recipient.md +0 -34
- data/docs/RecipientInput.md +0 -26
- data/docs/RefuseeRequest.md +0 -40
- data/docs/ReportIssuer.md +0 -24
- data/docs/ReportPeriod.md +0 -20
- data/docs/ReportSender.md +0 -22
- data/docs/RoundingAmount.md +0 -15
- data/docs/SchematronValidationError.md +0 -32
- data/docs/SearchFlowRequest.md +0 -34
- data/docs/SearchFlowResponse.md +0 -24
- data/docs/SearchServicesResponse.md +0 -24
- data/docs/SearchStructureRequest.md +0 -26
- data/docs/SearchStructureResponse.md +0 -24
- data/docs/SecretStatus.md +0 -24
- data/docs/Sellercountry.md +0 -15
- data/docs/SignatureInfoAPI.md +0 -28
- data/docs/SignatureParameters.md +0 -34
- data/docs/SimplifiedCDARResponse.md +0 -26
- data/docs/SimplifiedInvoiceData.md +0 -42
- data/docs/StatusCodeInfo.md +0 -22
- data/docs/StatusCodesResponse.md +0 -22
- data/docs/StructureParameters.md +0 -22
- data/docs/StructureService.md +0 -24
- data/docs/SubmissionMode.md +0 -15
- data/docs/SubmitAggregatedReportRequest.md +0 -28
- data/docs/SubmitCDARRequest.md +0 -62
- data/docs/SubmitCDARResponse.md +0 -24
- data/docs/SubmitCDARXMLRequest.md +0 -30
- data/docs/SubmitCompleteInvoiceRequest.md +0 -26
- data/docs/SubmitCompleteInvoiceResponse.md +0 -34
- data/docs/SubmitEReportingRequest.md +0 -28
- data/docs/SubmitEReportingResponse.md +0 -32
- data/docs/SubmitFlowRequest.md +0 -28
- data/docs/SubmitFlowResponse.md +0 -30
- data/docs/SubmitGrossAmount.md +0 -15
- data/docs/SubmitInvoiceRequest.md +0 -46
- data/docs/SubmitInvoiceResponse.md +0 -24
- data/docs/SubmitNetAmount.md +0 -15
- data/docs/SubmitVatAmount.md +0 -15
- data/docs/SupplementaryAttachment.md +0 -26
- data/docs/Supplier.md +0 -52
- data/docs/TaskResponse.md +0 -18
- data/docs/TaxBreakdownInput.md +0 -22
- data/docs/TaxDueDateType.md +0 -15
- data/docs/TaxRepresentative.md +0 -22
- data/docs/TaxableAmount.md +0 -15
- data/docs/Taxableamount.md +0 -15
- data/docs/Taxamount.md +0 -15
- data/docs/Taxamount1.md +0 -15
- data/docs/Taxamount2.md +0 -15
- data/docs/Taxexclusiveamount.md +0 -15
- data/docs/Taxexclusiveamount1.md +0 -15
- data/docs/TotalGrossAmount.md +0 -15
- data/docs/TotalNetAmount.md +0 -15
- data/docs/TotalVATAmount.md +0 -15
- data/docs/TransactionCategory.md +0 -15
- data/docs/TransmissionTypeCode.md +0 -15
- data/docs/UnitNetPrice.md +0 -15
- data/docs/UnitOfMeasure.md +0 -15
- data/docs/VATAccountingCode.md +0 -15
- data/docs/VATAmount.md +0 -15
- data/docs/VATCategory.md +0 -15
- data/docs/VATLine.md +0 -32
- data/docs/VATPointDateCode.md +0 -15
- data/docs/ValidateCDARRequest.md +0 -32
- data/docs/ValidateCDARResponse.md +0 -22
- data/docs/ValidateEReportingRequest.md +0 -18
- data/docs/ValidateEReportingResponse.md +0 -28
- data/docs/ValidationErrorResponse.md +0 -24
- data/docs/ValidationInfo.md +0 -28
- data/docs/ValidationSuccessResponse.md +0 -18
- data/docs/VatRate.md +0 -15
- data/docs/VerificationSuccessResponse.md +0 -36
- data/docs/VerifiedFieldSchema.md +0 -34
- data/docs/WebhookSecretDeleteResponse.md +0 -20
- data/docs/WebhookSecretGenerateResponse.md +0 -24
- data/docs/WebhookSecretStatusResponse.md +0 -20
- data/lib/factpulse/api/async_tasks_api.rb +0 -85
- data/lib/factpulse/api/client_management_api.rb +0 -831
- data/lib/factpulse/api/downloads_api.rb +0 -151
- data/lib/factpulse/api/electronic_signature_api.rb +0 -339
- data/lib/factpulse/api/factur_x_conversion_api.rb +0 -306
- data/lib/factpulse/api/factur_x_generation_api.rb +0 -254
- data/lib/factpulse/api/factur_x_validation_api.rb +0 -256
- data/lib/factpulse/api/factur_xpdfxml_verification_api.rb +0 -232
- data/lib/factpulse/api/flux10_e_reporting_api.rb +0 -777
- data/lib/factpulse/api/flux6_invoice_lifecycle_cdar_api.rb +0 -670
- data/lib/factpulse/api/health_api.rb +0 -193
- data/lib/factpulse/helpers/helpers.rb +0 -14
- data/lib/factpulse/models/acknowledgment_status.rb +0 -41
- data/lib/factpulse/models/action_code_info.rb +0 -220
- data/lib/factpulse/models/action_codes_response.rb +0 -207
- data/lib/factpulse/models/additional_document.rb +0 -206
- data/lib/factpulse/models/afnor_acknowledgement.rb +0 -216
- data/lib/factpulse/models/afnor_acknowledgement_detail.rb +0 -267
- data/lib/factpulse/models/afnor_address_edit.rb +0 -353
- data/lib/factpulse/models/afnor_address_patch.rb +0 -386
- data/lib/factpulse/models/afnor_address_put.rb +0 -435
- data/lib/factpulse/models/afnor_address_read.rb +0 -382
- data/lib/factpulse/models/afnor_algorithm.rb +0 -43
- data/lib/factpulse/models/afnor_contains_operator.rb +0 -39
- data/lib/factpulse/models/afnor_create_directory_line_body.rb +0 -156
- data/lib/factpulse/models/afnor_create_directory_line_body_addressing_information.rb +0 -294
- data/lib/factpulse/models/afnor_create_directory_line_body_period.rb +0 -175
- data/lib/factpulse/models/afnor_create_routing_code_body.rb +0 -412
- data/lib/factpulse/models/afnor_credentials.rb +0 -169
- data/lib/factpulse/models/afnor_destination.rb +0 -224
- data/lib/factpulse/models/afnor_diffusion_status.rb +0 -40
- data/lib/factpulse/models/afnor_directory_line_field.rb +0 -44
- data/lib/factpulse/models/afnor_directory_line_payload_history_legal_unit_facility_routing_code.rb +0 -312
- data/lib/factpulse/models/afnor_directory_line_payload_history_legal_unit_facility_routing_code_platform.rb +0 -178
- data/lib/factpulse/models/afnor_directory_line_payload_history_legal_unit_facility_routing_code_routing_code.rb +0 -308
- data/lib/factpulse/models/afnor_directory_line_post201_response.rb +0 -187
- data/lib/factpulse/models/afnor_directory_line_search_post200_response.rb +0 -168
- data/lib/factpulse/models/afnor_entity_type.rb +0 -40
- data/lib/factpulse/models/afnor_error.rb +0 -214
- data/lib/factpulse/models/afnor_facility_administrative_status.rb +0 -40
- data/lib/factpulse/models/afnor_facility_nature.rb +0 -40
- data/lib/factpulse/models/afnor_facility_payload_history.rb +0 -323
- data/lib/factpulse/models/afnor_facility_payload_history_ule_b2g_additional_data.rb +0 -198
- data/lib/factpulse/models/afnor_facility_payload_included.rb +0 -314
- data/lib/factpulse/models/afnor_facility_type.rb +0 -40
- data/lib/factpulse/models/afnor_flow.rb +0 -315
- data/lib/factpulse/models/afnor_flow_ack_status.rb +0 -41
- data/lib/factpulse/models/afnor_flow_direction.rb +0 -40
- data/lib/factpulse/models/afnor_flow_info.rb +0 -293
- data/lib/factpulse/models/afnor_flow_profile.rb +0 -41
- data/lib/factpulse/models/afnor_flow_syntax.rb +0 -43
- data/lib/factpulse/models/afnor_flow_type.rb +0 -51
- data/lib/factpulse/models/afnor_full_flow_info.rb +0 -339
- data/lib/factpulse/models/afnor_health_check_response.rb +0 -220
- data/lib/factpulse/models/afnor_legal_unit_administrative_status.rb +0 -40
- data/lib/factpulse/models/afnor_legal_unit_payload_history.rb +0 -247
- data/lib/factpulse/models/afnor_legal_unit_payload_included.rb +0 -247
- data/lib/factpulse/models/afnor_legal_unit_payload_included_no_siren.rb +0 -207
- data/lib/factpulse/models/afnor_platform_status.rb +0 -40
- data/lib/factpulse/models/afnor_processing_rule.rb +0 -44
- data/lib/factpulse/models/afnor_reason_code.rb +0 -105
- data/lib/factpulse/models/afnor_reason_code_enum.rb +0 -53
- data/lib/factpulse/models/afnor_recipient_platform_type.rb +0 -40
- data/lib/factpulse/models/afnor_result.rb +0 -270
- data/lib/factpulse/models/afnor_routing_code_administrative_status.rb +0 -40
- data/lib/factpulse/models/afnor_routing_code_field.rb +0 -46
- data/lib/factpulse/models/afnor_routing_code_payload_history_legal_unit_facility.rb +0 -366
- data/lib/factpulse/models/afnor_routing_code_post201_response.rb +0 -228
- data/lib/factpulse/models/afnor_routing_code_search.rb +0 -224
- data/lib/factpulse/models/afnor_routing_code_search_filters.rb +0 -201
- data/lib/factpulse/models/afnor_routing_code_search_filters_administrative_status.rb +0 -178
- data/lib/factpulse/models/afnor_routing_code_search_filters_routing_code_name.rb +0 -209
- data/lib/factpulse/models/afnor_routing_code_search_filters_routing_identifier.rb +0 -209
- data/lib/factpulse/models/afnor_routing_code_search_post200_response.rb +0 -168
- data/lib/factpulse/models/afnor_routing_code_search_sorting_inner.rb +0 -179
- data/lib/factpulse/models/afnor_search_directory_line.rb +0 -191
- data/lib/factpulse/models/afnor_search_directory_line_filters.rb +0 -183
- data/lib/factpulse/models/afnor_search_directory_line_filters_addressing_identifier.rb +0 -198
- data/lib/factpulse/models/afnor_search_directory_line_filters_addressing_suffix.rb +0 -198
- data/lib/factpulse/models/afnor_search_directory_line_sorting_inner.rb +0 -179
- data/lib/factpulse/models/afnor_search_flow_content.rb +0 -168
- data/lib/factpulse/models/afnor_search_flow_filters.rb +0 -250
- data/lib/factpulse/models/afnor_search_flow_params.rb +0 -195
- data/lib/factpulse/models/afnor_search_siren.rb +0 -191
- data/lib/factpulse/models/afnor_search_siren_filters.rb +0 -174
- data/lib/factpulse/models/afnor_search_siren_filters_administrative_status.rb +0 -178
- data/lib/factpulse/models/afnor_search_siren_filters_business_name.rb +0 -198
- data/lib/factpulse/models/afnor_search_siren_filters_entity_type.rb +0 -178
- data/lib/factpulse/models/afnor_search_siren_filters_siren.rb +0 -209
- data/lib/factpulse/models/afnor_search_siren_sorting_inner.rb +0 -179
- data/lib/factpulse/models/afnor_search_siret.rb +0 -224
- data/lib/factpulse/models/afnor_search_siret_filters.rb +0 -219
- data/lib/factpulse/models/afnor_search_siret_filters_address_lines.rb +0 -198
- data/lib/factpulse/models/afnor_search_siret_filters_administrative_status.rb +0 -178
- data/lib/factpulse/models/afnor_search_siret_filters_country_subdivision.rb +0 -198
- data/lib/factpulse/models/afnor_search_siret_filters_facility_type.rb +0 -178
- data/lib/factpulse/models/afnor_search_siret_filters_locality.rb +0 -198
- data/lib/factpulse/models/afnor_search_siret_filters_name.rb +0 -198
- data/lib/factpulse/models/afnor_search_siret_filters_postal_code.rb +0 -209
- data/lib/factpulse/models/afnor_search_siret_filters_siret.rb +0 -209
- data/lib/factpulse/models/afnor_search_siret_sorting_inner.rb +0 -179
- data/lib/factpulse/models/afnor_siren_field.rb +0 -43
- data/lib/factpulse/models/afnor_siren_search_post200_response.rb +0 -168
- data/lib/factpulse/models/afnor_siret_field.rb +0 -52
- data/lib/factpulse/models/afnor_siret_search_post200_response.rb +0 -168
- data/lib/factpulse/models/afnor_sorting_order.rb +0 -40
- data/lib/factpulse/models/afnor_strict_operator.rb +0 -39
- data/lib/factpulse/models/afnor_update_patch_directory_line_body.rb +0 -148
- data/lib/factpulse/models/afnor_update_patch_routing_code_body.rb +0 -258
- data/lib/factpulse/models/afnor_update_put_routing_code_body.rb +0 -289
- data/lib/factpulse/models/afnor_webhook_callback_content.rb +0 -148
- data/lib/factpulse/models/aggregated_payment_input.rb +0 -213
- data/lib/factpulse/models/aggregated_transaction_input.rb +0 -349
- data/lib/factpulse/models/allowance_charge.rb +0 -274
- data/lib/factpulse/models/allowance_charge_reason_code.rb +0 -76
- data/lib/factpulse/models/allowance_reason_code.rb +0 -45
- data/lib/factpulse/models/allowance_total_amount.rb +0 -104
- data/lib/factpulse/models/amount.rb +0 -104
- data/lib/factpulse/models/amount1.rb +0 -104
- data/lib/factpulse/models/amount2.rb +0 -104
- data/lib/factpulse/models/amount_due.rb +0 -104
- data/lib/factpulse/models/api_profile.rb +0 -43
- data/lib/factpulse/models/async_task_status.rb +0 -227
- data/lib/factpulse/models/base_amount.rb +0 -104
- data/lib/factpulse/models/bounding_box_schema.rb +0 -332
- data/lib/factpulse/models/buyercountry.rb +0 -104
- data/lib/factpulse/models/celery_status.rb +0 -43
- data/lib/factpulse/models/charge_total_amount.rb +0 -104
- data/lib/factpulse/models/chorus_pro_destination.rb +0 -194
- data/lib/factpulse/models/chorus_pro_result.rb +0 -186
- data/lib/factpulse/models/client_activate_response.rb +0 -220
- data/lib/factpulse/models/client_create_request.rb +0 -236
- data/lib/factpulse/models/client_detail.rb +0 -368
- data/lib/factpulse/models/client_list_response.rb +0 -249
- data/lib/factpulse/models/client_summary.rb +0 -368
- data/lib/factpulse/models/client_update_request.rb +0 -225
- data/lib/factpulse/models/contact.rb +0 -179
- data/lib/factpulse/models/convert_resume_request.rb +0 -151
- data/lib/factpulse/models/convert_success_response.rb +0 -360
- data/lib/factpulse/models/convert_validation_failed_response.rb +0 -339
- data/lib/factpulse/models/country_code.rb +0 -208
- data/lib/factpulse/models/create_aggregated_report_request.rb +0 -320
- data/lib/factpulse/models/create_cdar_request.rb +0 -414
- data/lib/factpulse/models/create_e_reporting_request.rb +0 -347
- data/lib/factpulse/models/currency.rb +0 -104
- data/lib/factpulse/models/currency_code.rb +0 -91
- data/lib/factpulse/models/delivery_party.rb +0 -179
- data/lib/factpulse/models/doc_type.rb +0 -42
- data/lib/factpulse/models/document_type_info.rb +0 -220
- data/lib/factpulse/models/e_reporting_flow_type.rb +0 -42
- data/lib/factpulse/models/e_reporting_validation_error.rb +0 -203
- data/lib/factpulse/models/electronic_address.rb +0 -198
- data/lib/factpulse/models/encaisseamount.rb +0 -104
- data/lib/factpulse/models/encaisseamount1.rb +0 -103
- data/lib/factpulse/models/encaissee_request.rb +0 -347
- data/lib/factpulse/models/enriched_invoice_info.rb +0 -354
- data/lib/factpulse/models/extraction_info.rb +0 -217
- data/lib/factpulse/models/factur_x_invoice.rb +0 -580
- data/lib/factpulse/models/factur_xpdf_info.rb +0 -205
- data/lib/factpulse/models/facture_electronique_rest_api_schemas_ereporting_invoice_type_code.rb +0 -43
- data/lib/factpulse/models/facture_electronique_rest_api_schemas_processing_chorus_pro_credentials.rb +0 -191
- data/lib/factpulse/models/facture_electronique_rest_api_schemas_validation_validation_error_response.rb +0 -168
- data/lib/factpulse/models/field_status.rb +0 -43
- data/lib/factpulse/models/file_info.rb +0 -161
- data/lib/factpulse/models/files_info.rb +0 -159
- data/lib/factpulse/models/flow_direction.rb +0 -40
- data/lib/factpulse/models/flow_profile.rb +0 -41
- data/lib/factpulse/models/flow_summary.rb +0 -253
- data/lib/factpulse/models/flow_syntax.rb +0 -43
- data/lib/factpulse/models/flow_type.rb +0 -51
- data/lib/factpulse/models/generate_aggregated_report_response.rb +0 -330
- data/lib/factpulse/models/generate_cdar_response.rb +0 -273
- data/lib/factpulse/models/generate_e_reporting_response.rb +0 -274
- data/lib/factpulse/models/get_chorus_pro_id_request.rb +0 -188
- data/lib/factpulse/models/get_chorus_pro_id_response.rb +0 -230
- data/lib/factpulse/models/get_invoice_request.rb +0 -176
- data/lib/factpulse/models/get_invoice_response.rb +0 -263
- data/lib/factpulse/models/get_structure_request.rb +0 -188
- data/lib/factpulse/models/get_structure_response.rb +0 -263
- data/lib/factpulse/models/global_allowance_amount.rb +0 -104
- data/lib/factpulse/models/gross_unit_price.rb +0 -104
- data/lib/factpulse/models/incoming_invoice.rb +0 -489
- data/lib/factpulse/models/incoming_supplier.rb +0 -236
- data/lib/factpulse/models/invoice_format.rb +0 -41
- data/lib/factpulse/models/invoice_input.rb +0 -439
- data/lib/factpulse/models/invoice_line.rb +0 -593
- data/lib/factpulse/models/invoice_line_allowance_amount.rb +0 -104
- data/lib/factpulse/models/invoice_note.rb +0 -176
- data/lib/factpulse/models/invoice_payment_input.rb +0 -267
- data/lib/factpulse/models/invoice_references.rb +0 -393
- data/lib/factpulse/models/invoice_status.rb +0 -203
- data/lib/factpulse/models/invoice_totals.rb +0 -312
- data/lib/factpulse/models/invoice_totals_prepayment.rb +0 -104
- data/lib/factpulse/models/invoice_type_code.rb +0 -54
- data/lib/factpulse/models/invoice_type_code_output.rb +0 -54
- data/lib/factpulse/models/invoicing_framework.rb +0 -218
- data/lib/factpulse/models/invoicing_framework_code.rb +0 -42
- data/lib/factpulse/models/issuer_role_code.rb +0 -40
- data/lib/factpulse/models/key_rotation_request.rb +0 -211
- data/lib/factpulse/models/key_rotation_response.rb +0 -232
- data/lib/factpulse/models/line_net_amount.rb +0 -104
- data/lib/factpulse/models/line_sub_type.rb +0 -41
- data/lib/factpulse/models/line_total_amount.rb +0 -104
- data/lib/factpulse/models/location_inner.rb +0 -103
- data/lib/factpulse/models/mandatory_note_schema.rb +0 -265
- data/lib/factpulse/models/manual_rate.rb +0 -104
- data/lib/factpulse/models/manual_vat_rate.rb +0 -104
- data/lib/factpulse/models/missing_field.rb +0 -269
- data/lib/factpulse/models/operation_nature.rb +0 -52
- data/lib/factpulse/models/output_format.rb +0 -40
- data/lib/factpulse/models/page_dimensions_schema.rb +0 -193
- data/lib/factpulse/models/payee.rb +0 -281
- data/lib/factpulse/models/payment_amount_by_rate.rb +0 -191
- data/lib/factpulse/models/payment_card.rb +0 -159
- data/lib/factpulse/models/payment_means.rb +0 -44
- data/lib/factpulse/models/pdf_validation_result_api.rb +0 -523
- data/lib/factpulse/models/pdp_config_response.rb +0 -306
- data/lib/factpulse/models/pdp_config_update_request.rb +0 -315
- data/lib/factpulse/models/pdp_credentials.rb +0 -257
- data/lib/factpulse/models/percentage.rb +0 -104
- data/lib/factpulse/models/postal_address.rb +0 -209
- data/lib/factpulse/models/price_allowance_amount.rb +0 -104
- data/lib/factpulse/models/price_basis_quantity.rb +0 -104
- data/lib/factpulse/models/processing_options.rb +0 -207
- data/lib/factpulse/models/processing_rule.rb +0 -44
- data/lib/factpulse/models/product_characteristic.rb +0 -193
- data/lib/factpulse/models/product_classification.rb +0 -186
- data/lib/factpulse/models/quantity.rb +0 -104
- data/lib/factpulse/models/rate.rb +0 -104
- data/lib/factpulse/models/rate1.rb +0 -104
- data/lib/factpulse/models/reason_code_info.rb +0 -220
- data/lib/factpulse/models/reason_codes_response.rb +0 -207
- data/lib/factpulse/models/recipient.rb +0 -231
- data/lib/factpulse/models/recipient_input.rb +0 -191
- data/lib/factpulse/models/refusee_request.rb +0 -346
- data/lib/factpulse/models/report_issuer.rb +0 -236
- data/lib/factpulse/models/report_period.rb +0 -193
- data/lib/factpulse/models/report_sender.rb +0 -221
- data/lib/factpulse/models/rounding_amount.rb +0 -104
- data/lib/factpulse/models/schematron_validation_error.rb +0 -294
- data/lib/factpulse/models/search_flow_request.rb +0 -306
- data/lib/factpulse/models/search_flow_response.rb +0 -249
- data/lib/factpulse/models/search_services_response.rb +0 -217
- data/lib/factpulse/models/search_structure_request.rb +0 -191
- data/lib/factpulse/models/search_structure_response.rb +0 -216
- data/lib/factpulse/models/secret_status.rb +0 -213
- data/lib/factpulse/models/sellercountry.rb +0 -104
- data/lib/factpulse/models/signature_info_api.rb +0 -216
- data/lib/factpulse/models/signature_parameters.rb +0 -235
- data/lib/factpulse/models/simplified_cdar_response.rb +0 -274
- data/lib/factpulse/models/simplified_invoice_data.rb +0 -404
- data/lib/factpulse/models/status_code_info.rb +0 -220
- data/lib/factpulse/models/status_codes_response.rb +0 -207
- data/lib/factpulse/models/structure_parameters.rb +0 -175
- data/lib/factpulse/models/structure_service.rb +0 -247
- data/lib/factpulse/models/submission_mode.rb +0 -41
- data/lib/factpulse/models/submit_aggregated_report_request.rb +0 -216
- data/lib/factpulse/models/submit_cdar_request.rb +0 -466
- data/lib/factpulse/models/submit_cdar_response.rb +0 -213
- data/lib/factpulse/models/submit_cdarxml_request.rb +0 -228
- data/lib/factpulse/models/submit_complete_invoice_request.rb +0 -239
- data/lib/factpulse/models/submit_complete_invoice_response.rb +0 -355
- data/lib/factpulse/models/submit_e_reporting_request.rb +0 -216
- data/lib/factpulse/models/submit_e_reporting_response.rb +0 -306
- data/lib/factpulse/models/submit_flow_request.rb +0 -238
- data/lib/factpulse/models/submit_flow_response.rb +0 -294
- data/lib/factpulse/models/submit_gross_amount.rb +0 -104
- data/lib/factpulse/models/submit_invoice_request.rb +0 -388
- data/lib/factpulse/models/submit_invoice_response.rb +0 -213
- data/lib/factpulse/models/submit_net_amount.rb +0 -104
- data/lib/factpulse/models/submit_vat_amount.rb +0 -104
- data/lib/factpulse/models/supplementary_attachment.rb +0 -274
- data/lib/factpulse/models/supplier.rb +0 -337
- data/lib/factpulse/models/task_response.rb +0 -166
- data/lib/factpulse/models/tax_breakdown_input.rb +0 -217
- data/lib/factpulse/models/tax_due_date_type.rb +0 -44
- data/lib/factpulse/models/tax_representative.rb +0 -220
- data/lib/factpulse/models/taxable_amount.rb +0 -104
- data/lib/factpulse/models/taxableamount.rb +0 -104
- data/lib/factpulse/models/taxamount.rb +0 -104
- data/lib/factpulse/models/taxamount1.rb +0 -104
- data/lib/factpulse/models/taxamount2.rb +0 -104
- data/lib/factpulse/models/taxexclusiveamount.rb +0 -104
- data/lib/factpulse/models/taxexclusiveamount1.rb +0 -104
- data/lib/factpulse/models/total_gross_amount.rb +0 -104
- data/lib/factpulse/models/total_net_amount.rb +0 -104
- data/lib/factpulse/models/total_vat_amount.rb +0 -104
- data/lib/factpulse/models/transaction_category.rb +0 -42
- data/lib/factpulse/models/transmission_type_code.rb +0 -40
- data/lib/factpulse/models/unit_net_price.rb +0 -104
- data/lib/factpulse/models/unit_of_measure.rb +0 -44
- data/lib/factpulse/models/validate_cdar_request.rb +0 -219
- data/lib/factpulse/models/validate_cdar_response.rb +0 -190
- data/lib/factpulse/models/validate_e_reporting_request.rb +0 -166
- data/lib/factpulse/models/validate_e_reporting_response.rb +0 -271
- data/lib/factpulse/models/validation_error_response.rb +0 -215
- data/lib/factpulse/models/validation_info.rb +0 -255
- data/lib/factpulse/models/validation_success_response.rb +0 -166
- data/lib/factpulse/models/vat_accounting_code.rb +0 -42
- data/lib/factpulse/models/vat_amount.rb +0 -104
- data/lib/factpulse/models/vat_category.rb +0 -47
- data/lib/factpulse/models/vat_line.rb +0 -272
- data/lib/factpulse/models/vat_point_date_code.rb +0 -41
- data/lib/factpulse/models/vat_rate.rb +0 -104
- data/lib/factpulse/models/verification_success_response.rb +0 -343
- data/lib/factpulse/models/verified_field_schema.rb +0 -334
- data/lib/factpulse/models/webhook_secret_delete_response.rb +0 -193
- data/lib/factpulse/models/webhook_secret_generate_response.rb +0 -247
- data/lib/factpulse/models/webhook_secret_status_response.rb +0 -176
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#
|
|
2
|
+
#API REST FactPulse
|
|
3
3
|
|
|
4
|
-
# REST
|
|
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
|
+
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,31 +14,31 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
-
#
|
|
17
|
+
# Informations d'une structure.
|
|
18
18
|
class StructureInfo < ApiModelBase
|
|
19
|
-
# Chorus Pro structure
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# ID Chorus Pro de la structure
|
|
20
|
+
attr_accessor :id_structure_cpp
|
|
21
21
|
|
|
22
|
-
#
|
|
23
|
-
attr_accessor :
|
|
22
|
+
# Identifiant (SIRET, SIREN)
|
|
23
|
+
attr_accessor :identifiant_structure
|
|
24
24
|
|
|
25
|
-
#
|
|
26
|
-
attr_accessor :
|
|
25
|
+
# Nom de la structure
|
|
26
|
+
attr_accessor :designation_structure
|
|
27
27
|
|
|
28
|
-
#
|
|
29
|
-
attr_accessor :
|
|
28
|
+
# Type d'identifiant
|
|
29
|
+
attr_accessor :type_identifiant_structure
|
|
30
30
|
|
|
31
|
-
#
|
|
32
|
-
attr_accessor :
|
|
31
|
+
# Statut (ACTIVE, INACTIVE)
|
|
32
|
+
attr_accessor :statut
|
|
33
33
|
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
35
|
def self.attribute_map
|
|
36
36
|
{
|
|
37
|
-
:'
|
|
38
|
-
:'
|
|
39
|
-
:'
|
|
40
|
-
:'
|
|
41
|
-
:'
|
|
37
|
+
:'id_structure_cpp' => :'id_structure_cpp',
|
|
38
|
+
:'identifiant_structure' => :'identifiant_structure',
|
|
39
|
+
:'designation_structure' => :'designation_structure',
|
|
40
|
+
:'type_identifiant_structure' => :'type_identifiant_structure',
|
|
41
|
+
:'statut' => :'statut'
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|
|
@@ -55,11 +55,11 @@ module FactPulse
|
|
|
55
55
|
# Attribute type mapping.
|
|
56
56
|
def self.openapi_types
|
|
57
57
|
{
|
|
58
|
-
:'
|
|
59
|
-
:'
|
|
60
|
-
:'
|
|
61
|
-
:'
|
|
62
|
-
:'
|
|
58
|
+
:'id_structure_cpp' => :'Integer',
|
|
59
|
+
:'identifiant_structure' => :'String',
|
|
60
|
+
:'designation_structure' => :'String',
|
|
61
|
+
:'type_identifiant_structure' => :'String',
|
|
62
|
+
:'statut' => :'String'
|
|
63
63
|
}
|
|
64
64
|
end
|
|
65
65
|
|
|
@@ -85,34 +85,34 @@ module FactPulse
|
|
|
85
85
|
h[k.to_sym] = v
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
if attributes.key?(:'
|
|
89
|
-
self.
|
|
88
|
+
if attributes.key?(:'id_structure_cpp')
|
|
89
|
+
self.id_structure_cpp = attributes[:'id_structure_cpp']
|
|
90
90
|
else
|
|
91
|
-
self.
|
|
91
|
+
self.id_structure_cpp = nil
|
|
92
92
|
end
|
|
93
93
|
|
|
94
|
-
if attributes.key?(:'
|
|
95
|
-
self.
|
|
94
|
+
if attributes.key?(:'identifiant_structure')
|
|
95
|
+
self.identifiant_structure = attributes[:'identifiant_structure']
|
|
96
96
|
else
|
|
97
|
-
self.
|
|
97
|
+
self.identifiant_structure = nil
|
|
98
98
|
end
|
|
99
99
|
|
|
100
|
-
if attributes.key?(:'
|
|
101
|
-
self.
|
|
100
|
+
if attributes.key?(:'designation_structure')
|
|
101
|
+
self.designation_structure = attributes[:'designation_structure']
|
|
102
102
|
else
|
|
103
|
-
self.
|
|
103
|
+
self.designation_structure = nil
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
-
if attributes.key?(:'
|
|
107
|
-
self.
|
|
106
|
+
if attributes.key?(:'type_identifiant_structure')
|
|
107
|
+
self.type_identifiant_structure = attributes[:'type_identifiant_structure']
|
|
108
108
|
else
|
|
109
|
-
self.
|
|
109
|
+
self.type_identifiant_structure = nil
|
|
110
110
|
end
|
|
111
111
|
|
|
112
|
-
if attributes.key?(:'
|
|
113
|
-
self.
|
|
112
|
+
if attributes.key?(:'statut')
|
|
113
|
+
self.statut = attributes[:'statut']
|
|
114
114
|
else
|
|
115
|
-
self.
|
|
115
|
+
self.statut = nil
|
|
116
116
|
end
|
|
117
117
|
end
|
|
118
118
|
|
|
@@ -121,24 +121,24 @@ module FactPulse
|
|
|
121
121
|
def list_invalid_properties
|
|
122
122
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
123
123
|
invalid_properties = Array.new
|
|
124
|
-
if @
|
|
125
|
-
invalid_properties.push('invalid value for "
|
|
124
|
+
if @id_structure_cpp.nil?
|
|
125
|
+
invalid_properties.push('invalid value for "id_structure_cpp", id_structure_cpp cannot be nil.')
|
|
126
126
|
end
|
|
127
127
|
|
|
128
|
-
if @
|
|
129
|
-
invalid_properties.push('invalid value for "
|
|
128
|
+
if @identifiant_structure.nil?
|
|
129
|
+
invalid_properties.push('invalid value for "identifiant_structure", identifiant_structure cannot be nil.')
|
|
130
130
|
end
|
|
131
131
|
|
|
132
|
-
if @
|
|
133
|
-
invalid_properties.push('invalid value for "
|
|
132
|
+
if @designation_structure.nil?
|
|
133
|
+
invalid_properties.push('invalid value for "designation_structure", designation_structure cannot be nil.')
|
|
134
134
|
end
|
|
135
135
|
|
|
136
|
-
if @
|
|
137
|
-
invalid_properties.push('invalid value for "
|
|
136
|
+
if @type_identifiant_structure.nil?
|
|
137
|
+
invalid_properties.push('invalid value for "type_identifiant_structure", type_identifiant_structure cannot be nil.')
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
-
if @
|
|
141
|
-
invalid_properties.push('invalid value for "
|
|
140
|
+
if @statut.nil?
|
|
141
|
+
invalid_properties.push('invalid value for "statut", statut cannot be nil.')
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
invalid_properties
|
|
@@ -148,62 +148,62 @@ module FactPulse
|
|
|
148
148
|
# @return true if the model is valid
|
|
149
149
|
def valid?
|
|
150
150
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
151
|
-
return false if @
|
|
152
|
-
return false if @
|
|
153
|
-
return false if @
|
|
154
|
-
return false if @
|
|
155
|
-
return false if @
|
|
151
|
+
return false if @id_structure_cpp.nil?
|
|
152
|
+
return false if @identifiant_structure.nil?
|
|
153
|
+
return false if @designation_structure.nil?
|
|
154
|
+
return false if @type_identifiant_structure.nil?
|
|
155
|
+
return false if @statut.nil?
|
|
156
156
|
true
|
|
157
157
|
end
|
|
158
158
|
|
|
159
159
|
# Custom attribute writer method with validation
|
|
160
|
-
# @param [Object]
|
|
161
|
-
def
|
|
162
|
-
if
|
|
163
|
-
fail ArgumentError, '
|
|
160
|
+
# @param [Object] id_structure_cpp Value to be assigned
|
|
161
|
+
def id_structure_cpp=(id_structure_cpp)
|
|
162
|
+
if id_structure_cpp.nil?
|
|
163
|
+
fail ArgumentError, 'id_structure_cpp cannot be nil'
|
|
164
164
|
end
|
|
165
165
|
|
|
166
|
-
@
|
|
166
|
+
@id_structure_cpp = id_structure_cpp
|
|
167
167
|
end
|
|
168
168
|
|
|
169
169
|
# Custom attribute writer method with validation
|
|
170
|
-
# @param [Object]
|
|
171
|
-
def
|
|
172
|
-
if
|
|
173
|
-
fail ArgumentError, '
|
|
170
|
+
# @param [Object] identifiant_structure Value to be assigned
|
|
171
|
+
def identifiant_structure=(identifiant_structure)
|
|
172
|
+
if identifiant_structure.nil?
|
|
173
|
+
fail ArgumentError, 'identifiant_structure cannot be nil'
|
|
174
174
|
end
|
|
175
175
|
|
|
176
|
-
@
|
|
176
|
+
@identifiant_structure = identifiant_structure
|
|
177
177
|
end
|
|
178
178
|
|
|
179
179
|
# Custom attribute writer method with validation
|
|
180
|
-
# @param [Object]
|
|
181
|
-
def
|
|
182
|
-
if
|
|
183
|
-
fail ArgumentError, '
|
|
180
|
+
# @param [Object] designation_structure Value to be assigned
|
|
181
|
+
def designation_structure=(designation_structure)
|
|
182
|
+
if designation_structure.nil?
|
|
183
|
+
fail ArgumentError, 'designation_structure cannot be nil'
|
|
184
184
|
end
|
|
185
185
|
|
|
186
|
-
@
|
|
186
|
+
@designation_structure = designation_structure
|
|
187
187
|
end
|
|
188
188
|
|
|
189
189
|
# Custom attribute writer method with validation
|
|
190
|
-
# @param [Object]
|
|
191
|
-
def
|
|
192
|
-
if
|
|
193
|
-
fail ArgumentError, '
|
|
190
|
+
# @param [Object] type_identifiant_structure Value to be assigned
|
|
191
|
+
def type_identifiant_structure=(type_identifiant_structure)
|
|
192
|
+
if type_identifiant_structure.nil?
|
|
193
|
+
fail ArgumentError, 'type_identifiant_structure cannot be nil'
|
|
194
194
|
end
|
|
195
195
|
|
|
196
|
-
@
|
|
196
|
+
@type_identifiant_structure = type_identifiant_structure
|
|
197
197
|
end
|
|
198
198
|
|
|
199
199
|
# Custom attribute writer method with validation
|
|
200
|
-
# @param [Object]
|
|
201
|
-
def
|
|
202
|
-
if
|
|
203
|
-
fail ArgumentError, '
|
|
200
|
+
# @param [Object] statut Value to be assigned
|
|
201
|
+
def statut=(statut)
|
|
202
|
+
if statut.nil?
|
|
203
|
+
fail ArgumentError, 'statut cannot be nil'
|
|
204
204
|
end
|
|
205
205
|
|
|
206
|
-
@
|
|
206
|
+
@statut = statut
|
|
207
207
|
end
|
|
208
208
|
|
|
209
209
|
# Checks equality by comparing each attribute.
|
|
@@ -211,11 +211,11 @@ module FactPulse
|
|
|
211
211
|
def ==(o)
|
|
212
212
|
return true if self.equal?(o)
|
|
213
213
|
self.class == o.class &&
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
214
|
+
id_structure_cpp == o.id_structure_cpp &&
|
|
215
|
+
identifiant_structure == o.identifiant_structure &&
|
|
216
|
+
designation_structure == o.designation_structure &&
|
|
217
|
+
type_identifiant_structure == o.type_identifiant_structure &&
|
|
218
|
+
statut == o.statut
|
|
219
219
|
end
|
|
220
220
|
|
|
221
221
|
# @see the `==` method
|
|
@@ -227,7 +227,7 @@ module FactPulse
|
|
|
227
227
|
# Calculates hash code according to all attributes.
|
|
228
228
|
# @return [Integer] Hash code
|
|
229
229
|
def hash
|
|
230
|
-
[
|
|
230
|
+
[id_structure_cpp, identifiant_structure, designation_structure, type_identifiant_structure, statut].hash
|
|
231
231
|
end
|
|
232
232
|
|
|
233
233
|
# Builds the object from hash
|
|
@@ -0,0 +1,104 @@
|
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module FactPulse
|
|
17
|
+
# Taux de TVA avec valeur manuelle. (Accepte number, string ou integer)
|
|
18
|
+
module Tauxmanuel
|
|
19
|
+
class << self
|
|
20
|
+
# List of class defined in anyOf (OpenAPI v3)
|
|
21
|
+
def openapi_any_of
|
|
22
|
+
[
|
|
23
|
+
:'Float',
|
|
24
|
+
:'String'
|
|
25
|
+
]
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Builds the object
|
|
29
|
+
# @param [Mixed] Data to be matched against the list of anyOf items
|
|
30
|
+
# @return [Object] Returns the model or the data itself
|
|
31
|
+
def build(data)
|
|
32
|
+
# Go through the list of anyOf items and attempt to identify the appropriate one.
|
|
33
|
+
# Note:
|
|
34
|
+
# - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
|
|
35
|
+
# due to the way the deserialization is made in the base_object template (it just casts without verifying).
|
|
36
|
+
# - TODO: scalar values are de facto behaving as if they were nullable.
|
|
37
|
+
# - TODO: logging when debugging is set.
|
|
38
|
+
openapi_any_of.each do |klass|
|
|
39
|
+
begin
|
|
40
|
+
next if klass == :AnyType # "nullable: true"
|
|
41
|
+
return find_and_cast_into_type(klass, data)
|
|
42
|
+
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
openapi_any_of.include?(:AnyType) ? data : nil
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
private
|
|
50
|
+
|
|
51
|
+
SchemaMismatchError = Class.new(StandardError)
|
|
52
|
+
|
|
53
|
+
# Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
|
|
54
|
+
def find_and_cast_into_type(klass, data)
|
|
55
|
+
return if data.nil?
|
|
56
|
+
|
|
57
|
+
case klass.to_s
|
|
58
|
+
when 'Boolean'
|
|
59
|
+
return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
|
|
60
|
+
when 'Float'
|
|
61
|
+
return data if data.instance_of?(Float)
|
|
62
|
+
when 'Integer'
|
|
63
|
+
return data if data.instance_of?(Integer)
|
|
64
|
+
when 'Time'
|
|
65
|
+
return Time.parse(data)
|
|
66
|
+
when 'Date'
|
|
67
|
+
return Date.iso8601(data)
|
|
68
|
+
when 'String'
|
|
69
|
+
return data if data.instance_of?(String)
|
|
70
|
+
when 'Object' # "type: object"
|
|
71
|
+
return data if data.instance_of?(Hash)
|
|
72
|
+
when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
|
|
73
|
+
if data.instance_of?(Array)
|
|
74
|
+
sub_type = Regexp.last_match[:sub_type]
|
|
75
|
+
return data.map { |item| find_and_cast_into_type(sub_type, item) }
|
|
76
|
+
end
|
|
77
|
+
when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
|
|
78
|
+
if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
|
|
79
|
+
sub_type = Regexp.last_match[:sub_type]
|
|
80
|
+
return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
|
|
81
|
+
end
|
|
82
|
+
else # model
|
|
83
|
+
const = FactPulse.const_get(klass)
|
|
84
|
+
if const
|
|
85
|
+
if const.respond_to?(:openapi_any_of) # nested anyOf model
|
|
86
|
+
model = const.build(data)
|
|
87
|
+
return model if model
|
|
88
|
+
else
|
|
89
|
+
# raise if data contains keys that are not known to the model
|
|
90
|
+
raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
|
|
91
|
+
model = const.build_from_hash(data)
|
|
92
|
+
return model if model
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
raise # if no match by now, raise
|
|
98
|
+
rescue
|
|
99
|
+
raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module FactPulse
|
|
17
|
+
class TypeFacture
|
|
18
|
+
FACTURE = "FACTURE".freeze
|
|
19
|
+
AVOIR = "AVOIR".freeze
|
|
20
|
+
|
|
21
|
+
def self.all_vars
|
|
22
|
+
@all_vars ||= [FACTURE, AVOIR].freeze
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# Builds the enum from string
|
|
26
|
+
# @param [String] The enum value in the form of the string
|
|
27
|
+
# @return [String] The enum value
|
|
28
|
+
def self.build_from_hash(value)
|
|
29
|
+
new.build_from_hash(value)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Builds the enum from string
|
|
33
|
+
# @param [String] The enum value in the form of the string
|
|
34
|
+
# @return [String] The enum value
|
|
35
|
+
def build_from_hash(value)
|
|
36
|
+
return value if TypeFacture.all_vars.include?(value)
|
|
37
|
+
raise "Invalid ENUM value #{value} for class #TypeFacture"
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module FactPulse
|
|
17
|
+
class TypeTVA
|
|
18
|
+
TVA_SUR_DEBIT = "TVA_SUR_DEBIT".freeze
|
|
19
|
+
TVA_SUR_ENCAISSEMENT = "TVA_SUR_ENCAISSEMENT".freeze
|
|
20
|
+
EXONERATION = "EXONERATION".freeze
|
|
21
|
+
SANS_TVA = "SANS_TVA".freeze
|
|
22
|
+
|
|
23
|
+
def self.all_vars
|
|
24
|
+
@all_vars ||= [TVA_SUR_DEBIT, TVA_SUR_ENCAISSEMENT, EXONERATION, SANS_TVA].freeze
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Builds the enum from string
|
|
28
|
+
# @param [String] The enum value in the form of the string
|
|
29
|
+
# @return [String] The enum value
|
|
30
|
+
def self.build_from_hash(value)
|
|
31
|
+
new.build_from_hash(value)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Builds the enum from string
|
|
35
|
+
# @param [String] The enum value in the form of the string
|
|
36
|
+
# @return [String] The enum value
|
|
37
|
+
def build_from_hash(value)
|
|
38
|
+
return value if TypeTVA.all_vars.include?(value)
|
|
39
|
+
raise "Invalid ENUM value #{value} for class #TypeTVA"
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module FactPulse
|
|
17
|
+
class Unite
|
|
18
|
+
PIECE = "PIECE".freeze
|
|
19
|
+
HEURE = "HEURE".freeze
|
|
20
|
+
JOUR = "JOUR".freeze
|
|
21
|
+
KILOGRAMME = "KILOGRAMME".freeze
|
|
22
|
+
LITRE = "LITRE".freeze
|
|
23
|
+
FORFAIT = "FORFAIT".freeze
|
|
24
|
+
|
|
25
|
+
def self.all_vars
|
|
26
|
+
@all_vars ||= [PIECE, HEURE, JOUR, KILOGRAMME, LITRE, FORFAIT].freeze
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Builds the enum from string
|
|
30
|
+
# @param [String] The enum value in the form of the string
|
|
31
|
+
# @return [String] The enum value
|
|
32
|
+
def self.build_from_hash(value)
|
|
33
|
+
new.build_from_hash(value)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Builds the enum from string
|
|
37
|
+
# @param [String] The enum value in the form of the string
|
|
38
|
+
# @return [String] The enum value
|
|
39
|
+
def build_from_hash(value)
|
|
40
|
+
return value if Unite.all_vars.include?(value)
|
|
41
|
+
raise "Invalid ENUM value #{value} for class #Unite"
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|