factpulse 4.0.1 → 4.0.2
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 +4 -4
- data/Gemfile.lock +1 -1
- data/docs/AFNORPDPPAApi.md +5 -72
- data/docs/AsyncTasksApi.md +77 -0
- data/docs/ChorusProCredentials.md +8 -8
- data/docs/ChorusProDestination.md +1 -1
- data/docs/CreateAggregatedReportRequest.md +3 -1
- data/docs/CreateEReportingRequest.md +3 -1
- data/docs/ElectronicSignatureApi.md +319 -0
- data/docs/EncaisseeRequest.md +10 -6
- data/docs/{DocumentConversionApi.md → FacturXConversionApi.md} +39 -39
- data/docs/FacturXGenerationApi.md +239 -0
- data/docs/FacturXInvoice.md +1 -1
- data/docs/FacturXPDFXMLVerificationApi.md +225 -0
- data/docs/FacturXValidationApi.md +241 -0
- data/docs/FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md +26 -0
- data/docs/{EReportingApi.md → Flux10EReportingApi.md} +53 -51
- data/docs/{CDARCycleDeVieApi.md → Flux6InvoiceLifecycleCDARApi.md} +145 -75
- data/docs/GetChorusProIdRequest.md +1 -1
- data/docs/GetInvoiceRequest.md +1 -1
- data/docs/GetStructureRequest.md +1 -1
- data/docs/HealthApi.md +67 -0
- data/docs/InvoiceInput.md +4 -2
- data/docs/IssuerRoleCode.md +15 -0
- data/docs/RefuseeRequest.md +10 -6
- data/docs/ReportIssuer.md +24 -0
- data/docs/ReportSender.md +1 -1
- data/docs/SearchStructureRequest.md +1 -1
- data/docs/SubmitInvoiceRequest.md +1 -1
- data/factpulse.gemspec +2 -2
- data/lib/factpulse/api/afnorpdppa_api.rb +5 -62
- data/lib/factpulse/api/afnorpdppa_directory_service_api.rb +1 -1
- data/lib/factpulse/api/afnorpdppa_flow_service_api.rb +1 -1
- data/lib/factpulse/api/async_tasks_api.rb +85 -0
- data/lib/factpulse/api/chorus_pro_api.rb +1 -1
- data/lib/factpulse/api/client_management_api.rb +1 -1
- data/lib/factpulse/api/downloads_api.rb +1 -1
- data/lib/factpulse/api/electronic_signature_api.rb +339 -0
- data/lib/factpulse/api/{document_conversion_api.rb → factur_x_conversion_api.rb} +42 -42
- data/lib/factpulse/api/factur_x_generation_api.rb +254 -0
- data/lib/factpulse/api/factur_x_validation_api.rb +256 -0
- data/lib/factpulse/api/factur_xpdfxml_verification_api.rb +232 -0
- data/lib/factpulse/api/{e_reporting_api.rb → flux10_e_reporting_api.rb} +54 -51
- data/lib/factpulse/api/flux6_invoice_lifecycle_cdar_api.rb +670 -0
- data/lib/factpulse/api/health_api.rb +58 -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/acknowledgment_status.rb +1 -1
- data/lib/factpulse/models/action_code_info.rb +1 -1
- data/lib/factpulse/models/action_codes_response.rb +1 -1
- data/lib/factpulse/models/additional_document.rb +1 -1
- data/lib/factpulse/models/afnor_acknowledgement.rb +1 -1
- data/lib/factpulse/models/afnor_acknowledgement_detail.rb +1 -1
- data/lib/factpulse/models/afnor_address_edit.rb +1 -1
- data/lib/factpulse/models/afnor_address_patch.rb +1 -1
- data/lib/factpulse/models/afnor_address_put.rb +1 -1
- data/lib/factpulse/models/afnor_address_read.rb +1 -1
- data/lib/factpulse/models/afnor_algorithm.rb +1 -1
- data/lib/factpulse/models/afnor_contains_operator.rb +1 -1
- data/lib/factpulse/models/afnor_create_directory_line_body.rb +1 -1
- data/lib/factpulse/models/afnor_create_directory_line_body_addressing_information.rb +1 -1
- data/lib/factpulse/models/afnor_create_directory_line_body_period.rb +1 -1
- data/lib/factpulse/models/afnor_create_routing_code_body.rb +1 -1
- data/lib/factpulse/models/afnor_credentials.rb +1 -1
- data/lib/factpulse/models/afnor_destination.rb +1 -1
- data/lib/factpulse/models/afnor_diffusion_status.rb +1 -1
- data/lib/factpulse/models/afnor_directory_line_field.rb +1 -1
- data/lib/factpulse/models/afnor_directory_line_payload_history_legal_unit_facility_routing_code.rb +1 -1
- data/lib/factpulse/models/afnor_directory_line_payload_history_legal_unit_facility_routing_code_platform.rb +1 -1
- data/lib/factpulse/models/afnor_directory_line_payload_history_legal_unit_facility_routing_code_routing_code.rb +1 -1
- data/lib/factpulse/models/afnor_directory_line_post201_response.rb +1 -1
- data/lib/factpulse/models/afnor_directory_line_search_post200_response.rb +1 -1
- data/lib/factpulse/models/afnor_entity_type.rb +1 -1
- data/lib/factpulse/models/afnor_error.rb +1 -1
- data/lib/factpulse/models/afnor_facility_administrative_status.rb +1 -1
- data/lib/factpulse/models/afnor_facility_nature.rb +1 -1
- data/lib/factpulse/models/afnor_facility_payload_history.rb +1 -1
- data/lib/factpulse/models/afnor_facility_payload_history_ule_b2g_additional_data.rb +1 -1
- data/lib/factpulse/models/afnor_facility_payload_included.rb +1 -1
- data/lib/factpulse/models/afnor_facility_type.rb +1 -1
- data/lib/factpulse/models/afnor_flow.rb +1 -1
- data/lib/factpulse/models/afnor_flow_ack_status.rb +1 -1
- data/lib/factpulse/models/afnor_flow_direction.rb +1 -1
- data/lib/factpulse/models/afnor_flow_info.rb +1 -1
- data/lib/factpulse/models/afnor_flow_profile.rb +1 -1
- data/lib/factpulse/models/afnor_flow_syntax.rb +1 -1
- data/lib/factpulse/models/afnor_flow_type.rb +1 -1
- data/lib/factpulse/models/afnor_full_flow_info.rb +1 -1
- data/lib/factpulse/models/afnor_health_check_response.rb +1 -1
- data/lib/factpulse/models/afnor_legal_unit_administrative_status.rb +1 -1
- data/lib/factpulse/models/afnor_legal_unit_payload_history.rb +1 -1
- data/lib/factpulse/models/afnor_legal_unit_payload_included.rb +1 -1
- data/lib/factpulse/models/afnor_legal_unit_payload_included_no_siren.rb +1 -1
- data/lib/factpulse/models/afnor_platform_status.rb +1 -1
- data/lib/factpulse/models/afnor_processing_rule.rb +1 -1
- data/lib/factpulse/models/afnor_reason_code.rb +1 -1
- data/lib/factpulse/models/afnor_reason_code_enum.rb +1 -1
- data/lib/factpulse/models/afnor_recipient_platform_type.rb +1 -1
- data/lib/factpulse/models/afnor_result.rb +1 -1
- data/lib/factpulse/models/afnor_routing_code_administrative_status.rb +1 -1
- data/lib/factpulse/models/afnor_routing_code_field.rb +1 -1
- data/lib/factpulse/models/afnor_routing_code_payload_history_legal_unit_facility.rb +1 -1
- data/lib/factpulse/models/afnor_routing_code_post201_response.rb +1 -1
- data/lib/factpulse/models/afnor_routing_code_search.rb +1 -1
- data/lib/factpulse/models/afnor_routing_code_search_filters.rb +1 -1
- data/lib/factpulse/models/afnor_routing_code_search_filters_administrative_status.rb +1 -1
- data/lib/factpulse/models/afnor_routing_code_search_filters_routing_code_name.rb +1 -1
- data/lib/factpulse/models/afnor_routing_code_search_filters_routing_identifier.rb +1 -1
- data/lib/factpulse/models/afnor_routing_code_search_post200_response.rb +1 -1
- data/lib/factpulse/models/afnor_routing_code_search_sorting_inner.rb +1 -1
- data/lib/factpulse/models/afnor_search_directory_line.rb +1 -1
- data/lib/factpulse/models/afnor_search_directory_line_filters.rb +1 -1
- data/lib/factpulse/models/afnor_search_directory_line_filters_addressing_identifier.rb +1 -1
- data/lib/factpulse/models/afnor_search_directory_line_filters_addressing_suffix.rb +1 -1
- data/lib/factpulse/models/afnor_search_directory_line_sorting_inner.rb +1 -1
- data/lib/factpulse/models/afnor_search_flow_content.rb +1 -1
- data/lib/factpulse/models/afnor_search_flow_filters.rb +1 -1
- data/lib/factpulse/models/afnor_search_flow_params.rb +1 -1
- data/lib/factpulse/models/afnor_search_siren.rb +1 -1
- data/lib/factpulse/models/afnor_search_siren_filters.rb +1 -1
- data/lib/factpulse/models/afnor_search_siren_filters_administrative_status.rb +1 -1
- data/lib/factpulse/models/afnor_search_siren_filters_business_name.rb +1 -1
- data/lib/factpulse/models/afnor_search_siren_filters_entity_type.rb +1 -1
- data/lib/factpulse/models/afnor_search_siren_filters_siren.rb +1 -1
- data/lib/factpulse/models/afnor_search_siren_sorting_inner.rb +1 -1
- data/lib/factpulse/models/afnor_search_siret.rb +1 -1
- data/lib/factpulse/models/afnor_search_siret_filters.rb +1 -1
- data/lib/factpulse/models/afnor_search_siret_filters_address_lines.rb +1 -1
- data/lib/factpulse/models/afnor_search_siret_filters_administrative_status.rb +1 -1
- data/lib/factpulse/models/afnor_search_siret_filters_country_subdivision.rb +1 -1
- data/lib/factpulse/models/afnor_search_siret_filters_facility_type.rb +1 -1
- data/lib/factpulse/models/afnor_search_siret_filters_locality.rb +1 -1
- data/lib/factpulse/models/afnor_search_siret_filters_name.rb +1 -1
- data/lib/factpulse/models/afnor_search_siret_filters_postal_code.rb +1 -1
- data/lib/factpulse/models/afnor_search_siret_filters_siret.rb +1 -1
- data/lib/factpulse/models/afnor_search_siret_sorting_inner.rb +1 -1
- data/lib/factpulse/models/afnor_siren_field.rb +1 -1
- data/lib/factpulse/models/afnor_siren_search_post200_response.rb +1 -1
- data/lib/factpulse/models/afnor_siret_field.rb +1 -1
- data/lib/factpulse/models/afnor_siret_search_post200_response.rb +1 -1
- data/lib/factpulse/models/afnor_sorting_order.rb +1 -1
- data/lib/factpulse/models/afnor_strict_operator.rb +1 -1
- data/lib/factpulse/models/afnor_update_patch_directory_line_body.rb +1 -1
- data/lib/factpulse/models/afnor_update_patch_routing_code_body.rb +1 -1
- data/lib/factpulse/models/afnor_update_put_routing_code_body.rb +1 -1
- data/lib/factpulse/models/afnor_webhook_callback_content.rb +1 -1
- data/lib/factpulse/models/aggregated_payment_input.rb +1 -1
- data/lib/factpulse/models/aggregated_transaction_input.rb +1 -1
- data/lib/factpulse/models/allowance_charge.rb +1 -1
- data/lib/factpulse/models/allowance_charge_reason_code.rb +1 -1
- data/lib/factpulse/models/allowance_reason_code.rb +1 -1
- data/lib/factpulse/models/allowance_total_amount.rb +1 -1
- data/lib/factpulse/models/amount.rb +1 -1
- data/lib/factpulse/models/amount1.rb +1 -1
- data/lib/factpulse/models/amount2.rb +1 -1
- data/lib/factpulse/models/amount_due.rb +1 -1
- data/lib/factpulse/models/api_error.rb +1 -1
- data/lib/factpulse/models/api_profile.rb +1 -1
- data/lib/factpulse/models/async_task_status.rb +1 -1
- data/lib/factpulse/models/base_amount.rb +1 -1
- data/lib/factpulse/models/bounding_box_schema.rb +1 -1
- data/lib/factpulse/models/buyercountry.rb +2 -2
- data/lib/factpulse/models/celery_status.rb +1 -1
- data/lib/factpulse/models/certificate_info_response.rb +1 -1
- data/lib/factpulse/models/charge_total_amount.rb +1 -1
- data/lib/factpulse/models/chorus_pro_credentials.rb +27 -95
- data/lib/factpulse/models/chorus_pro_destination.rb +2 -2
- data/lib/factpulse/models/chorus_pro_result.rb +1 -1
- data/lib/factpulse/models/client_activate_response.rb +1 -1
- data/lib/factpulse/models/client_create_request.rb +1 -1
- data/lib/factpulse/models/client_detail.rb +1 -1
- data/lib/factpulse/models/client_list_response.rb +1 -1
- data/lib/factpulse/models/client_summary.rb +1 -1
- data/lib/factpulse/models/client_update_request.rb +1 -1
- data/lib/factpulse/models/contact.rb +1 -1
- data/lib/factpulse/models/convert_resume_request.rb +1 -1
- data/lib/factpulse/models/convert_success_response.rb +1 -1
- data/lib/factpulse/models/convert_validation_failed_response.rb +1 -1
- data/lib/factpulse/models/country_code.rb +1 -1
- data/lib/factpulse/models/create_aggregated_report_request.rb +13 -3
- data/lib/factpulse/models/create_cdar_request.rb +1 -1
- data/lib/factpulse/models/create_e_reporting_request.rb +13 -3
- data/lib/factpulse/models/currency.rb +1 -1
- data/lib/factpulse/models/currency_code.rb +1 -1
- data/lib/factpulse/models/delivery_party.rb +1 -1
- data/lib/factpulse/models/destination.rb +1 -1
- data/lib/factpulse/models/doc_type.rb +1 -1
- data/lib/factpulse/models/document_type_info.rb +1 -1
- data/lib/factpulse/models/e_reporting_flow_type.rb +1 -1
- data/lib/factpulse/models/e_reporting_validation_error.rb +1 -1
- data/lib/factpulse/models/electronic_address.rb +1 -1
- data/lib/factpulse/models/encaisseamount.rb +1 -1
- data/lib/factpulse/models/encaisseamount1.rb +1 -1
- data/lib/factpulse/models/encaissee_request.rb +86 -32
- data/lib/factpulse/models/enriched_invoice_info.rb +1 -1
- data/lib/factpulse/models/error_level.rb +1 -1
- data/lib/factpulse/models/error_source.rb +3 -2
- data/lib/factpulse/models/extraction_info.rb +1 -1
- data/lib/factpulse/models/factur_x_invoice.rb +1 -18
- data/lib/factpulse/models/factur_xpdf_info.rb +1 -1
- data/lib/factpulse/models/facture_electronique_rest_api_schemas_cdar_validation_error_response.rb +1 -1
- data/lib/factpulse/models/facture_electronique_rest_api_schemas_chorus_pro_chorus_pro_credentials.rb +259 -0
- data/lib/factpulse/models/facture_electronique_rest_api_schemas_ereporting_invoice_type_code.rb +1 -1
- data/lib/factpulse/models/field_status.rb +1 -1
- data/lib/factpulse/models/file_info.rb +1 -1
- data/lib/factpulse/models/files_info.rb +1 -1
- data/lib/factpulse/models/flow_direction.rb +1 -1
- data/lib/factpulse/models/flow_profile.rb +1 -1
- data/lib/factpulse/models/flow_summary.rb +1 -1
- data/lib/factpulse/models/flow_syntax.rb +1 -1
- data/lib/factpulse/models/flow_type.rb +1 -1
- data/lib/factpulse/models/generate_aggregated_report_response.rb +1 -1
- data/lib/factpulse/models/generate_cdar_response.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/generate_e_reporting_response.rb +1 -1
- data/lib/factpulse/models/get_chorus_pro_id_request.rb +2 -2
- data/lib/factpulse/models/get_chorus_pro_id_response.rb +1 -1
- data/lib/factpulse/models/get_invoice_request.rb +2 -2
- data/lib/factpulse/models/get_invoice_response.rb +1 -1
- data/lib/factpulse/models/get_structure_request.rb +2 -2
- data/lib/factpulse/models/get_structure_response.rb +1 -1
- data/lib/factpulse/models/global_allowance_amount.rb +1 -1
- data/lib/factpulse/models/gross_unit_price.rb +1 -1
- data/lib/factpulse/models/http_validation_error.rb +1 -1
- data/lib/factpulse/models/incoming_invoice.rb +1 -1
- data/lib/factpulse/models/incoming_supplier.rb +1 -1
- data/lib/factpulse/models/invoice_format.rb +1 -1
- data/lib/factpulse/models/invoice_input.rb +14 -21
- data/lib/factpulse/models/invoice_line.rb +1 -1
- data/lib/factpulse/models/invoice_line_allowance_amount.rb +1 -1
- data/lib/factpulse/models/invoice_note.rb +1 -1
- data/lib/factpulse/models/invoice_payment_input.rb +1 -1
- data/lib/factpulse/models/invoice_references.rb +1 -1
- data/lib/factpulse/models/invoice_status.rb +1 -1
- data/lib/factpulse/models/invoice_totals.rb +1 -1
- data/lib/factpulse/models/invoice_totals_prepayment.rb +1 -1
- data/lib/factpulse/models/invoice_type_code.rb +1 -1
- data/lib/factpulse/models/invoice_type_code_output.rb +1 -1
- data/lib/factpulse/models/invoicing_framework.rb +1 -1
- data/lib/factpulse/models/invoicing_framework_code.rb +1 -1
- data/lib/factpulse/models/issuer_role_code.rb +40 -0
- data/lib/factpulse/models/line_net_amount.rb +1 -1
- data/lib/factpulse/models/line_sub_type.rb +1 -1
- data/lib/factpulse/models/line_total_amount.rb +1 -1
- data/lib/factpulse/models/location_inner.rb +1 -1
- data/lib/factpulse/models/mandatory_note_schema.rb +1 -1
- data/lib/factpulse/models/manual_rate.rb +1 -1
- data/lib/factpulse/models/manual_vat_rate.rb +1 -1
- data/lib/factpulse/models/missing_field.rb +1 -1
- data/lib/factpulse/models/operation_nature.rb +1 -1
- data/lib/factpulse/models/output_format.rb +1 -1
- data/lib/factpulse/models/page_dimensions_schema.rb +1 -1
- data/lib/factpulse/models/payee.rb +1 -1
- data/lib/factpulse/models/payment_amount_by_rate.rb +1 -1
- data/lib/factpulse/models/payment_card.rb +1 -1
- data/lib/factpulse/models/payment_means.rb +1 -1
- data/lib/factpulse/models/pdf_validation_result_api.rb +1 -1
- data/lib/factpulse/models/pdp_config_response.rb +1 -1
- data/lib/factpulse/models/pdp_config_update_request.rb +1 -1
- data/lib/factpulse/models/pdp_credentials.rb +1 -1
- data/lib/factpulse/models/percentage.rb +1 -1
- data/lib/factpulse/models/postal_address.rb +1 -1
- data/lib/factpulse/models/price_allowance_amount.rb +1 -1
- data/lib/factpulse/models/price_basis_quantity.rb +1 -1
- data/lib/factpulse/models/processing_options.rb +1 -1
- data/lib/factpulse/models/processing_rule.rb +1 -1
- data/lib/factpulse/models/product_characteristic.rb +1 -1
- data/lib/factpulse/models/product_classification.rb +1 -1
- data/lib/factpulse/models/quantity.rb +1 -1
- data/lib/factpulse/models/rate.rb +1 -1
- data/lib/factpulse/models/rate1.rb +1 -1
- data/lib/factpulse/models/reason_code_info.rb +1 -1
- data/lib/factpulse/models/reason_codes_response.rb +1 -1
- data/lib/factpulse/models/recipient.rb +1 -1
- data/lib/factpulse/models/recipient_input.rb +1 -1
- data/lib/factpulse/models/refusee_request.rb +84 -30
- data/lib/factpulse/models/report_issuer.rb +236 -0
- data/lib/factpulse/models/report_period.rb +1 -1
- data/lib/factpulse/models/report_sender.rb +3 -3
- data/lib/factpulse/models/rounding_amount.rb +1 -1
- data/lib/factpulse/models/schematron_validation_error.rb +1 -1
- data/lib/factpulse/models/scheme_id.rb +1 -1
- data/lib/factpulse/models/search_flow_request.rb +1 -1
- data/lib/factpulse/models/search_flow_response.rb +1 -1
- data/lib/factpulse/models/search_services_response.rb +1 -1
- data/lib/factpulse/models/search_structure_request.rb +2 -2
- data/lib/factpulse/models/search_structure_response.rb +1 -1
- data/lib/factpulse/models/secret_status.rb +1 -1
- data/lib/factpulse/models/sellercountry.rb +2 -2
- data/lib/factpulse/models/signature_info.rb +1 -1
- data/lib/factpulse/models/signature_info_api.rb +1 -1
- data/lib/factpulse/models/signature_parameters.rb +1 -1
- data/lib/factpulse/models/simplified_cdar_response.rb +1 -1
- data/lib/factpulse/models/simplified_invoice_data.rb +1 -1
- data/lib/factpulse/models/status_code_info.rb +1 -1
- data/lib/factpulse/models/status_codes_response.rb +1 -1
- data/lib/factpulse/models/structure_info.rb +1 -1
- data/lib/factpulse/models/structure_parameters.rb +1 -1
- data/lib/factpulse/models/structure_service.rb +1 -1
- data/lib/factpulse/models/submission_mode.rb +1 -1
- data/lib/factpulse/models/submit_aggregated_report_request.rb +1 -1
- data/lib/factpulse/models/submit_cdar_request.rb +1 -1
- data/lib/factpulse/models/submit_cdar_response.rb +1 -1
- data/lib/factpulse/models/submit_cdarxml_request.rb +1 -1
- data/lib/factpulse/models/submit_complete_invoice_request.rb +1 -1
- data/lib/factpulse/models/submit_complete_invoice_response.rb +1 -1
- data/lib/factpulse/models/submit_e_reporting_request.rb +1 -1
- data/lib/factpulse/models/submit_e_reporting_response.rb +1 -1
- data/lib/factpulse/models/submit_flow_request.rb +1 -1
- data/lib/factpulse/models/submit_flow_response.rb +1 -1
- data/lib/factpulse/models/submit_gross_amount.rb +1 -1
- data/lib/factpulse/models/submit_invoice_request.rb +2 -2
- data/lib/factpulse/models/submit_invoice_response.rb +1 -1
- data/lib/factpulse/models/submit_net_amount.rb +1 -1
- data/lib/factpulse/models/submit_vat_amount.rb +1 -1
- data/lib/factpulse/models/supplementary_attachment.rb +1 -1
- data/lib/factpulse/models/supplier.rb +1 -1
- data/lib/factpulse/models/task_response.rb +1 -1
- data/lib/factpulse/models/tax_breakdown_input.rb +1 -1
- data/lib/factpulse/models/tax_due_date_type.rb +1 -1
- data/lib/factpulse/models/tax_representative.rb +1 -1
- data/lib/factpulse/models/taxable_amount.rb +1 -1
- data/lib/factpulse/models/taxableamount.rb +1 -1
- data/lib/factpulse/models/taxamount.rb +1 -1
- data/lib/factpulse/models/taxamount1.rb +1 -1
- data/lib/factpulse/models/taxamount2.rb +1 -1
- data/lib/factpulse/models/taxexclusiveamount.rb +1 -1
- data/lib/factpulse/models/taxexclusiveamount1.rb +1 -1
- data/lib/factpulse/models/total_gross_amount.rb +1 -1
- data/lib/factpulse/models/total_net_amount.rb +1 -1
- data/lib/factpulse/models/total_vat_amount.rb +1 -1
- data/lib/factpulse/models/transaction_category.rb +1 -1
- data/lib/factpulse/models/transmission_type_code.rb +1 -1
- data/lib/factpulse/models/unit_net_price.rb +1 -1
- data/lib/factpulse/models/unit_of_measure.rb +1 -1
- data/lib/factpulse/models/validate_cdar_request.rb +1 -1
- data/lib/factpulse/models/validate_cdar_response.rb +1 -1
- data/lib/factpulse/models/validate_e_reporting_request.rb +1 -1
- data/lib/factpulse/models/validate_e_reporting_response.rb +1 -1
- data/lib/factpulse/models/validation_error.rb +1 -1
- data/lib/factpulse/models/validation_error_detail.rb +1 -1
- data/lib/factpulse/models/validation_error_response.rb +1 -1
- data/lib/factpulse/models/validation_info.rb +1 -1
- data/lib/factpulse/models/validation_success_response.rb +1 -1
- data/lib/factpulse/models/vat_accounting_code.rb +1 -1
- data/lib/factpulse/models/vat_amount.rb +1 -1
- data/lib/factpulse/models/vat_category.rb +1 -1
- data/lib/factpulse/models/vat_line.rb +1 -1
- data/lib/factpulse/models/vat_point_date_code.rb +1 -1
- data/lib/factpulse/models/vat_rate.rb +1 -1
- data/lib/factpulse/models/verification_success_response.rb +1 -1
- data/lib/factpulse/models/verified_field_schema.rb +1 -1
- data/lib/factpulse/version.rb +2 -2
- data/lib/factpulse.rb +12 -8
- metadata +46 -37
- data/docs/FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md +0 -26
- data/docs/InvoiceProcessingApi.md +0 -855
- data/docs/PDFXMLVerificationApi.md +0 -443
- data/docs/UserApi.md +0 -74
- data/lib/factpulse/api/cdar_cycle_de_vie_api.rb +0 -601
- data/lib/factpulse/api/invoice_processing_api.rb +0 -868
- data/lib/factpulse/api/pdfxml_verification_api.rb +0 -442
- data/lib/factpulse/api/user_api.rb +0 -79
- data/lib/factpulse/models/facture_electronique_rest_api_schemas_processing_chorus_pro_credentials.rb +0 -191
|
@@ -1,443 +0,0 @@
|
|
|
1
|
-
# FactPulse::PDFXMLVerificationApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://factpulse.fr*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**get_verification_status_api_v1_verification_verify_async_task_id_status_get**](PDFXMLVerificationApi.md#get_verification_status_api_v1_verification_verify_async_task_id_status_get) | **GET** /api/v1/verification/verify-async/{task_id}/status | Get status of an asynchronous verification |
|
|
8
|
-
| [**get_verification_status_api_v1_verification_verify_async_task_id_status_get_0**](PDFXMLVerificationApi.md#get_verification_status_api_v1_verification_verify_async_task_id_status_get_0) | **GET** /api/v1/verification/verify-async/{task_id}/status | Get status of an asynchronous verification |
|
|
9
|
-
| [**verify_pdf_async_api_v1_verification_verify_async_post**](PDFXMLVerificationApi.md#verify_pdf_async_api_v1_verification_verify_async_post) | **POST** /api/v1/verification/verify-async | Verify PDF/XML Factur-X compliance (asynchronous) |
|
|
10
|
-
| [**verify_pdf_async_api_v1_verification_verify_async_post_0**](PDFXMLVerificationApi.md#verify_pdf_async_api_v1_verification_verify_async_post_0) | **POST** /api/v1/verification/verify-async | Verify PDF/XML Factur-X compliance (asynchronous) |
|
|
11
|
-
| [**verify_pdf_sync_api_v1_verification_verify_post**](PDFXMLVerificationApi.md#verify_pdf_sync_api_v1_verification_verify_post) | **POST** /api/v1/verification/verify | Verify PDF/XML Factur-X compliance (synchronous) |
|
|
12
|
-
| [**verify_pdf_sync_api_v1_verification_verify_post_0**](PDFXMLVerificationApi.md#verify_pdf_sync_api_v1_verification_verify_post_0) | **POST** /api/v1/verification/verify | Verify PDF/XML Factur-X compliance (synchronous) |
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## get_verification_status_api_v1_verification_verify_async_task_id_status_get
|
|
16
|
-
|
|
17
|
-
> <AsyncTaskStatus> get_verification_status_api_v1_verification_verify_async_task_id_status_get(task_id)
|
|
18
|
-
|
|
19
|
-
Get status of an asynchronous verification
|
|
20
|
-
|
|
21
|
-
Retrieves the status and result of an asynchronous verification task. **Possible statuses:** - `PENDING`: Task waiting in queue - `STARTED`: Task currently running - `SUCCESS`: Task completed successfully (see `result`) - `FAILURE`: System error (unhandled exception) **Note:** The `result.status` field can be \"SUCCESS\" or \"ERROR\" independently of Celery status (which will always be SUCCESS if the task ran).
|
|
22
|
-
|
|
23
|
-
### Examples
|
|
24
|
-
|
|
25
|
-
```ruby
|
|
26
|
-
require 'time'
|
|
27
|
-
require 'factpulse'
|
|
28
|
-
# setup authorization
|
|
29
|
-
FactPulse.configure do |config|
|
|
30
|
-
# Configure Bearer authorization: HTTPBearer
|
|
31
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
api_instance = FactPulse::PDFXMLVerificationApi.new
|
|
35
|
-
task_id = 'task_id_example' # String | Celery task ID returned by /verify-async endpoint
|
|
36
|
-
|
|
37
|
-
begin
|
|
38
|
-
# Get status of an asynchronous verification
|
|
39
|
-
result = api_instance.get_verification_status_api_v1_verification_verify_async_task_id_status_get(task_id)
|
|
40
|
-
p result
|
|
41
|
-
rescue FactPulse::ApiError => e
|
|
42
|
-
puts "Error when calling PDFXMLVerificationApi->get_verification_status_api_v1_verification_verify_async_task_id_status_get: #{e}"
|
|
43
|
-
end
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
#### Using the get_verification_status_api_v1_verification_verify_async_task_id_status_get_with_http_info variant
|
|
47
|
-
|
|
48
|
-
This returns an Array which contains the response data, status code and headers.
|
|
49
|
-
|
|
50
|
-
> <Array(<AsyncTaskStatus>, Integer, Hash)> get_verification_status_api_v1_verification_verify_async_task_id_status_get_with_http_info(task_id)
|
|
51
|
-
|
|
52
|
-
```ruby
|
|
53
|
-
begin
|
|
54
|
-
# Get status of an asynchronous verification
|
|
55
|
-
data, status_code, headers = api_instance.get_verification_status_api_v1_verification_verify_async_task_id_status_get_with_http_info(task_id)
|
|
56
|
-
p status_code # => 2xx
|
|
57
|
-
p headers # => { ... }
|
|
58
|
-
p data # => <AsyncTaskStatus>
|
|
59
|
-
rescue FactPulse::ApiError => e
|
|
60
|
-
puts "Error when calling PDFXMLVerificationApi->get_verification_status_api_v1_verification_verify_async_task_id_status_get_with_http_info: #{e}"
|
|
61
|
-
end
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### Parameters
|
|
65
|
-
|
|
66
|
-
| Name | Type | Description | Notes |
|
|
67
|
-
| ---- | ---- | ----------- | ----- |
|
|
68
|
-
| **task_id** | **String** | Celery task ID returned by /verify-async endpoint | |
|
|
69
|
-
|
|
70
|
-
### Return type
|
|
71
|
-
|
|
72
|
-
[**AsyncTaskStatus**](AsyncTaskStatus.md)
|
|
73
|
-
|
|
74
|
-
### Authorization
|
|
75
|
-
|
|
76
|
-
[HTTPBearer](../README.md#HTTPBearer)
|
|
77
|
-
|
|
78
|
-
### HTTP request headers
|
|
79
|
-
|
|
80
|
-
- **Content-Type**: Not defined
|
|
81
|
-
- **Accept**: application/json
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
## get_verification_status_api_v1_verification_verify_async_task_id_status_get_0
|
|
85
|
-
|
|
86
|
-
> <AsyncTaskStatus> get_verification_status_api_v1_verification_verify_async_task_id_status_get_0(task_id)
|
|
87
|
-
|
|
88
|
-
Get status of an asynchronous verification
|
|
89
|
-
|
|
90
|
-
Retrieves the status and result of an asynchronous verification task. **Possible statuses:** - `PENDING`: Task waiting in queue - `STARTED`: Task currently running - `SUCCESS`: Task completed successfully (see `result`) - `FAILURE`: System error (unhandled exception) **Note:** The `result.status` field can be \"SUCCESS\" or \"ERROR\" independently of Celery status (which will always be SUCCESS if the task ran).
|
|
91
|
-
|
|
92
|
-
### Examples
|
|
93
|
-
|
|
94
|
-
```ruby
|
|
95
|
-
require 'time'
|
|
96
|
-
require 'factpulse'
|
|
97
|
-
# setup authorization
|
|
98
|
-
FactPulse.configure do |config|
|
|
99
|
-
# Configure Bearer authorization: HTTPBearer
|
|
100
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
api_instance = FactPulse::PDFXMLVerificationApi.new
|
|
104
|
-
task_id = 'task_id_example' # String | Celery task ID returned by /verify-async endpoint
|
|
105
|
-
|
|
106
|
-
begin
|
|
107
|
-
# Get status of an asynchronous verification
|
|
108
|
-
result = api_instance.get_verification_status_api_v1_verification_verify_async_task_id_status_get_0(task_id)
|
|
109
|
-
p result
|
|
110
|
-
rescue FactPulse::ApiError => e
|
|
111
|
-
puts "Error when calling PDFXMLVerificationApi->get_verification_status_api_v1_verification_verify_async_task_id_status_get_0: #{e}"
|
|
112
|
-
end
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
#### Using the get_verification_status_api_v1_verification_verify_async_task_id_status_get_0_with_http_info variant
|
|
116
|
-
|
|
117
|
-
This returns an Array which contains the response data, status code and headers.
|
|
118
|
-
|
|
119
|
-
> <Array(<AsyncTaskStatus>, Integer, Hash)> get_verification_status_api_v1_verification_verify_async_task_id_status_get_0_with_http_info(task_id)
|
|
120
|
-
|
|
121
|
-
```ruby
|
|
122
|
-
begin
|
|
123
|
-
# Get status of an asynchronous verification
|
|
124
|
-
data, status_code, headers = api_instance.get_verification_status_api_v1_verification_verify_async_task_id_status_get_0_with_http_info(task_id)
|
|
125
|
-
p status_code # => 2xx
|
|
126
|
-
p headers # => { ... }
|
|
127
|
-
p data # => <AsyncTaskStatus>
|
|
128
|
-
rescue FactPulse::ApiError => e
|
|
129
|
-
puts "Error when calling PDFXMLVerificationApi->get_verification_status_api_v1_verification_verify_async_task_id_status_get_0_with_http_info: #{e}"
|
|
130
|
-
end
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
### Parameters
|
|
134
|
-
|
|
135
|
-
| Name | Type | Description | Notes |
|
|
136
|
-
| ---- | ---- | ----------- | ----- |
|
|
137
|
-
| **task_id** | **String** | Celery task ID returned by /verify-async endpoint | |
|
|
138
|
-
|
|
139
|
-
### Return type
|
|
140
|
-
|
|
141
|
-
[**AsyncTaskStatus**](AsyncTaskStatus.md)
|
|
142
|
-
|
|
143
|
-
### Authorization
|
|
144
|
-
|
|
145
|
-
[HTTPBearer](../README.md#HTTPBearer)
|
|
146
|
-
|
|
147
|
-
### HTTP request headers
|
|
148
|
-
|
|
149
|
-
- **Content-Type**: Not defined
|
|
150
|
-
- **Accept**: application/json
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
## verify_pdf_async_api_v1_verification_verify_async_post
|
|
154
|
-
|
|
155
|
-
> <TaskResponse> verify_pdf_async_api_v1_verification_verify_async_post(pdf_file, opts)
|
|
156
|
-
|
|
157
|
-
Verify PDF/XML Factur-X compliance (asynchronous)
|
|
158
|
-
|
|
159
|
-
Verifies PDF/XML Factur-X compliance asynchronously. **IMPORTANT**: Only Factur-X PDFs (with embedded XML) are accepted. PDFs without Factur-X XML will return a `NOT_FACTURX` error in the result. This version uses a Celery task and can call the OCR service if the PDF is an image or if `force_ocr=true`. **Returns immediately** a task ID. Use `/verify-async/{task_id}/status` to retrieve the result. **Verification principle (Factur-X 1.08):** - Principle #2: XML can only contain info present in the PDF - Principle #4: All XML info must be present and compliant in the PDF **Verified fields:** - Identification: BT-1 (invoice #), BT-2 (date), BT-3 (type), BT-5 (currency), BT-23 (framework) - Seller: BT-27 (name), BT-29 (SIRET), BT-30 (SIREN), BT-31 (VAT) - Buyer: BT-44 (name), BT-46 (SIRET), BT-47 (SIREN), BT-48 (VAT) - Amounts: BT-109 (excl. tax), BT-110 (VAT), BT-112 (incl. tax), BT-115 (amount due) - VAT breakdown: BT-116, BT-117, BT-118, BT-119 - Invoice lines: BT-153, BT-129, BT-146, BT-131 - Mandatory notes: PMT, PMD, AAB - Rule BR-FR-09: SIRET/SIREN consistency **Advantages over synchronous version:** - OCR support for image PDFs (via DocTR service) - Longer timeout for large documents - Doesn't block the server ## Webhook notification (recommended) Instead of polling, you can receive a webhook notification when verification completes: ``` callback_url=https://your-server.com/webhook ``` The webhook will POST a JSON payload with: - `event_type`: `verification.completed` or `verification.failed` - `data.is_compliant`: Whether the PDF/XML are consistent - `data.compliance_score`: Compliance score (0-1) - `X-Webhook-Signature` header for HMAC verification
|
|
160
|
-
|
|
161
|
-
### Examples
|
|
162
|
-
|
|
163
|
-
```ruby
|
|
164
|
-
require 'time'
|
|
165
|
-
require 'factpulse'
|
|
166
|
-
# setup authorization
|
|
167
|
-
FactPulse.configure do |config|
|
|
168
|
-
# Configure Bearer authorization: HTTPBearer
|
|
169
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
api_instance = FactPulse::PDFXMLVerificationApi.new
|
|
173
|
-
pdf_file = File.new('/path/to/some/file') # File | Factur-X PDF file to verify
|
|
174
|
-
opts = {
|
|
175
|
-
force_ocr: true, # Boolean | Force OCR usage even if PDF contains native text
|
|
176
|
-
callback_url: 'callback_url_example', # String |
|
|
177
|
-
webhook_mode: 'webhook_mode_example' # String | Webhook content delivery: 'inline' (base64 in payload) or 'download_url' (temporary URL, 1h TTL)
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
begin
|
|
181
|
-
# Verify PDF/XML Factur-X compliance (asynchronous)
|
|
182
|
-
result = api_instance.verify_pdf_async_api_v1_verification_verify_async_post(pdf_file, opts)
|
|
183
|
-
p result
|
|
184
|
-
rescue FactPulse::ApiError => e
|
|
185
|
-
puts "Error when calling PDFXMLVerificationApi->verify_pdf_async_api_v1_verification_verify_async_post: #{e}"
|
|
186
|
-
end
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
#### Using the verify_pdf_async_api_v1_verification_verify_async_post_with_http_info variant
|
|
190
|
-
|
|
191
|
-
This returns an Array which contains the response data, status code and headers.
|
|
192
|
-
|
|
193
|
-
> <Array(<TaskResponse>, Integer, Hash)> verify_pdf_async_api_v1_verification_verify_async_post_with_http_info(pdf_file, opts)
|
|
194
|
-
|
|
195
|
-
```ruby
|
|
196
|
-
begin
|
|
197
|
-
# Verify PDF/XML Factur-X compliance (asynchronous)
|
|
198
|
-
data, status_code, headers = api_instance.verify_pdf_async_api_v1_verification_verify_async_post_with_http_info(pdf_file, opts)
|
|
199
|
-
p status_code # => 2xx
|
|
200
|
-
p headers # => { ... }
|
|
201
|
-
p data # => <TaskResponse>
|
|
202
|
-
rescue FactPulse::ApiError => e
|
|
203
|
-
puts "Error when calling PDFXMLVerificationApi->verify_pdf_async_api_v1_verification_verify_async_post_with_http_info: #{e}"
|
|
204
|
-
end
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
### Parameters
|
|
208
|
-
|
|
209
|
-
| Name | Type | Description | Notes |
|
|
210
|
-
| ---- | ---- | ----------- | ----- |
|
|
211
|
-
| **pdf_file** | **File** | Factur-X PDF file to verify | |
|
|
212
|
-
| **force_ocr** | **Boolean** | Force OCR usage even if PDF contains native text | [optional][default to false] |
|
|
213
|
-
| **callback_url** | **String** | | [optional] |
|
|
214
|
-
| **webhook_mode** | **String** | Webhook content delivery: 'inline' (base64 in payload) or 'download_url' (temporary URL, 1h TTL) | [optional][default to 'inline'] |
|
|
215
|
-
|
|
216
|
-
### Return type
|
|
217
|
-
|
|
218
|
-
[**TaskResponse**](TaskResponse.md)
|
|
219
|
-
|
|
220
|
-
### Authorization
|
|
221
|
-
|
|
222
|
-
[HTTPBearer](../README.md#HTTPBearer)
|
|
223
|
-
|
|
224
|
-
### HTTP request headers
|
|
225
|
-
|
|
226
|
-
- **Content-Type**: multipart/form-data
|
|
227
|
-
- **Accept**: application/json
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
## verify_pdf_async_api_v1_verification_verify_async_post_0
|
|
231
|
-
|
|
232
|
-
> <TaskResponse> verify_pdf_async_api_v1_verification_verify_async_post_0(pdf_file, opts)
|
|
233
|
-
|
|
234
|
-
Verify PDF/XML Factur-X compliance (asynchronous)
|
|
235
|
-
|
|
236
|
-
Verifies PDF/XML Factur-X compliance asynchronously. **IMPORTANT**: Only Factur-X PDFs (with embedded XML) are accepted. PDFs without Factur-X XML will return a `NOT_FACTURX` error in the result. This version uses a Celery task and can call the OCR service if the PDF is an image or if `force_ocr=true`. **Returns immediately** a task ID. Use `/verify-async/{task_id}/status` to retrieve the result. **Verification principle (Factur-X 1.08):** - Principle #2: XML can only contain info present in the PDF - Principle #4: All XML info must be present and compliant in the PDF **Verified fields:** - Identification: BT-1 (invoice #), BT-2 (date), BT-3 (type), BT-5 (currency), BT-23 (framework) - Seller: BT-27 (name), BT-29 (SIRET), BT-30 (SIREN), BT-31 (VAT) - Buyer: BT-44 (name), BT-46 (SIRET), BT-47 (SIREN), BT-48 (VAT) - Amounts: BT-109 (excl. tax), BT-110 (VAT), BT-112 (incl. tax), BT-115 (amount due) - VAT breakdown: BT-116, BT-117, BT-118, BT-119 - Invoice lines: BT-153, BT-129, BT-146, BT-131 - Mandatory notes: PMT, PMD, AAB - Rule BR-FR-09: SIRET/SIREN consistency **Advantages over synchronous version:** - OCR support for image PDFs (via DocTR service) - Longer timeout for large documents - Doesn't block the server ## Webhook notification (recommended) Instead of polling, you can receive a webhook notification when verification completes: ``` callback_url=https://your-server.com/webhook ``` The webhook will POST a JSON payload with: - `event_type`: `verification.completed` or `verification.failed` - `data.is_compliant`: Whether the PDF/XML are consistent - `data.compliance_score`: Compliance score (0-1) - `X-Webhook-Signature` header for HMAC verification
|
|
237
|
-
|
|
238
|
-
### Examples
|
|
239
|
-
|
|
240
|
-
```ruby
|
|
241
|
-
require 'time'
|
|
242
|
-
require 'factpulse'
|
|
243
|
-
# setup authorization
|
|
244
|
-
FactPulse.configure do |config|
|
|
245
|
-
# Configure Bearer authorization: HTTPBearer
|
|
246
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
api_instance = FactPulse::PDFXMLVerificationApi.new
|
|
250
|
-
pdf_file = File.new('/path/to/some/file') # File | Factur-X PDF file to verify
|
|
251
|
-
opts = {
|
|
252
|
-
force_ocr: true, # Boolean | Force OCR usage even if PDF contains native text
|
|
253
|
-
callback_url: 'callback_url_example', # String |
|
|
254
|
-
webhook_mode: 'webhook_mode_example' # String | Webhook content delivery: 'inline' (base64 in payload) or 'download_url' (temporary URL, 1h TTL)
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
begin
|
|
258
|
-
# Verify PDF/XML Factur-X compliance (asynchronous)
|
|
259
|
-
result = api_instance.verify_pdf_async_api_v1_verification_verify_async_post_0(pdf_file, opts)
|
|
260
|
-
p result
|
|
261
|
-
rescue FactPulse::ApiError => e
|
|
262
|
-
puts "Error when calling PDFXMLVerificationApi->verify_pdf_async_api_v1_verification_verify_async_post_0: #{e}"
|
|
263
|
-
end
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
#### Using the verify_pdf_async_api_v1_verification_verify_async_post_0_with_http_info variant
|
|
267
|
-
|
|
268
|
-
This returns an Array which contains the response data, status code and headers.
|
|
269
|
-
|
|
270
|
-
> <Array(<TaskResponse>, Integer, Hash)> verify_pdf_async_api_v1_verification_verify_async_post_0_with_http_info(pdf_file, opts)
|
|
271
|
-
|
|
272
|
-
```ruby
|
|
273
|
-
begin
|
|
274
|
-
# Verify PDF/XML Factur-X compliance (asynchronous)
|
|
275
|
-
data, status_code, headers = api_instance.verify_pdf_async_api_v1_verification_verify_async_post_0_with_http_info(pdf_file, opts)
|
|
276
|
-
p status_code # => 2xx
|
|
277
|
-
p headers # => { ... }
|
|
278
|
-
p data # => <TaskResponse>
|
|
279
|
-
rescue FactPulse::ApiError => e
|
|
280
|
-
puts "Error when calling PDFXMLVerificationApi->verify_pdf_async_api_v1_verification_verify_async_post_0_with_http_info: #{e}"
|
|
281
|
-
end
|
|
282
|
-
```
|
|
283
|
-
|
|
284
|
-
### Parameters
|
|
285
|
-
|
|
286
|
-
| Name | Type | Description | Notes |
|
|
287
|
-
| ---- | ---- | ----------- | ----- |
|
|
288
|
-
| **pdf_file** | **File** | Factur-X PDF file to verify | |
|
|
289
|
-
| **force_ocr** | **Boolean** | Force OCR usage even if PDF contains native text | [optional][default to false] |
|
|
290
|
-
| **callback_url** | **String** | | [optional] |
|
|
291
|
-
| **webhook_mode** | **String** | Webhook content delivery: 'inline' (base64 in payload) or 'download_url' (temporary URL, 1h TTL) | [optional][default to 'inline'] |
|
|
292
|
-
|
|
293
|
-
### Return type
|
|
294
|
-
|
|
295
|
-
[**TaskResponse**](TaskResponse.md)
|
|
296
|
-
|
|
297
|
-
### Authorization
|
|
298
|
-
|
|
299
|
-
[HTTPBearer](../README.md#HTTPBearer)
|
|
300
|
-
|
|
301
|
-
### HTTP request headers
|
|
302
|
-
|
|
303
|
-
- **Content-Type**: multipart/form-data
|
|
304
|
-
- **Accept**: application/json
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
## verify_pdf_sync_api_v1_verification_verify_post
|
|
308
|
-
|
|
309
|
-
> <VerificationSuccessResponse> verify_pdf_sync_api_v1_verification_verify_post(pdf_file)
|
|
310
|
-
|
|
311
|
-
Verify PDF/XML Factur-X compliance (synchronous)
|
|
312
|
-
|
|
313
|
-
Verifies compliance between the PDF and its embedded Factur-X XML. **IMPORTANT**: Only Factur-X PDFs (with embedded XML) are accepted. PDFs without Factur-X XML will be rejected with a 400 error. This synchronous version uses only native PDF extraction (pdfplumber). For image PDFs requiring OCR, use the `/verify-async` endpoint. **Verification principle (Factur-X 1.08):** - Principle #2: XML can only contain info present in the PDF - Principle #4: All XML info must be present and compliant in the PDF **Verified fields:** - Identification: BT-1 (invoice #), BT-2 (date), BT-3 (type), BT-5 (currency), BT-23 (framework) - Seller: BT-27 (name), BT-29 (SIRET), BT-30 (SIREN), BT-31 (VAT) - Buyer: BT-44 (name), BT-46 (SIRET), BT-47 (SIREN), BT-48 (VAT) - Amounts: BT-109 (excl. tax), BT-110 (VAT), BT-112 (incl. tax), BT-115 (amount due) - VAT breakdown: BT-116, BT-117, BT-118, BT-119 - Invoice lines: BT-153, BT-129, BT-146, BT-131 - Mandatory notes: PMT, PMD, AAB - Rule BR-FR-09: SIRET/SIREN consistency
|
|
314
|
-
|
|
315
|
-
### Examples
|
|
316
|
-
|
|
317
|
-
```ruby
|
|
318
|
-
require 'time'
|
|
319
|
-
require 'factpulse'
|
|
320
|
-
# setup authorization
|
|
321
|
-
FactPulse.configure do |config|
|
|
322
|
-
# Configure Bearer authorization: HTTPBearer
|
|
323
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
api_instance = FactPulse::PDFXMLVerificationApi.new
|
|
327
|
-
pdf_file = File.new('/path/to/some/file') # File | Factur-X PDF file to verify
|
|
328
|
-
|
|
329
|
-
begin
|
|
330
|
-
# Verify PDF/XML Factur-X compliance (synchronous)
|
|
331
|
-
result = api_instance.verify_pdf_sync_api_v1_verification_verify_post(pdf_file)
|
|
332
|
-
p result
|
|
333
|
-
rescue FactPulse::ApiError => e
|
|
334
|
-
puts "Error when calling PDFXMLVerificationApi->verify_pdf_sync_api_v1_verification_verify_post: #{e}"
|
|
335
|
-
end
|
|
336
|
-
```
|
|
337
|
-
|
|
338
|
-
#### Using the verify_pdf_sync_api_v1_verification_verify_post_with_http_info variant
|
|
339
|
-
|
|
340
|
-
This returns an Array which contains the response data, status code and headers.
|
|
341
|
-
|
|
342
|
-
> <Array(<VerificationSuccessResponse>, Integer, Hash)> verify_pdf_sync_api_v1_verification_verify_post_with_http_info(pdf_file)
|
|
343
|
-
|
|
344
|
-
```ruby
|
|
345
|
-
begin
|
|
346
|
-
# Verify PDF/XML Factur-X compliance (synchronous)
|
|
347
|
-
data, status_code, headers = api_instance.verify_pdf_sync_api_v1_verification_verify_post_with_http_info(pdf_file)
|
|
348
|
-
p status_code # => 2xx
|
|
349
|
-
p headers # => { ... }
|
|
350
|
-
p data # => <VerificationSuccessResponse>
|
|
351
|
-
rescue FactPulse::ApiError => e
|
|
352
|
-
puts "Error when calling PDFXMLVerificationApi->verify_pdf_sync_api_v1_verification_verify_post_with_http_info: #{e}"
|
|
353
|
-
end
|
|
354
|
-
```
|
|
355
|
-
|
|
356
|
-
### Parameters
|
|
357
|
-
|
|
358
|
-
| Name | Type | Description | Notes |
|
|
359
|
-
| ---- | ---- | ----------- | ----- |
|
|
360
|
-
| **pdf_file** | **File** | Factur-X PDF file to verify | |
|
|
361
|
-
|
|
362
|
-
### Return type
|
|
363
|
-
|
|
364
|
-
[**VerificationSuccessResponse**](VerificationSuccessResponse.md)
|
|
365
|
-
|
|
366
|
-
### Authorization
|
|
367
|
-
|
|
368
|
-
[HTTPBearer](../README.md#HTTPBearer)
|
|
369
|
-
|
|
370
|
-
### HTTP request headers
|
|
371
|
-
|
|
372
|
-
- **Content-Type**: multipart/form-data
|
|
373
|
-
- **Accept**: application/json
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
## verify_pdf_sync_api_v1_verification_verify_post_0
|
|
377
|
-
|
|
378
|
-
> <VerificationSuccessResponse> verify_pdf_sync_api_v1_verification_verify_post_0(pdf_file)
|
|
379
|
-
|
|
380
|
-
Verify PDF/XML Factur-X compliance (synchronous)
|
|
381
|
-
|
|
382
|
-
Verifies compliance between the PDF and its embedded Factur-X XML. **IMPORTANT**: Only Factur-X PDFs (with embedded XML) are accepted. PDFs without Factur-X XML will be rejected with a 400 error. This synchronous version uses only native PDF extraction (pdfplumber). For image PDFs requiring OCR, use the `/verify-async` endpoint. **Verification principle (Factur-X 1.08):** - Principle #2: XML can only contain info present in the PDF - Principle #4: All XML info must be present and compliant in the PDF **Verified fields:** - Identification: BT-1 (invoice #), BT-2 (date), BT-3 (type), BT-5 (currency), BT-23 (framework) - Seller: BT-27 (name), BT-29 (SIRET), BT-30 (SIREN), BT-31 (VAT) - Buyer: BT-44 (name), BT-46 (SIRET), BT-47 (SIREN), BT-48 (VAT) - Amounts: BT-109 (excl. tax), BT-110 (VAT), BT-112 (incl. tax), BT-115 (amount due) - VAT breakdown: BT-116, BT-117, BT-118, BT-119 - Invoice lines: BT-153, BT-129, BT-146, BT-131 - Mandatory notes: PMT, PMD, AAB - Rule BR-FR-09: SIRET/SIREN consistency
|
|
383
|
-
|
|
384
|
-
### Examples
|
|
385
|
-
|
|
386
|
-
```ruby
|
|
387
|
-
require 'time'
|
|
388
|
-
require 'factpulse'
|
|
389
|
-
# setup authorization
|
|
390
|
-
FactPulse.configure do |config|
|
|
391
|
-
# Configure Bearer authorization: HTTPBearer
|
|
392
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
393
|
-
end
|
|
394
|
-
|
|
395
|
-
api_instance = FactPulse::PDFXMLVerificationApi.new
|
|
396
|
-
pdf_file = File.new('/path/to/some/file') # File | Factur-X PDF file to verify
|
|
397
|
-
|
|
398
|
-
begin
|
|
399
|
-
# Verify PDF/XML Factur-X compliance (synchronous)
|
|
400
|
-
result = api_instance.verify_pdf_sync_api_v1_verification_verify_post_0(pdf_file)
|
|
401
|
-
p result
|
|
402
|
-
rescue FactPulse::ApiError => e
|
|
403
|
-
puts "Error when calling PDFXMLVerificationApi->verify_pdf_sync_api_v1_verification_verify_post_0: #{e}"
|
|
404
|
-
end
|
|
405
|
-
```
|
|
406
|
-
|
|
407
|
-
#### Using the verify_pdf_sync_api_v1_verification_verify_post_0_with_http_info variant
|
|
408
|
-
|
|
409
|
-
This returns an Array which contains the response data, status code and headers.
|
|
410
|
-
|
|
411
|
-
> <Array(<VerificationSuccessResponse>, Integer, Hash)> verify_pdf_sync_api_v1_verification_verify_post_0_with_http_info(pdf_file)
|
|
412
|
-
|
|
413
|
-
```ruby
|
|
414
|
-
begin
|
|
415
|
-
# Verify PDF/XML Factur-X compliance (synchronous)
|
|
416
|
-
data, status_code, headers = api_instance.verify_pdf_sync_api_v1_verification_verify_post_0_with_http_info(pdf_file)
|
|
417
|
-
p status_code # => 2xx
|
|
418
|
-
p headers # => { ... }
|
|
419
|
-
p data # => <VerificationSuccessResponse>
|
|
420
|
-
rescue FactPulse::ApiError => e
|
|
421
|
-
puts "Error when calling PDFXMLVerificationApi->verify_pdf_sync_api_v1_verification_verify_post_0_with_http_info: #{e}"
|
|
422
|
-
end
|
|
423
|
-
```
|
|
424
|
-
|
|
425
|
-
### Parameters
|
|
426
|
-
|
|
427
|
-
| Name | Type | Description | Notes |
|
|
428
|
-
| ---- | ---- | ----------- | ----- |
|
|
429
|
-
| **pdf_file** | **File** | Factur-X PDF file to verify | |
|
|
430
|
-
|
|
431
|
-
### Return type
|
|
432
|
-
|
|
433
|
-
[**VerificationSuccessResponse**](VerificationSuccessResponse.md)
|
|
434
|
-
|
|
435
|
-
### Authorization
|
|
436
|
-
|
|
437
|
-
[HTTPBearer](../README.md#HTTPBearer)
|
|
438
|
-
|
|
439
|
-
### HTTP request headers
|
|
440
|
-
|
|
441
|
-
- **Content-Type**: multipart/form-data
|
|
442
|
-
- **Accept**: application/json
|
|
443
|
-
|
data/docs/UserApi.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# FactPulse::UserApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://factpulse.fr*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**get_user_info_api_v1_me_get**](UserApi.md#get_user_info_api_v1_me_get) | **GET** /api/v1/me | Get current user information |
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
## get_user_info_api_v1_me_get
|
|
11
|
-
|
|
12
|
-
> Object get_user_info_api_v1_me_get
|
|
13
|
-
|
|
14
|
-
Get current user information
|
|
15
|
-
|
|
16
|
-
Returns information about the authenticated user. This endpoint allows you to: - Verify that authentication works - Get connected account details - Test JWT token validity - Check your consumption quota **Requires valid authentication.**
|
|
17
|
-
|
|
18
|
-
### Examples
|
|
19
|
-
|
|
20
|
-
```ruby
|
|
21
|
-
require 'time'
|
|
22
|
-
require 'factpulse'
|
|
23
|
-
# setup authorization
|
|
24
|
-
FactPulse.configure do |config|
|
|
25
|
-
# Configure Bearer authorization: HTTPBearer
|
|
26
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
api_instance = FactPulse::UserApi.new
|
|
30
|
-
|
|
31
|
-
begin
|
|
32
|
-
# Get current user information
|
|
33
|
-
result = api_instance.get_user_info_api_v1_me_get
|
|
34
|
-
p result
|
|
35
|
-
rescue FactPulse::ApiError => e
|
|
36
|
-
puts "Error when calling UserApi->get_user_info_api_v1_me_get: #{e}"
|
|
37
|
-
end
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
#### Using the get_user_info_api_v1_me_get_with_http_info variant
|
|
41
|
-
|
|
42
|
-
This returns an Array which contains the response data, status code and headers.
|
|
43
|
-
|
|
44
|
-
> <Array(Object, Integer, Hash)> get_user_info_api_v1_me_get_with_http_info
|
|
45
|
-
|
|
46
|
-
```ruby
|
|
47
|
-
begin
|
|
48
|
-
# Get current user information
|
|
49
|
-
data, status_code, headers = api_instance.get_user_info_api_v1_me_get_with_http_info
|
|
50
|
-
p status_code # => 2xx
|
|
51
|
-
p headers # => { ... }
|
|
52
|
-
p data # => Object
|
|
53
|
-
rescue FactPulse::ApiError => e
|
|
54
|
-
puts "Error when calling UserApi->get_user_info_api_v1_me_get_with_http_info: #{e}"
|
|
55
|
-
end
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
### Parameters
|
|
59
|
-
|
|
60
|
-
This endpoint does not need any parameter.
|
|
61
|
-
|
|
62
|
-
### Return type
|
|
63
|
-
|
|
64
|
-
**Object**
|
|
65
|
-
|
|
66
|
-
### Authorization
|
|
67
|
-
|
|
68
|
-
[HTTPBearer](../README.md#HTTPBearer)
|
|
69
|
-
|
|
70
|
-
### HTTP request headers
|
|
71
|
-
|
|
72
|
-
- **Content-Type**: Not defined
|
|
73
|
-
- **Accept**: application/json
|
|
74
|
-
|