factpulse 3.0.10 → 3.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -3
- data/Gemfile.lock +3 -3
- data/LICENSE +1 -1
- data/docs/AFNORAcknowledgement.md +20 -0
- data/docs/AFNORAcknowledgementDetail.md +24 -0
- data/docs/AFNORAddressEdit.md +30 -0
- data/docs/AFNORAddressPatch.md +30 -0
- data/docs/AFNORAddressPut.md +30 -0
- data/docs/AFNORAddressRead.md +32 -0
- data/docs/{ValidationErrorLocInner.md → AFNORAlgorithm.md} +2 -2
- data/docs/AFNORContainsOperator.md +15 -0
- data/docs/AFNORCreateDirectoryLineBody.md +20 -0
- data/docs/AFNORCreateDirectoryLineBodyAddressingInformation.md +24 -0
- data/docs/AFNORCreateDirectoryLineBodyPeriod.md +20 -0
- data/docs/AFNORCreateRoutingCodeBody.md +32 -0
- data/docs/AFNORDestination.md +4 -2
- data/docs/AFNORDiffusionStatus.md +15 -0
- data/docs/AFNORDirectoryLineField.md +15 -0
- data/docs/AFNORDirectoryLinePayloadHistoryLegalUnitFacilityRoutingCode.md +32 -0
- data/docs/AFNORDirectoryLinePayloadHistoryLegalUnitFacilityRoutingCodePlatform.md +20 -0
- data/docs/AFNORDirectoryLinePayloadHistoryLegalUnitFacilityRoutingCodeRoutingCode.md +28 -0
- data/docs/AFNORDirectoryLinePost201Response.md +22 -0
- data/docs/AFNORDirectoryLineSearchPost200Response.md +22 -0
- data/docs/AFNOREntityType.md +15 -0
- data/docs/AFNORError.md +26 -0
- data/docs/AFNORFacilityAdministrativeStatus.md +15 -0
- data/docs/AFNORFacilityNature.md +15 -0
- data/docs/AFNORFacilityPayloadHistory.md +34 -0
- data/docs/AFNORFacilityPayloadHistoryUleB2gAdditionalData.md +28 -0
- data/docs/AFNORFacilityPayloadIncluded.md +32 -0
- data/docs/AFNORFacilityType.md +15 -0
- data/docs/AFNORFlow.md +38 -0
- data/docs/AFNORFlowAckStatus.md +15 -0
- data/docs/AFNORFlowDirection.md +15 -0
- data/docs/AFNORFlowInfo.md +28 -0
- data/docs/AFNORFlowProfile.md +15 -0
- data/docs/AFNORFlowSyntax.md +15 -0
- data/docs/AFNORFlowType.md +15 -0
- data/docs/AFNORFullFlowInfo.md +32 -0
- data/docs/AFNORLegalUnitAdministrativeStatus.md +15 -0
- data/docs/AFNORLegalUnitPayloadHistory.md +24 -0
- data/docs/AFNORLegalUnitPayloadIncluded.md +24 -0
- data/docs/AFNORLegalUnitPayloadIncludedNoSiren.md +22 -0
- data/docs/AFNORPDPPAApi.md +5 -5
- data/docs/AFNORPDPPADirectoryServiceApi.md +278 -178
- data/docs/AFNORPDPPAFlowServiceApi.md +39 -27
- data/docs/AFNORPlatformStatus.md +15 -0
- data/docs/AFNORProcessingRule.md +15 -0
- data/docs/AFNORReasonCode.md +49 -0
- data/docs/AFNORReasonCodeEnum.md +15 -0
- data/docs/AFNORRecipientPlatformType.md +15 -0
- data/docs/AFNORResult.md +7 -1
- data/docs/AFNORRoutingCodeAdministrativeStatus.md +15 -0
- data/docs/AFNORRoutingCodeField.md +15 -0
- data/docs/AFNORRoutingCodePayloadHistoryLegalUnitFacility.md +34 -0
- data/docs/AFNORRoutingCodePost201Response.md +22 -0
- data/docs/AFNORRoutingCodeSearch.md +28 -0
- data/docs/AFNORRoutingCodeSearchFilters.md +30 -0
- data/docs/AFNORRoutingCodeSearchFiltersAdministrativeStatus.md +20 -0
- data/docs/AFNORRoutingCodeSearchFiltersRoutingCodeName.md +20 -0
- data/docs/AFNORRoutingCodeSearchFiltersRoutingIdentifier.md +20 -0
- data/docs/AFNORRoutingCodeSearchPost200Response.md +22 -0
- data/docs/AFNORRoutingCodeSearchSortingInner.md +20 -0
- data/docs/AFNORSearchDirectoryLine.md +26 -0
- data/docs/AFNORSearchDirectoryLineFilters.md +26 -0
- data/docs/AFNORSearchDirectoryLineFiltersAddressingIdentifier.md +20 -0
- data/docs/AFNORSearchDirectoryLineFiltersAddressingSuffix.md +20 -0
- data/docs/AFNORSearchDirectoryLineSortingInner.md +20 -0
- data/docs/AFNORSearchFlowContent.md +22 -0
- data/docs/AFNORSearchFlowFilters.md +30 -0
- data/docs/AFNORSearchFlowParams.md +20 -0
- data/docs/AFNORSearchSiren.md +26 -0
- data/docs/AFNORSearchSirenFilters.md +24 -0
- data/docs/AFNORSearchSirenFiltersAdministrativeStatus.md +20 -0
- data/docs/AFNORSearchSirenFiltersBusinessName.md +20 -0
- data/docs/AFNORSearchSirenFiltersEntityType.md +20 -0
- data/docs/AFNORSearchSirenFiltersSiren.md +20 -0
- data/docs/AFNORSearchSirenSortingInner.md +20 -0
- data/docs/AFNORSearchSiret.md +28 -0
- data/docs/AFNORSearchSiretFilters.md +34 -0
- data/docs/AFNORSearchSiretFiltersAddressLines.md +20 -0
- data/docs/AFNORSearchSiretFiltersAdministrativeStatus.md +20 -0
- data/docs/AFNORSearchSiretFiltersCountrySubdivision.md +20 -0
- data/docs/AFNORSearchSiretFiltersFacilityType.md +20 -0
- data/docs/AFNORSearchSiretFiltersLocality.md +20 -0
- data/docs/AFNORSearchSiretFiltersName.md +20 -0
- data/docs/AFNORSearchSiretFiltersPostalCode.md +20 -0
- data/docs/AFNORSearchSiretFiltersSiret.md +20 -0
- data/docs/AFNORSearchSiretSortingInner.md +20 -0
- data/docs/AFNORSirenField.md +15 -0
- data/docs/AFNORSirenSearchPost200Response.md +22 -0
- data/docs/AFNORSiretField.md +15 -0
- data/docs/AFNORSiretSearchPost200Response.md +22 -0
- data/docs/AFNORSortingOrder.md +15 -0
- data/docs/AFNORStrictOperator.md +15 -0
- data/docs/AFNORUpdatePatchDirectoryLineBody.md +18 -0
- data/docs/AFNORUpdatePatchRoutingCodeBody.md +24 -0
- data/docs/AFNORUpdatePutRoutingCodeBody.md +24 -0
- data/docs/AFNORWebhookCallbackContent.md +18 -0
- data/docs/AcceptLanguage.md +15 -0
- data/docs/AggregatedPaymentInput.md +22 -0
- data/docs/AggregatedTransactionInput.md +32 -0
- data/docs/AllowanceCharge.md +3 -3
- data/docs/AllowanceChargeReasonCode.md +15 -0
- data/docs/Amount1.md +15 -0
- data/docs/Buyercountry.md +15 -0
- data/docs/ChorusProApi.md +5 -3
- data/docs/{FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md → ChorusProCredentials.md} +2 -2
- data/docs/ConvertValidationFailedResponse.md +5 -5
- data/docs/CountryCode.md +15 -0
- data/docs/CreateAggregatedReportRequest.md +34 -0
- data/docs/CreateEReportingRequest.md +36 -0
- data/docs/Currency.md +15 -0
- data/docs/CurrencyCode.md +15 -0
- data/docs/DirectoryLineInclude.md +15 -0
- data/docs/DocType.md +15 -0
- data/docs/DocumentConversionApi.md +12 -86
- data/docs/DownloadsApi.md +295 -0
- data/docs/EReportingApi.md +782 -0
- data/docs/EReportingFlowType.md +15 -0
- data/docs/ElectronicAddress.md +2 -2
- data/docs/EnrichedInvoiceInfo.md +6 -6
- data/docs/FactureElectroniqueModelsInvoiceTypeCode.md +15 -0
- data/docs/FactureElectroniqueRestApiSchemasConvertValidationError.md +32 -0
- data/docs/FlowSummary.md +2 -2
- data/docs/GenerateAggregatedReportResponse.md +30 -0
- data/docs/GenerateEReportingResponse.md +26 -0
- data/docs/GetChorusProIdRequest.md +1 -1
- data/docs/GetInvoiceRequest.md +1 -1
- data/docs/GetInvoiceResponse.md +2 -2
- data/docs/GetStructureRequest.md +1 -1
- data/docs/GetStructureResponse.md +2 -2
- data/docs/HealthApi.md +1 -1
- data/docs/IncomingInvoice.md +1 -1
- data/docs/InvoiceInput.md +48 -0
- data/docs/InvoiceLine.md +4 -0
- data/docs/InvoiceNote.md +1 -1
- data/docs/InvoicePaymentInput.md +26 -0
- data/docs/InvoiceProcessingApi.md +41 -17
- data/docs/InvoiceTypeCodeOutput.md +15 -0
- data/docs/InvoicingFramework.md +1 -1
- data/docs/LineSubType.md +15 -0
- data/docs/LocationInner.md +15 -0
- data/docs/PDFXMLVerificationApi.md +17 -9
- data/docs/PaymentAmountByRate.md +20 -0
- data/docs/ProcessingRule.md +15 -0
- data/docs/Rate.md +15 -0
- data/docs/Rate1.md +15 -0
- data/docs/ReportPeriod.md +20 -0
- data/docs/ReportSender.md +22 -0
- data/docs/RoutingCodeInclude.md +15 -0
- data/docs/SearchServicesResponse.md +3 -3
- data/docs/SearchStructureRequest.md +1 -1
- data/docs/Sellercountry.md +15 -0
- data/docs/SimplifiedInvoiceData.md +9 -1
- data/docs/SiretInclude.md +15 -0
- data/docs/SubmitAggregatedReportRequest.md +28 -0
- data/docs/SubmitEReportingRequest.md +28 -0
- data/docs/SubmitEReportingResponse.md +32 -0
- data/docs/SubmitInvoiceRequest.md +1 -1
- data/docs/SupplementaryAttachment.md +5 -5
- data/docs/TaxBreakdownInput.md +22 -0
- data/docs/TaxDueDateType.md +15 -0
- data/docs/Taxableamount.md +15 -0
- data/docs/Taxamount.md +15 -0
- data/docs/Taxamount1.md +15 -0
- data/docs/Taxamount2.md +15 -0
- data/docs/Taxexclusiveamount.md +15 -0
- data/docs/Taxexclusiveamount1.md +15 -0
- data/docs/TransactionCategory.md +15 -0
- data/docs/TransmissionTypeCode.md +15 -0
- data/docs/UserApi.md +1 -1
- data/docs/ValidateEReportingRequest.md +18 -0
- data/docs/ValidateEReportingResponse.md +28 -0
- data/docs/ValidationError.md +1 -1
- data/docs/ValidationInfo.md +1 -1
- data/factpulse.gemspec +4 -4
- data/lib/factpulse/api/afnorpdppa_api.rb +6 -6
- data/lib/factpulse/api/afnorpdppa_directory_service_api.rb +210 -123
- data/lib/factpulse/api/afnorpdppa_flow_service_api.rb +57 -24
- data/lib/factpulse/api/chorus_pro_api.rb +6 -4
- data/lib/factpulse/api/document_conversion_api.rb +13 -85
- data/lib/factpulse/api/downloads_api.rb +280 -0
- data/lib/factpulse/api/e_reporting_api.rb +774 -0
- data/lib/factpulse/api/health_api.rb +2 -2
- data/lib/factpulse/api/invoice_processing_api.rb +47 -14
- data/lib/factpulse/api/pdfxml_verification_api.rb +22 -10
- data/lib/factpulse/api/user_api.rb +2 -2
- data/lib/factpulse/api_client.rb +2 -2
- data/lib/factpulse/api_error.rb +2 -2
- data/lib/factpulse/api_model_base.rb +2 -2
- data/lib/factpulse/configuration.rb +10 -6
- data/lib/factpulse/models/accept_language.rb +40 -0
- data/lib/factpulse/models/acknowledgment_status.rb +2 -2
- data/lib/factpulse/models/additional_document.rb +2 -2
- data/lib/factpulse/models/afnor_acknowledgement.rb +216 -0
- data/lib/factpulse/models/afnor_acknowledgement_detail.rb +267 -0
- data/lib/factpulse/models/afnor_address_edit.rb +353 -0
- data/lib/factpulse/models/afnor_address_patch.rb +386 -0
- data/lib/factpulse/models/afnor_address_put.rb +435 -0
- data/lib/factpulse/models/afnor_address_read.rb +382 -0
- data/lib/factpulse/models/afnor_algorithm.rb +43 -0
- data/lib/factpulse/models/afnor_contains_operator.rb +39 -0
- data/lib/factpulse/models/afnor_create_directory_line_body.rb +156 -0
- data/lib/factpulse/models/afnor_create_directory_line_body_addressing_information.rb +294 -0
- data/lib/factpulse/models/afnor_create_directory_line_body_period.rb +175 -0
- data/lib/factpulse/models/afnor_create_routing_code_body.rb +412 -0
- data/lib/factpulse/models/afnor_credentials.rb +2 -2
- data/lib/factpulse/models/afnor_destination.rb +19 -23
- data/lib/factpulse/models/afnor_diffusion_status.rb +40 -0
- data/lib/factpulse/models/afnor_directory_line_field.rb +44 -0
- data/lib/factpulse/models/afnor_directory_line_payload_history_legal_unit_facility_routing_code.rb +312 -0
- data/lib/factpulse/models/afnor_directory_line_payload_history_legal_unit_facility_routing_code_platform.rb +178 -0
- data/lib/factpulse/models/afnor_directory_line_payload_history_legal_unit_facility_routing_code_routing_code.rb +308 -0
- data/lib/factpulse/models/afnor_directory_line_post201_response.rb +187 -0
- data/lib/factpulse/models/afnor_directory_line_search_post200_response.rb +168 -0
- data/lib/factpulse/models/afnor_entity_type.rb +40 -0
- data/lib/factpulse/models/{convert_error_response.rb → afnor_error.rb} +51 -61
- data/lib/factpulse/models/afnor_facility_administrative_status.rb +40 -0
- data/lib/factpulse/models/afnor_facility_nature.rb +40 -0
- data/lib/factpulse/models/afnor_facility_payload_history.rb +323 -0
- data/lib/factpulse/models/afnor_facility_payload_history_ule_b2g_additional_data.rb +198 -0
- data/lib/factpulse/models/afnor_facility_payload_included.rb +314 -0
- data/lib/factpulse/models/afnor_facility_type.rb +40 -0
- data/lib/factpulse/models/afnor_flow.rb +315 -0
- data/lib/factpulse/models/afnor_flow_ack_status.rb +41 -0
- data/lib/factpulse/models/afnor_flow_direction.rb +40 -0
- data/lib/factpulse/models/afnor_flow_info.rb +293 -0
- data/lib/factpulse/models/afnor_flow_profile.rb +41 -0
- data/lib/factpulse/models/afnor_flow_syntax.rb +43 -0
- data/lib/factpulse/models/afnor_flow_type.rb +51 -0
- data/lib/factpulse/models/afnor_full_flow_info.rb +339 -0
- data/lib/factpulse/models/afnor_health_check_response.rb +2 -2
- data/lib/factpulse/models/afnor_legal_unit_administrative_status.rb +40 -0
- data/lib/factpulse/models/afnor_legal_unit_payload_history.rb +247 -0
- data/lib/factpulse/models/afnor_legal_unit_payload_included.rb +247 -0
- data/lib/factpulse/models/afnor_legal_unit_payload_included_no_siren.rb +207 -0
- data/lib/factpulse/models/afnor_platform_status.rb +40 -0
- data/lib/factpulse/models/afnor_processing_rule.rb +44 -0
- data/lib/factpulse/models/afnor_reason_code.rb +105 -0
- data/lib/factpulse/models/afnor_reason_code_enum.rb +53 -0
- data/lib/factpulse/models/afnor_recipient_platform_type.rb +40 -0
- data/lib/factpulse/models/afnor_result.rb +37 -7
- data/lib/factpulse/models/afnor_routing_code_administrative_status.rb +40 -0
- data/lib/factpulse/models/afnor_routing_code_field.rb +46 -0
- data/lib/factpulse/models/afnor_routing_code_payload_history_legal_unit_facility.rb +366 -0
- data/lib/factpulse/models/afnor_routing_code_post201_response.rb +228 -0
- data/lib/factpulse/models/afnor_routing_code_search.rb +224 -0
- data/lib/factpulse/models/afnor_routing_code_search_filters.rb +201 -0
- data/lib/factpulse/models/afnor_routing_code_search_filters_administrative_status.rb +178 -0
- data/lib/factpulse/models/afnor_routing_code_search_filters_routing_code_name.rb +209 -0
- data/lib/factpulse/models/afnor_routing_code_search_filters_routing_identifier.rb +209 -0
- data/lib/factpulse/models/afnor_routing_code_search_post200_response.rb +168 -0
- data/lib/factpulse/models/afnor_routing_code_search_sorting_inner.rb +179 -0
- data/lib/factpulse/models/afnor_search_directory_line.rb +191 -0
- data/lib/factpulse/models/afnor_search_directory_line_filters.rb +183 -0
- data/lib/factpulse/models/afnor_search_directory_line_filters_addressing_identifier.rb +198 -0
- data/lib/factpulse/models/afnor_search_directory_line_filters_addressing_suffix.rb +198 -0
- data/lib/factpulse/models/afnor_search_directory_line_sorting_inner.rb +179 -0
- data/lib/factpulse/models/afnor_search_flow_content.rb +168 -0
- data/lib/factpulse/models/afnor_search_flow_filters.rb +250 -0
- data/lib/factpulse/models/afnor_search_flow_params.rb +195 -0
- data/lib/factpulse/models/afnor_search_siren.rb +191 -0
- data/lib/factpulse/models/afnor_search_siren_filters.rb +174 -0
- data/lib/factpulse/models/afnor_search_siren_filters_administrative_status.rb +178 -0
- data/lib/factpulse/models/afnor_search_siren_filters_business_name.rb +198 -0
- data/lib/factpulse/models/afnor_search_siren_filters_entity_type.rb +178 -0
- data/lib/factpulse/models/afnor_search_siren_filters_siren.rb +209 -0
- data/lib/factpulse/models/afnor_search_siren_sorting_inner.rb +179 -0
- data/lib/factpulse/models/afnor_search_siret.rb +224 -0
- data/lib/factpulse/models/afnor_search_siret_filters.rb +219 -0
- data/lib/factpulse/models/afnor_search_siret_filters_address_lines.rb +198 -0
- data/lib/factpulse/models/afnor_search_siret_filters_administrative_status.rb +178 -0
- data/lib/factpulse/models/afnor_search_siret_filters_country_subdivision.rb +198 -0
- data/lib/factpulse/models/afnor_search_siret_filters_facility_type.rb +178 -0
- data/lib/factpulse/models/afnor_search_siret_filters_locality.rb +198 -0
- data/lib/factpulse/models/afnor_search_siret_filters_name.rb +198 -0
- data/lib/factpulse/models/afnor_search_siret_filters_postal_code.rb +209 -0
- data/lib/factpulse/models/afnor_search_siret_filters_siret.rb +209 -0
- data/lib/factpulse/models/afnor_search_siret_sorting_inner.rb +179 -0
- data/lib/factpulse/models/afnor_siren_field.rb +43 -0
- data/lib/factpulse/models/afnor_siren_search_post200_response.rb +168 -0
- data/lib/factpulse/models/afnor_siret_field.rb +52 -0
- data/lib/factpulse/models/afnor_siret_search_post200_response.rb +168 -0
- data/lib/factpulse/models/afnor_sorting_order.rb +40 -0
- data/lib/factpulse/models/afnor_strict_operator.rb +39 -0
- data/lib/factpulse/models/afnor_update_patch_directory_line_body.rb +148 -0
- data/lib/factpulse/models/afnor_update_patch_routing_code_body.rb +258 -0
- data/lib/factpulse/models/afnor_update_put_routing_code_body.rb +289 -0
- data/lib/factpulse/models/afnor_webhook_callback_content.rb +148 -0
- data/lib/factpulse/models/aggregated_payment_input.rb +213 -0
- data/lib/factpulse/models/aggregated_transaction_input.rb +349 -0
- data/lib/factpulse/models/allowance_charge.rb +27 -5
- data/lib/factpulse/models/allowance_charge_reason_code.rb +76 -0
- data/lib/factpulse/models/allowance_reason_code.rb +2 -2
- data/lib/factpulse/models/allowance_total_amount.rb +2 -2
- data/lib/factpulse/models/amount.rb +3 -3
- data/lib/factpulse/models/amount1.rb +104 -0
- data/lib/factpulse/models/amount_due.rb +2 -2
- data/lib/factpulse/models/api_error.rb +2 -2
- data/lib/factpulse/models/api_profile.rb +4 -3
- data/lib/factpulse/models/async_task_status.rb +2 -2
- data/lib/factpulse/models/base_amount.rb +2 -2
- data/lib/factpulse/models/bounding_box_schema.rb +2 -2
- data/lib/factpulse/models/buyercountry.rb +104 -0
- data/lib/factpulse/models/celery_status.rb +2 -2
- data/lib/factpulse/models/certificate_info_response.rb +2 -2
- data/lib/factpulse/models/charge_total_amount.rb +2 -2
- data/lib/factpulse/models/{facture_electronique_rest_api_schemas_chorus_pro_chorus_pro_credentials.rb → chorus_pro_credentials.rb} +5 -5
- data/lib/factpulse/models/chorus_pro_destination.rb +2 -2
- data/lib/factpulse/models/chorus_pro_result.rb +2 -2
- data/lib/factpulse/models/contact.rb +2 -2
- data/lib/factpulse/models/convert_resume_request.rb +2 -2
- data/lib/factpulse/models/convert_success_response.rb +2 -2
- data/lib/factpulse/models/convert_validation_failed_response.rb +7 -2
- data/lib/factpulse/models/country_code.rb +208 -0
- data/lib/factpulse/models/create_aggregated_report_request.rb +310 -0
- data/lib/factpulse/models/create_e_reporting_request.rb +337 -0
- data/lib/factpulse/models/currency.rb +104 -0
- data/lib/factpulse/models/currency_code.rb +91 -0
- data/lib/factpulse/models/delivery_party.rb +2 -2
- data/lib/factpulse/models/destination.rb +2 -2
- data/lib/factpulse/models/directory_line_include.rb +42 -0
- data/lib/factpulse/models/doc_type.rb +42 -0
- data/lib/factpulse/models/document_type_info.rb +2 -2
- data/lib/factpulse/models/e_reporting_flow_type.rb +42 -0
- data/lib/factpulse/models/electronic_address.rb +4 -2
- data/lib/factpulse/models/enriched_invoice_info.rb +8 -2
- data/lib/factpulse/models/error_level.rb +2 -2
- data/lib/factpulse/models/error_source.rb +2 -2
- data/lib/factpulse/models/extraction_info.rb +2 -2
- data/lib/factpulse/models/factur_x_invoice.rb +2 -2
- data/lib/factpulse/models/factur_xpdf_info.rb +2 -2
- data/lib/factpulse/models/facture_electronique_models_invoice_type_code.rb +54 -0
- data/lib/factpulse/models/facture_electronique_rest_api_schemas_convert_validation_error.rb +294 -0
- data/lib/factpulse/models/facture_electronique_rest_api_schemas_processing_chorus_pro_credentials.rb +2 -2
- data/lib/factpulse/models/field_status.rb +2 -2
- data/lib/factpulse/models/file_info.rb +2 -2
- data/lib/factpulse/models/files_info.rb +2 -2
- data/lib/factpulse/models/flow_direction.rb +2 -2
- data/lib/factpulse/models/flow_profile.rb +2 -2
- data/lib/factpulse/models/flow_summary.rb +4 -2
- data/lib/factpulse/models/flow_syntax.rb +2 -2
- data/lib/factpulse/models/flow_type.rb +12 -4
- data/lib/factpulse/models/generate_aggregated_report_response.rb +330 -0
- data/lib/factpulse/models/generate_certificate_request.rb +2 -2
- data/lib/factpulse/models/generate_certificate_response.rb +2 -2
- data/lib/factpulse/models/generate_e_reporting_response.rb +274 -0
- data/lib/factpulse/models/get_chorus_pro_id_request.rb +3 -3
- data/lib/factpulse/models/get_chorus_pro_id_response.rb +2 -2
- data/lib/factpulse/models/get_invoice_request.rb +3 -3
- data/lib/factpulse/models/get_invoice_response.rb +4 -2
- data/lib/factpulse/models/get_structure_request.rb +3 -3
- data/lib/factpulse/models/get_structure_response.rb +4 -2
- data/lib/factpulse/models/global_allowance_amount.rb +2 -2
- data/lib/factpulse/models/gross_unit_price.rb +2 -2
- data/lib/factpulse/models/http_validation_error.rb +2 -2
- data/lib/factpulse/models/incoming_invoice.rb +3 -36
- data/lib/factpulse/models/incoming_supplier.rb +2 -2
- data/lib/factpulse/models/invoice_format.rb +2 -2
- data/lib/factpulse/models/invoice_input.rb +446 -0
- data/lib/factpulse/models/invoice_line.rb +23 -3
- data/lib/factpulse/models/invoice_line_allowance_amount.rb +2 -2
- data/lib/factpulse/models/invoice_note.rb +3 -2
- data/lib/factpulse/models/invoice_payment_input.rb +267 -0
- data/lib/factpulse/models/invoice_references.rb +2 -2
- data/lib/factpulse/models/invoice_status.rb +2 -2
- data/lib/factpulse/models/invoice_totals.rb +2 -2
- data/lib/factpulse/models/invoice_totals_prepayment.rb +2 -2
- data/lib/factpulse/models/invoice_type_code.rb +8 -19
- data/lib/factpulse/models/invoice_type_code_output.rb +54 -0
- data/lib/factpulse/models/invoicing_framework.rb +3 -2
- data/lib/factpulse/models/invoicing_framework_code.rb +2 -2
- data/lib/factpulse/models/line_net_amount.rb +2 -2
- data/lib/factpulse/models/line_sub_type.rb +41 -0
- data/lib/factpulse/models/line_total_amount.rb +2 -2
- data/lib/factpulse/models/{validation_error_loc_inner.rb → location_inner.rb} +3 -3
- data/lib/factpulse/models/mandatory_note_schema.rb +2 -2
- data/lib/factpulse/models/manual_rate.rb +2 -2
- data/lib/factpulse/models/manual_vat_rate.rb +2 -2
- data/lib/factpulse/models/missing_field.rb +2 -2
- data/lib/factpulse/models/operation_nature.rb +2 -2
- data/lib/factpulse/models/output_format.rb +2 -2
- data/lib/factpulse/models/page_dimensions_schema.rb +2 -2
- data/lib/factpulse/models/payee.rb +2 -2
- data/lib/factpulse/models/payment_amount_by_rate.rb +191 -0
- data/lib/factpulse/models/payment_card.rb +2 -2
- data/lib/factpulse/models/payment_means.rb +2 -2
- data/lib/factpulse/models/pdf_validation_result_api.rb +2 -2
- data/lib/factpulse/models/pdp_credentials.rb +2 -2
- data/lib/factpulse/models/percentage.rb +2 -2
- data/lib/factpulse/models/postal_address.rb +2 -2
- data/lib/factpulse/models/price_allowance_amount.rb +2 -2
- data/lib/factpulse/models/price_basis_quantity.rb +2 -2
- data/lib/factpulse/models/processing_options.rb +2 -2
- data/lib/factpulse/models/processing_rule.rb +44 -0
- data/lib/factpulse/models/product_characteristic.rb +2 -2
- data/lib/factpulse/models/product_classification.rb +2 -2
- data/lib/factpulse/models/quantity.rb +2 -2
- data/lib/factpulse/models/rate.rb +104 -0
- data/lib/factpulse/models/rate1.rb +104 -0
- data/lib/factpulse/models/recipient.rb +2 -2
- data/lib/factpulse/models/report_period.rb +193 -0
- data/lib/factpulse/models/report_sender.rb +221 -0
- data/lib/factpulse/models/rounding_amount.rb +2 -2
- data/lib/factpulse/models/routing_code_include.rb +40 -0
- data/lib/factpulse/models/scheme_id.rb +10 -3
- data/lib/factpulse/models/search_flow_request.rb +2 -2
- data/lib/factpulse/models/search_flow_response.rb +2 -2
- data/lib/factpulse/models/search_services_response.rb +5 -2
- data/lib/factpulse/models/search_structure_request.rb +3 -3
- data/lib/factpulse/models/search_structure_response.rb +2 -2
- data/lib/factpulse/models/sellercountry.rb +104 -0
- data/lib/factpulse/models/signature_info.rb +2 -2
- data/lib/factpulse/models/signature_info_api.rb +2 -2
- data/lib/factpulse/models/signature_parameters.rb +2 -2
- data/lib/factpulse/models/simplified_invoice_data.rb +69 -7
- data/lib/factpulse/models/siret_include.rb +39 -0
- data/lib/factpulse/models/structure_info.rb +2 -2
- data/lib/factpulse/models/structure_parameters.rb +2 -2
- data/lib/factpulse/models/structure_service.rb +2 -2
- data/lib/factpulse/models/submission_mode.rb +2 -2
- data/lib/factpulse/models/submit_aggregated_report_request.rb +216 -0
- data/lib/factpulse/models/submit_complete_invoice_request.rb +2 -2
- data/lib/factpulse/models/submit_complete_invoice_response.rb +2 -2
- data/lib/factpulse/models/submit_e_reporting_request.rb +216 -0
- data/lib/factpulse/models/submit_e_reporting_response.rb +306 -0
- data/lib/factpulse/models/submit_flow_request.rb +2 -2
- data/lib/factpulse/models/submit_flow_response.rb +2 -2
- data/lib/factpulse/models/submit_gross_amount.rb +2 -2
- data/lib/factpulse/models/submit_invoice_request.rb +3 -3
- data/lib/factpulse/models/submit_invoice_response.rb +2 -2
- data/lib/factpulse/models/submit_net_amount.rb +2 -2
- data/lib/factpulse/models/submit_vat_amount.rb +2 -2
- data/lib/factpulse/models/supplementary_attachment.rb +7 -2
- data/lib/factpulse/models/supplier.rb +2 -2
- data/lib/factpulse/models/task_response.rb +2 -2
- data/lib/factpulse/models/tax_breakdown_input.rb +217 -0
- data/lib/factpulse/models/tax_due_date_type.rb +44 -0
- data/lib/factpulse/models/tax_representative.rb +2 -2
- data/lib/factpulse/models/taxable_amount.rb +2 -2
- data/lib/factpulse/models/taxableamount0.rb +104 -0
- data/lib/factpulse/models/taxamount.rb +104 -0
- data/lib/factpulse/models/taxamount1.rb +104 -0
- data/lib/factpulse/models/taxamount2.rb +104 -0
- data/lib/factpulse/models/taxexclusiveamount.rb +104 -0
- data/lib/factpulse/models/taxexclusiveamount1.rb +104 -0
- data/lib/factpulse/models/total_gross_amount.rb +2 -2
- data/lib/factpulse/models/total_net_amount.rb +2 -2
- data/lib/factpulse/models/total_vat_amount.rb +2 -2
- data/lib/factpulse/models/transaction_category.rb +42 -0
- data/lib/factpulse/models/transmission_type_code.rb +40 -0
- data/lib/factpulse/models/unit_net_price.rb +2 -2
- data/lib/factpulse/models/unit_of_measure.rb +2 -2
- data/lib/factpulse/models/validate_e_reporting_request.rb +166 -0
- data/lib/factpulse/models/validate_e_reporting_response.rb +271 -0
- data/lib/factpulse/models/validation_error.rb +3 -3
- data/lib/factpulse/models/validation_error_detail.rb +2 -2
- data/lib/factpulse/models/validation_error_response.rb +2 -2
- data/lib/factpulse/models/validation_info.rb +3 -3
- data/lib/factpulse/models/validation_success_response.rb +2 -2
- data/lib/factpulse/models/vat_accounting_code.rb +2 -2
- data/lib/factpulse/models/vat_amount.rb +2 -2
- data/lib/factpulse/models/vat_category.rb +2 -2
- data/lib/factpulse/models/vat_line.rb +2 -2
- data/lib/factpulse/models/vat_point_date_code.rb +2 -2
- data/lib/factpulse/models/vat_rate.rb +2 -2
- data/lib/factpulse/models/verification_success_response.rb +2 -2
- data/lib/factpulse/models/verified_field_schema.rb +2 -2
- data/lib/factpulse/version.rb +3 -3
- data/lib/factpulse.rb +143 -6
- metadata +291 -17
- data/docs/ConvertErrorResponse.md +0 -26
- data/docs/ConvertPendingInputResponse.md +0 -32
- data/lib/factpulse/models/convert_pending_input_response.rb +0 -322
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# FactPulse::AFNORUpdatePatchDirectoryLineBody
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **date_to** | **Date** | Effective end date of the directory line. | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'factpulse'
|
|
13
|
+
|
|
14
|
+
instance = FactPulse::AFNORUpdatePatchDirectoryLineBody.new(
|
|
15
|
+
date_to: 2023-01-31
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# FactPulse::AFNORUpdatePatchRoutingCodeBody
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **routing_identifier_type** | **String** | Routing Identifier type. | [optional] |
|
|
8
|
+
| **routing_code_name** | **String** | Name of the directory line routing code. This attribute is only returned if the directory line is defined at the SIREN / SIRET / Routing code mesh. | [optional] |
|
|
9
|
+
| **administrative_status** | [**AFNORRoutingCodeAdministrativeStatus**](AFNORRoutingCodeAdministrativeStatus.md) | | [optional] |
|
|
10
|
+
| **address** | [**AFNORAddressPatch**](AFNORAddressPatch.md) | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'factpulse'
|
|
16
|
+
|
|
17
|
+
instance = FactPulse::AFNORUpdatePatchRoutingCodeBody.new(
|
|
18
|
+
routing_identifier_type: 0224,
|
|
19
|
+
routing_code_name: Libellé Code routage,
|
|
20
|
+
administrative_status: null,
|
|
21
|
+
address: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# FactPulse::AFNORUpdatePutRoutingCodeBody
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **routing_identifier_type** | **String** | Routing Identifier type. | |
|
|
8
|
+
| **routing_code_name** | **String** | Name of the directory line routing code. This attribute is only returned if the directory line is defined at the SIREN / SIRET / Routing code mesh. | |
|
|
9
|
+
| **administrative_status** | [**AFNORRoutingCodeAdministrativeStatus**](AFNORRoutingCodeAdministrativeStatus.md) | | |
|
|
10
|
+
| **address** | [**AFNORAddressPut**](AFNORAddressPut.md) | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'factpulse'
|
|
16
|
+
|
|
17
|
+
instance = FactPulse::AFNORUpdatePutRoutingCodeBody.new(
|
|
18
|
+
routing_identifier_type: 0224,
|
|
19
|
+
routing_code_name: Libellé Code routage,
|
|
20
|
+
administrative_status: null,
|
|
21
|
+
address: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# FactPulse::AFNORWebhookCallbackContent
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **flow_info** | [**AFNORFlow**](AFNORFlow.md) | | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'factpulse'
|
|
13
|
+
|
|
14
|
+
instance = FactPulse::AFNORWebhookCallbackContent.new(
|
|
15
|
+
flow_info: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# FactPulse::AggregatedPaymentInput
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **payment_date** | **Date** | Payment date | |
|
|
8
|
+
| **currency** | [**Currency**](Currency.md) | | [optional] |
|
|
9
|
+
| **amounts_by_rate** | [**Array<PaymentAmountByRate>**](PaymentAmountByRate.md) | Payment amounts by VAT rate | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'factpulse'
|
|
15
|
+
|
|
16
|
+
instance = FactPulse::AggregatedPaymentInput.new(
|
|
17
|
+
payment_date: 2025-01-15,
|
|
18
|
+
currency: null,
|
|
19
|
+
amounts_by_rate: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# FactPulse::AggregatedTransactionInput
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **date** | **Date** | Transaction date (TT-77) | |
|
|
8
|
+
| **category_code** | [**TransactionCategory**](TransactionCategory.md) | Transaction category code (TT-81). Use TLB1 for goods, TPS1 for services. | |
|
|
9
|
+
| **currency** | [**Currency**](Currency.md) | | [optional] |
|
|
10
|
+
| **tax_exclusive_amount** | [**Taxexclusiveamount**](Taxexclusiveamount.md) | | |
|
|
11
|
+
| **tax_amount** | [**Taxamount**](Taxamount.md) | | |
|
|
12
|
+
| **tax_breakdown** | [**Array<TaxBreakdownInput>**](TaxBreakdownInput.md) | VAT breakdown by rate | |
|
|
13
|
+
| **transaction_count** | **Integer** | | [optional] |
|
|
14
|
+
| **tax_due_type** | [**TaxDueDateType**](TaxDueDateType.md) | | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'factpulse'
|
|
20
|
+
|
|
21
|
+
instance = FactPulse::AggregatedTransactionInput.new(
|
|
22
|
+
date: 2025-01-15,
|
|
23
|
+
category_code: null,
|
|
24
|
+
currency: null,
|
|
25
|
+
tax_exclusive_amount: null,
|
|
26
|
+
tax_amount: null,
|
|
27
|
+
tax_breakdown: null,
|
|
28
|
+
transaction_count: null,
|
|
29
|
+
tax_due_type: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
data/docs/AllowanceCharge.md
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **is_charge** | **Boolean** | True for charge, False for allowance (ChargeIndicator). | |
|
|
8
|
-
| **amount** | [**
|
|
8
|
+
| **amount** | [**Amount1**](Amount1.md) | | |
|
|
9
9
|
| **base_amount** | [**BaseAmount**](BaseAmount.md) | | [optional] |
|
|
10
10
|
| **percentage** | [**Percentage**](Percentage.md) | | [optional] |
|
|
11
11
|
| **reason** | **String** | | [optional] |
|
|
12
|
-
| **reason_code** | **
|
|
13
|
-
| **vat_category** | **
|
|
12
|
+
| **reason_code** | [**AllowanceChargeReasonCode**](AllowanceChargeReasonCode.md) | | [optional] |
|
|
13
|
+
| **vat_category** | [**VATCategory**](VATCategory.md) | | [optional] |
|
|
14
14
|
| **vat_rate** | [**VatRate**](VatRate.md) | | [optional] |
|
|
15
15
|
|
|
16
16
|
## Example
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# FactPulse::AllowanceChargeReasonCode
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
|
|
8
|
+
## Example
|
|
9
|
+
|
|
10
|
+
```ruby
|
|
11
|
+
require 'factpulse'
|
|
12
|
+
|
|
13
|
+
instance = FactPulse::AllowanceChargeReasonCode.new()
|
|
14
|
+
```
|
|
15
|
+
|
data/docs/Amount1.md
ADDED
data/docs/ChorusProApi.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# FactPulse::ChorusProApi
|
|
2
2
|
|
|
3
|
-
All URIs are relative to *
|
|
3
|
+
All URIs are relative to *https://factpulse.fr*
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
@@ -318,7 +318,7 @@ FactPulse.configure do |config|
|
|
|
318
318
|
end
|
|
319
319
|
|
|
320
320
|
api_instance = FactPulse::ChorusProApi.new
|
|
321
|
-
id_structure_cpp = 56 # Integer |
|
|
321
|
+
id_structure_cpp = 56 # Integer | Chorus Pro structure ID (idStructureCPP)
|
|
322
322
|
|
|
323
323
|
begin
|
|
324
324
|
# List structure services
|
|
@@ -351,7 +351,7 @@ end
|
|
|
351
351
|
|
|
352
352
|
| Name | Type | Description | Notes |
|
|
353
353
|
| ---- | ---- | ----------- | ----- |
|
|
354
|
-
| **id_structure_cpp** | **Integer** |
|
|
354
|
+
| **id_structure_cpp** | **Integer** | Chorus Pro structure ID (idStructureCPP) | |
|
|
355
355
|
|
|
356
356
|
### Return type
|
|
357
357
|
|
|
@@ -925,6 +925,8 @@ end
|
|
|
925
925
|
|
|
926
926
|
Consult an invoice (Validator)
|
|
927
927
|
|
|
928
|
+
Retrieves detailed information about an invoice for validators. **Use case**: Called by validators (public sector) to consult invoice details before approving or rejecting it. **Required payload**: ```json { \"idFacture\": 123456789 } ``` **Returns**: Complete invoice details including amounts, dates, attachments, and current status.
|
|
929
|
+
|
|
928
930
|
### Examples
|
|
929
931
|
|
|
930
932
|
```ruby
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# FactPulse::
|
|
1
|
+
# FactPulse::ChorusProCredentials
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
```ruby
|
|
16
16
|
require 'factpulse'
|
|
17
17
|
|
|
18
|
-
instance = FactPulse::
|
|
18
|
+
instance = FactPulse::ChorusProCredentials.new(
|
|
19
19
|
piste_client_id: null,
|
|
20
20
|
piste_client_secret: null,
|
|
21
21
|
chorus_pro_login: null,
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **status** | **String** |
|
|
8
|
-
| **conversion_id** | **String** |
|
|
9
|
-
| **message** | **String** |
|
|
10
|
-
| **extraction** | [**ExtractionInfo**](ExtractionInfo.md) |
|
|
7
|
+
| **status** | **String** | Statut de la conversion | [optional][default to 'validation_failed'] |
|
|
8
|
+
| **conversion_id** | **String** | Identifiant unique de conversion | |
|
|
9
|
+
| **message** | **String** | Message explicatif | [optional][default to 'Donnees extraites avec erreurs de validation. Completez le formulaire et appelez /resume.'] |
|
|
10
|
+
| **extraction** | [**ExtractionInfo**](ExtractionInfo.md) | Informations sur l'extraction OCR | |
|
|
11
11
|
| **extracted_data** | **Hash<String, Object>** | Donnees extraites par OCR au format FacturXInvoice (a completer/corriger) | |
|
|
12
12
|
| **missing_fields** | [**Array<MissingField>**](MissingField.md) | Champs manquants pour conformite Factur-X | [optional] |
|
|
13
|
-
| **validation** | [**ValidationInfo**](ValidationInfo.md) |
|
|
13
|
+
| **validation** | [**ValidationInfo**](ValidationInfo.md) | Resultat de la validation Factur-X | |
|
|
14
14
|
| **resume_url** | **String** | URL pour reprendre la conversion avec corrections | |
|
|
15
15
|
| **expires_at** | **Time** | Expiration de la conversion (1h) | |
|
|
16
16
|
|
data/docs/CountryCode.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# FactPulse::CreateAggregatedReportRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **report_id** | **String** | Report identifier (generated by caller) | |
|
|
8
|
+
| **report_name** | **String** | | [optional] |
|
|
9
|
+
| **transmission_type** | [**TransmissionTypeCode**](TransmissionTypeCode.md) | Transmission type: IN=Initial, RE=Rectificative (TT-4) | [optional] |
|
|
10
|
+
| **sender** | [**ReportSender**](ReportSender.md) | Report sender/declarant | |
|
|
11
|
+
| **period** | [**ReportPeriod**](ReportPeriod.md) | Reporting period | |
|
|
12
|
+
| **invoices** | [**Array<InvoiceInput>**](InvoiceInput.md) | | [optional] |
|
|
13
|
+
| **transactions** | [**Array<AggregatedTransactionInput>**](AggregatedTransactionInput.md) | | [optional] |
|
|
14
|
+
| **invoice_payments** | [**Array<InvoicePaymentInput>**](InvoicePaymentInput.md) | | [optional] |
|
|
15
|
+
| **transaction_payments** | [**Array<AggregatedPaymentInput>**](AggregatedPaymentInput.md) | | [optional] |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'factpulse'
|
|
21
|
+
|
|
22
|
+
instance = FactPulse::CreateAggregatedReportRequest.new(
|
|
23
|
+
report_id: EREPORT-2025-001,
|
|
24
|
+
report_name: null,
|
|
25
|
+
transmission_type: null,
|
|
26
|
+
sender: null,
|
|
27
|
+
period: null,
|
|
28
|
+
invoices: null,
|
|
29
|
+
transactions: null,
|
|
30
|
+
invoice_payments: null,
|
|
31
|
+
transaction_payments: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# FactPulse::CreateEReportingRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **report_id** | **String** | Report identifier (generated by caller) | |
|
|
8
|
+
| **report_name** | **String** | | [optional] |
|
|
9
|
+
| **flow_type** | [**EReportingFlowType**](EReportingFlowType.md) | E-Reporting flux type (for internal routing) | |
|
|
10
|
+
| **transmission_type** | [**TransmissionTypeCode**](TransmissionTypeCode.md) | Transmission type (TT-4 TypeCode): IN=Initial, RE=Rectificative | [optional] |
|
|
11
|
+
| **sender** | [**ReportSender**](ReportSender.md) | Report sender (declarant) | |
|
|
12
|
+
| **period** | [**ReportPeriod**](ReportPeriod.md) | Reporting period | |
|
|
13
|
+
| **invoices** | [**Array<InvoiceInput>**](InvoiceInput.md) | | [optional] |
|
|
14
|
+
| **transactions** | [**Array<AggregatedTransactionInput>**](AggregatedTransactionInput.md) | | [optional] |
|
|
15
|
+
| **invoice_payments** | [**Array<InvoicePaymentInput>**](InvoicePaymentInput.md) | | [optional] |
|
|
16
|
+
| **aggregated_payments** | [**Array<AggregatedPaymentInput>**](AggregatedPaymentInput.md) | | [optional] |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
require 'factpulse'
|
|
22
|
+
|
|
23
|
+
instance = FactPulse::CreateEReportingRequest.new(
|
|
24
|
+
report_id: EREPORT-2025-001,
|
|
25
|
+
report_name: null,
|
|
26
|
+
flow_type: null,
|
|
27
|
+
transmission_type: null,
|
|
28
|
+
sender: null,
|
|
29
|
+
period: null,
|
|
30
|
+
invoices: null,
|
|
31
|
+
transactions: null,
|
|
32
|
+
invoice_payments: null,
|
|
33
|
+
aggregated_payments: null
|
|
34
|
+
)
|
|
35
|
+
```
|
|
36
|
+
|
data/docs/Currency.md
ADDED
data/docs/DocType.md
ADDED
|
@@ -1,91 +1,15 @@
|
|
|
1
1
|
# FactPulse::DocumentConversionApi
|
|
2
2
|
|
|
3
|
-
All URIs are relative to *
|
|
3
|
+
All URIs are relative to *https://factpulse.fr*
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**convert_document_api_v1_convert_post**](DocumentConversionApi.md#convert_document_api_v1_convert_post) | **POST** /api/v1/convert | Convertir un document en Factur-X |
|
|
8
7
|
| [**convert_document_async_api_v1_convert_async_post**](DocumentConversionApi.md#convert_document_async_api_v1_convert_async_post) | **POST** /api/v1/convert/async | Convertir un document en Factur-X (mode asynchrone) |
|
|
9
8
|
| [**download_file_api_v1_convert_conversion_id_download_filename_get**](DocumentConversionApi.md#download_file_api_v1_convert_conversion_id_download_filename_get) | **GET** /api/v1/convert/{conversion_id}/download/{filename} | Télécharger un fichier généré |
|
|
10
9
|
| [**get_conversion_status_api_v1_convert_conversion_id_status_get**](DocumentConversionApi.md#get_conversion_status_api_v1_convert_conversion_id_status_get) | **GET** /api/v1/convert/{conversion_id}/status | Vérifier le statut d'une conversion |
|
|
11
10
|
| [**resume_conversion_api_v1_convert_conversion_id_resume_post**](DocumentConversionApi.md#resume_conversion_api_v1_convert_conversion_id_resume_post) | **POST** /api/v1/convert/{conversion_id}/resume | Reprendre une conversion avec corrections |
|
|
12
11
|
|
|
13
12
|
|
|
14
|
-
## convert_document_api_v1_convert_post
|
|
15
|
-
|
|
16
|
-
> <ConvertSuccessResponse> convert_document_api_v1_convert_post(file, opts)
|
|
17
|
-
|
|
18
|
-
Convertir un document en Factur-X
|
|
19
|
-
|
|
20
|
-
Convertit un document (PDF, DOCX, XLSX, image) en Factur-X conforme. ## Workflow 1. **Upload** : Le document est envoyé en multipart/form-data 2. **Extraction OCR + Classification** : Mistral OCR extrait les données et classifie le document en un seul appel 3. **Enrichissement** : Les données sont enrichies via SIRENE (SIRET → raison sociale) 4. **Validation** : Les règles Schematron sont appliquées 5. **Génération** : Le Factur-X PDF/A-3 est généré ## Réponses possibles - **200** : Conversion réussie, fichiers disponibles - **202** : Données manquantes, complétion requise - **422** : Validation échouée, corrections nécessaires - **400** : Fichier invalide - **429** : Quota dépassé
|
|
21
|
-
|
|
22
|
-
### Examples
|
|
23
|
-
|
|
24
|
-
```ruby
|
|
25
|
-
require 'time'
|
|
26
|
-
require 'factpulse'
|
|
27
|
-
# setup authorization
|
|
28
|
-
FactPulse.configure do |config|
|
|
29
|
-
# Configure Bearer authorization: HTTPBearer
|
|
30
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
api_instance = FactPulse::DocumentConversionApi.new
|
|
34
|
-
file = File.new('/path/to/some/file') # File | Document à convertir (PDF, DOCX, XLSX, JPG, PNG)
|
|
35
|
-
opts = {
|
|
36
|
-
output: 'output_example', # String | Format de sortie: pdf, xml, both
|
|
37
|
-
callback_url: 'callback_url_example' # String |
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
begin
|
|
41
|
-
# Convertir un document en Factur-X
|
|
42
|
-
result = api_instance.convert_document_api_v1_convert_post(file, opts)
|
|
43
|
-
p result
|
|
44
|
-
rescue FactPulse::ApiError => e
|
|
45
|
-
puts "Error when calling DocumentConversionApi->convert_document_api_v1_convert_post: #{e}"
|
|
46
|
-
end
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
#### Using the convert_document_api_v1_convert_post_with_http_info variant
|
|
50
|
-
|
|
51
|
-
This returns an Array which contains the response data, status code and headers.
|
|
52
|
-
|
|
53
|
-
> <Array(<ConvertSuccessResponse>, Integer, Hash)> convert_document_api_v1_convert_post_with_http_info(file, opts)
|
|
54
|
-
|
|
55
|
-
```ruby
|
|
56
|
-
begin
|
|
57
|
-
# Convertir un document en Factur-X
|
|
58
|
-
data, status_code, headers = api_instance.convert_document_api_v1_convert_post_with_http_info(file, opts)
|
|
59
|
-
p status_code # => 2xx
|
|
60
|
-
p headers # => { ... }
|
|
61
|
-
p data # => <ConvertSuccessResponse>
|
|
62
|
-
rescue FactPulse::ApiError => e
|
|
63
|
-
puts "Error when calling DocumentConversionApi->convert_document_api_v1_convert_post_with_http_info: #{e}"
|
|
64
|
-
end
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Parameters
|
|
68
|
-
|
|
69
|
-
| Name | Type | Description | Notes |
|
|
70
|
-
| ---- | ---- | ----------- | ----- |
|
|
71
|
-
| **file** | **File** | Document à convertir (PDF, DOCX, XLSX, JPG, PNG) | |
|
|
72
|
-
| **output** | **String** | Format de sortie: pdf, xml, both | [optional][default to 'pdf'] |
|
|
73
|
-
| **callback_url** | **String** | | [optional] |
|
|
74
|
-
|
|
75
|
-
### Return type
|
|
76
|
-
|
|
77
|
-
[**ConvertSuccessResponse**](ConvertSuccessResponse.md)
|
|
78
|
-
|
|
79
|
-
### Authorization
|
|
80
|
-
|
|
81
|
-
[HTTPBearer](../README.md#HTTPBearer)
|
|
82
|
-
|
|
83
|
-
### HTTP request headers
|
|
84
|
-
|
|
85
|
-
- **Content-Type**: multipart/form-data
|
|
86
|
-
- **Accept**: application/json
|
|
87
|
-
|
|
88
|
-
|
|
89
13
|
## convert_document_async_api_v1_convert_async_post
|
|
90
14
|
|
|
91
15
|
> Object convert_document_async_api_v1_convert_async_post(file, opts)
|
|
@@ -109,7 +33,8 @@ api_instance = FactPulse::DocumentConversionApi.new
|
|
|
109
33
|
file = File.new('/path/to/some/file') # File | Document à convertir (PDF, DOCX, XLSX, JPG, PNG)
|
|
110
34
|
opts = {
|
|
111
35
|
output: 'output_example', # String | Format de sortie: pdf, xml, both
|
|
112
|
-
callback_url: 'callback_url_example' # String |
|
|
36
|
+
callback_url: 'callback_url_example', # String |
|
|
37
|
+
webhook_mode: 'webhook_mode_example' # String | Mode de livraison du contenu: 'inline' (base64 dans webhook) ou 'download_url' (URL temporaire 1h)
|
|
113
38
|
}
|
|
114
39
|
|
|
115
40
|
begin
|
|
@@ -146,6 +71,7 @@ end
|
|
|
146
71
|
| **file** | **File** | Document à convertir (PDF, DOCX, XLSX, JPG, PNG) | |
|
|
147
72
|
| **output** | **String** | Format de sortie: pdf, xml, both | [optional][default to 'pdf'] |
|
|
148
73
|
| **callback_url** | **String** | | [optional] |
|
|
74
|
+
| **webhook_mode** | **String** | Mode de livraison du contenu: 'inline' (base64 dans webhook) ou 'download_url' (URL temporaire 1h) | [optional][default to 'inline'] |
|
|
149
75
|
|
|
150
76
|
### Return type
|
|
151
77
|
|
|
@@ -181,8 +107,8 @@ FactPulse.configure do |config|
|
|
|
181
107
|
end
|
|
182
108
|
|
|
183
109
|
api_instance = FactPulse::DocumentConversionApi.new
|
|
184
|
-
conversion_id = 'conversion_id_example' # String |
|
|
185
|
-
filename = 'filename_example' # String |
|
|
110
|
+
conversion_id = 'conversion_id_example' # String | Conversion ID returned by POST /convert (UUID format)
|
|
111
|
+
filename = 'filename_example' # String | File to download: 'facturx.pdf' or 'facturx.xml'
|
|
186
112
|
|
|
187
113
|
begin
|
|
188
114
|
# Télécharger un fichier généré
|
|
@@ -215,8 +141,8 @@ end
|
|
|
215
141
|
|
|
216
142
|
| Name | Type | Description | Notes |
|
|
217
143
|
| ---- | ---- | ----------- | ----- |
|
|
218
|
-
| **conversion_id** | **String** |
|
|
219
|
-
| **filename** | **String** |
|
|
144
|
+
| **conversion_id** | **String** | Conversion ID returned by POST /convert (UUID format) | |
|
|
145
|
+
| **filename** | **String** | File to download: 'facturx.pdf' or 'facturx.xml' | |
|
|
220
146
|
|
|
221
147
|
### Return type
|
|
222
148
|
|
|
@@ -252,7 +178,7 @@ FactPulse.configure do |config|
|
|
|
252
178
|
end
|
|
253
179
|
|
|
254
180
|
api_instance = FactPulse::DocumentConversionApi.new
|
|
255
|
-
conversion_id = 'conversion_id_example' # String |
|
|
181
|
+
conversion_id = 'conversion_id_example' # String | Conversion ID returned by POST /convert (UUID format)
|
|
256
182
|
|
|
257
183
|
begin
|
|
258
184
|
# Vérifier le statut d'une conversion
|
|
@@ -285,7 +211,7 @@ end
|
|
|
285
211
|
|
|
286
212
|
| Name | Type | Description | Notes |
|
|
287
213
|
| ---- | ---- | ----------- | ----- |
|
|
288
|
-
| **conversion_id** | **String** |
|
|
214
|
+
| **conversion_id** | **String** | Conversion ID returned by POST /convert (UUID format) | |
|
|
289
215
|
|
|
290
216
|
### Return type
|
|
291
217
|
|
|
@@ -321,7 +247,7 @@ FactPulse.configure do |config|
|
|
|
321
247
|
end
|
|
322
248
|
|
|
323
249
|
api_instance = FactPulse::DocumentConversionApi.new
|
|
324
|
-
conversion_id = 'conversion_id_example' # String |
|
|
250
|
+
conversion_id = 'conversion_id_example' # String | Conversion ID returned by POST /convert (UUID format)
|
|
325
251
|
convert_resume_request = FactPulse::ConvertResumeRequest.new # ConvertResumeRequest |
|
|
326
252
|
|
|
327
253
|
begin
|
|
@@ -355,7 +281,7 @@ end
|
|
|
355
281
|
|
|
356
282
|
| Name | Type | Description | Notes |
|
|
357
283
|
| ---- | ---- | ----------- | ----- |
|
|
358
|
-
| **conversion_id** | **String** |
|
|
284
|
+
| **conversion_id** | **String** | Conversion ID returned by POST /convert (UUID format) | |
|
|
359
285
|
| **convert_resume_request** | [**ConvertResumeRequest**](ConvertResumeRequest.md) | | |
|
|
360
286
|
|
|
361
287
|
### Return type
|