factpulse 4.3.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -5
- data/Gemfile.lock +11 -9
- data/README.md +7 -1
- data/docs/AFNORContainsOrStartWithOperator.md +15 -0
- data/docs/AFNORContainsOrStrictOrStartWithOperator.md +15 -0
- data/docs/AFNORDirectoryLinePayloadLegalUnitFacilityRoutingCode.md +4 -0
- data/docs/AFNORDirectoryLinePayloadStatusLegalUnitFacilityRoutingCode.md +2 -0
- data/docs/AFNORDirectoryLineSearchPost200Response.md +1 -1
- data/docs/AFNORFacilityPayloadIncluded.md +2 -0
- data/docs/AFNORFlow.md +2 -2
- data/docs/AFNORLegalUnitPayloadIncluded.md +3 -1
- data/docs/AFNORPDPPAFlowServiceApi.md +3 -133
- data/docs/AFNORRoutingCodeSearch.md +2 -2
- data/docs/AFNORRoutingCodeSearchPost200Response.md +1 -1
- data/docs/AFNORSearchDirectoryLine.md +4 -2
- data/docs/AFNORSearchDirectoryLineSortingInner.md +2 -2
- data/docs/AFNORSearchFlowContent.md +3 -1
- data/docs/AFNORSearchFlowParams.md +3 -1
- data/docs/AFNORSearchSiren.md +1 -1
- data/docs/AFNORSearchSirenFiltersBusinessName.md +1 -1
- data/docs/AFNORSearchSirenSortingInner.md +2 -2
- data/docs/AFNORSearchSiret.md +1 -1
- data/docs/AFNORSearchSiretFiltersAddressLines.md +1 -1
- data/docs/AFNORSearchSiretFiltersLocality.md +1 -1
- data/docs/AFNORSearchSiretFiltersName.md +1 -1
- data/docs/AFNORSearchSiretSortingInner.md +2 -2
- data/docs/AFNORSirenSearchPost200Response.md +1 -1
- data/docs/AFNORSiretSearchPost200Response.md +1 -1
- data/docs/AFNORUniqueDirectoryLineStatus.md +15 -0
- data/docs/AFNORWebhook.md +12 -4
- data/docs/AFNORWebhookIdParam.md +5 -1
- data/docs/AFNORWebhookParams.md +8 -4
- data/docs/AllowanceCharge.md +1 -1
- data/docs/{AFNORAlgorithm.md → Amounteur.md} +2 -2
- data/docs/ChorusProCredentials.md +8 -8
- data/docs/ChorusProDestination.md +1 -1
- data/docs/ClientManagementApi.md +231 -0
- data/docs/CreateCDARRequest.md +3 -1
- data/docs/DeliveryParty.md +2 -2
- data/docs/ElectronicAddressInput.md +20 -0
- data/docs/ElectronicAddressOutput.md +20 -0
- data/docs/EncaisseeRequest.md +3 -1
- data/docs/FactureElectroniqueModelsInvoiceTypeCode.md +15 -0
- data/docs/FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md +26 -0
- data/docs/Flux10EReportingApi.md +18 -8
- data/docs/Flux6InvoiceLifecycleCDARApi.md +39 -19
- data/docs/GetChorusProIdRequest.md +1 -1
- data/docs/GetInvoiceRequest.md +1 -1
- data/docs/GetStructureRequest.md +1 -1
- data/docs/IncomingSupplier.md +4 -2
- data/docs/InvoiceGenerationApi.md +14 -8
- data/docs/InvoiceInput.md +5 -1
- data/docs/{AFNORCallbackAuthentication.md → Invoicedata.md} +9 -9
- data/docs/LifecycleEvent.md +2 -0
- data/docs/Payee.md +2 -2
- data/docs/PaymentAmountByRate.md +4 -2
- data/docs/PostalAddressInput.md +30 -0
- data/docs/PostalAddressOutput.md +30 -0
- data/docs/ProcessingOptions.md +1 -1
- data/docs/Recipient.md +3 -3
- data/docs/ReportSender.md +2 -0
- data/docs/SearchStructureRequest.md +1 -1
- data/docs/SimplifiedInvoiceData.md +3 -3
- data/docs/SubmitCDARRequest.md +2 -0
- data/docs/SubmitCompleteInvoiceRequest.md +1 -1
- data/docs/SubmitInvoiceRequest.md +1 -1
- data/docs/SuperPDPConnectURLResponse.md +18 -0
- data/docs/SuperPDPDisconnectResponse.md +20 -0
- data/docs/SuperPDPStatusResponse.md +26 -0
- data/docs/Supplier.md +5 -3
- data/docs/TaxBreakdownInput.md +7 -1
- data/docs/TaxRepresentative.md +1 -1
- data/docs/{AFNORContainsOperator.md → Taxamounteur.md} +2 -2
- data/factpulse.gemspec +1 -1
- data/lib/factpulse/api/afnorpdppa_api.rb +1 -1
- data/lib/factpulse/api/afnorpdppa_directory_service_api.rb +1 -1
- data/lib/factpulse/api/afnorpdppa_flow_service_api.rb +7 -133
- data/lib/factpulse/api/async_tasks_api.rb +1 -1
- data/lib/factpulse/api/chorus_pro_api.rb +1 -1
- data/lib/factpulse/api/client_management_api.rb +196 -1
- data/lib/factpulse/api/downloads_api.rb +1 -1
- data/lib/factpulse/api/electronic_signature_api.rb +1 -1
- data/lib/factpulse/api/factur_x_conversion_api.rb +1 -1
- data/lib/factpulse/api/factur_x_validation_api.rb +1 -1
- data/lib/factpulse/api/factur_xpdfxml_verification_api.rb +1 -1
- data/lib/factpulse/api/flux10_e_reporting_api.rb +10 -1
- data/lib/factpulse/api/flux6_invoice_lifecycle_cdar_api.rb +25 -3
- data/lib/factpulse/api/health_api.rb +1 -1
- data/lib/factpulse/api/invoice_generation_api.rb +9 -3
- data/lib/factpulse/api/parse_api.rb +1 -1
- data/lib/factpulse/api/references_api.rb +1 -1
- data/lib/factpulse/api/validation_api.rb +1 -1
- data/lib/factpulse/api_client.rb +1 -1
- data/lib/factpulse/api_error.rb +1 -1
- data/lib/factpulse/api_model_base.rb +1 -1
- data/lib/factpulse/configuration.rb +1 -1
- data/lib/factpulse/helpers/client.rb +42 -5
- 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_read.rb +1 -1
- data/lib/factpulse/models/{afnor_contains_operator.rb → afnor_contains_or_start_with_operator.rb} +6 -5
- data/lib/factpulse/models/afnor_contains_or_strict_operator.rb +1 -1
- data/lib/factpulse/models/{afnor_algorithm.rb → afnor_contains_or_strict_or_start_with_operator.rb} +8 -11
- data/lib/factpulse/models/afnor_core_flow_info.rb +6 -6
- data/lib/factpulse/models/afnor_credentials.rb +1 -1
- data/lib/factpulse/models/afnor_destination.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_routing_code.rb +1 -1
- data/lib/factpulse/models/afnor_directory_line_payload_legal_unit_facility_routing_code.rb +51 -2
- data/lib/factpulse/models/afnor_directory_line_payload_status_legal_unit_facility_routing_code.rb +42 -2
- data/lib/factpulse/models/afnor_directory_line_search_post200_response.rb +4 -2
- data/lib/factpulse/models/afnor_directory_line_status.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_error_detail.rb +1 -1
- data/lib/factpulse/models/afnor_facility_administrative_status.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 +11 -2
- data/lib/factpulse/models/afnor_facility_type.rb +1 -1
- data/lib/factpulse/models/afnor_flow.rb +45 -11
- 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_extension.rb +1 -1
- data/lib/factpulse/models/afnor_flow_info.rb +6 -6
- data/lib/factpulse/models/afnor_flow_info_extension.rb +1 -1
- data/lib/factpulse/models/afnor_flow_profile.rb +3 -2
- data/lib/factpulse/models/afnor_flow_syntax.rb +1 -1
- data/lib/factpulse/models/afnor_flow_type.rb +9 -3
- data/lib/factpulse/models/afnor_full_flow_info.rb +11 -11
- data/lib/factpulse/models/afnor_full_flow_info_extension.rb +7 -7
- 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 +14 -5
- data/lib/factpulse/models/afnor_processing_rule.rb +3 -2
- 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_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 +4 -2
- data/lib/factpulse/models/afnor_routing_code_search_sorting_inner.rb +1 -1
- data/lib/factpulse/models/afnor_search_directory_line.rb +35 -2
- 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 +8 -8
- data/lib/factpulse/models/afnor_search_flow_content.rb +34 -2
- data/lib/factpulse/models/afnor_search_flow_filters.rb +6 -6
- data/lib/factpulse/models/afnor_search_flow_params.rb +13 -3
- 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 +2 -2
- 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 +8 -8
- 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 +2 -2
- 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 +2 -2
- data/lib/factpulse/models/afnor_search_siret_filters_name.rb +2 -2
- 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 +8 -8
- data/lib/factpulse/models/afnor_siren_field.rb +1 -1
- data/lib/factpulse/models/afnor_siren_instructions.rb +1 -1
- data/lib/factpulse/models/afnor_siren_search_post200_response.rb +4 -2
- data/lib/factpulse/models/afnor_siret_field.rb +1 -1
- data/lib/factpulse/models/afnor_siret_instructions.rb +1 -1
- data/lib/factpulse/models/afnor_siret_search_post200_response.rb +4 -2
- 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_strict_or_start_with_operator.rb +1 -1
- data/lib/factpulse/models/{facture_electronique_rest_api_schemas_ereporting_invoice_type_code.rb → afnor_unique_directory_line_status.rb} +7 -10
- data/lib/factpulse/models/afnor_webhook.rb +83 -40
- data/lib/factpulse/models/afnor_webhook_id_param.rb +23 -5
- data/lib/factpulse/models/afnor_webhook_params.rb +65 -40
- 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 +2 -2
- 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 +2 -2
- data/lib/factpulse/models/amount1.rb +2 -2
- data/lib/factpulse/models/amount2.rb +2 -2
- data/lib/factpulse/models/amount_due.rb +1 -1
- data/lib/factpulse/models/amounteur.rb +104 -0
- 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 +1 -1
- 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/conversion_error_result.rb +1 -1
- data/lib/factpulse/models/conversion_extraction_info.rb +1 -1
- data/lib/factpulse/models/conversion_pending_input_result.rb +1 -1
- data/lib/factpulse/models/conversion_success_task_result.rb +1 -1
- data/lib/factpulse/models/conversion_task_status.rb +1 -1
- data/lib/factpulse/models/conversion_task_status_result.rb +1 -1
- data/lib/factpulse/models/conversion_validation_failed_result.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 +1 -1
- data/lib/factpulse/models/create_cdar_request.rb +18 -6
- data/lib/factpulse/models/create_e_reporting_request.rb +1 -1
- data/lib/factpulse/models/currency.rb +1 -1
- data/lib/factpulse/models/currency_code.rb +1 -1
- data/lib/factpulse/models/delivery_party.rb +3 -3
- 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 +2 -2
- data/lib/factpulse/models/{afnor_callback_signature.rb → electronic_address_input.rb} +29 -44
- data/lib/factpulse/models/{afnor_callback_parameters.rb → electronic_address_output.rb} +51 -46
- data/lib/factpulse/models/encaisseamount.rb +1 -1
- data/lib/factpulse/models/encaisseamount1.rb +1 -1
- data/lib/factpulse/models/encaissee_request.rb +15 -3
- 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 +1 -1
- data/lib/factpulse/models/extraction_info.rb +1 -1
- data/lib/factpulse/models/factur_x_invoice.rb +1 -1
- data/lib/factpulse/models/factur_xpdf_info.rb +1 -1
- data/lib/factpulse/models/facture_electronique_models_invoice_type_code.rb +54 -0
- 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_processing_chorus_pro_credentials.rb → facture_electronique_rest_api_schemas_chorus_pro_chorus_pro_credentials.rb} +98 -30
- 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 +3 -2
- 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 +9 -3
- 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/generation_success_result.rb +1 -1
- data/lib/factpulse/models/generation_task_status.rb +1 -1
- data/lib/factpulse/models/generation_task_status_result.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 +14 -4
- data/lib/factpulse/models/invoice_format.rb +1 -1
- data/lib/factpulse/models/invoice_input.rb +23 -3
- data/lib/factpulse/models/invoice_lifecycle.rb +1 -1
- 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 +7 -18
- data/lib/factpulse/models/invoice_type_code_output.rb +1 -1
- data/lib/factpulse/models/{afnor_callback_authentication.rb → invoicedata.rb} +5 -5
- 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 +1 -1
- data/lib/factpulse/models/key_rotation_request.rb +1 -1
- data/lib/factpulse/models/key_rotation_response.rb +1 -1
- data/lib/factpulse/models/lifecycle_event.rb +12 -2
- data/lib/factpulse/models/lifecycle_response.rb +1 -1
- 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/parse_factur_x_response.rb +1 -1
- data/lib/factpulse/models/payee.rb +3 -3
- data/lib/factpulse/models/payment_amount_by_rate.rb +15 -5
- 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 +7 -7
- data/lib/factpulse/models/postal_address_input.rb +209 -0
- data/lib/factpulse/models/{afnor_callback_header.rb → postal_address_output.rb} +70 -51
- 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 +2 -2
- data/lib/factpulse/models/processing_rule.rb +3 -2
- 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 +4 -4
- data/lib/factpulse/models/recipient_input.rb +1 -1
- data/lib/factpulse/models/refusee_request.rb +1 -1
- data/lib/factpulse/models/report_issuer.rb +1 -1
- data/lib/factpulse/models/report_period.rb +1 -1
- data/lib/factpulse/models/report_sender.rb +12 -2
- 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 +1 -1
- 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/signature_success_result.rb +1 -1
- data/lib/factpulse/models/signature_task_status.rb +1 -1
- data/lib/factpulse/models/signature_task_status_result.rb +1 -1
- data/lib/factpulse/models/simplified_cdar_response.rb +1 -1
- data/lib/factpulse/models/simplified_invoice_data.rb +5 -5
- 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 +14 -2
- 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 +2 -3
- 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/{afnor_webhook_patch_payload.rb → super_pdp_connect_url_response.rb} +30 -31
- data/lib/factpulse/models/{afnor_basic_authentication.rb → super_pdp_disconnect_response.rb} +38 -35
- data/lib/factpulse/models/super_pdp_status_response.rb +208 -0
- data/lib/factpulse/models/supplementary_attachment.rb +1 -1
- data/lib/factpulse/models/supplier.rb +15 -5
- data/lib/factpulse/models/task_error_result.rb +1 -1
- data/lib/factpulse/models/task_response.rb +1 -1
- data/lib/factpulse/models/tax_breakdown_input.rb +35 -5
- data/lib/factpulse/models/tax_due_date_type.rb +1 -1
- data/lib/factpulse/models/tax_representative.rb +2 -2
- 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/taxamounteur.rb +104 -0
- 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/validation_success_task_result.rb +1 -1
- data/lib/factpulse/models/validation_task_status.rb +1 -1
- data/lib/factpulse/models/validation_task_status_result.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/vatex_code_info.rb +1 -1
- data/lib/factpulse/models/vatex_codes_response.rb +1 -1
- data/lib/factpulse/models/verification_success_response.rb +1 -1
- data/lib/factpulse/models/verification_success_task_result.rb +1 -1
- data/lib/factpulse/models/verification_typed_task_status.rb +1 -1
- data/lib/factpulse/models/verification_typed_task_status_result.rb +1 -1
- data/lib/factpulse/models/verified_field_schema.rb +1 -1
- data/lib/factpulse/models/webhook_secret_delete_response.rb +1 -1
- data/lib/factpulse/models/webhook_secret_generate_response.rb +1 -1
- data/lib/factpulse/models/webhook_secret_status_response.rb +1 -1
- data/lib/factpulse/version.rb +2 -2
- data/lib/factpulse.rb +16 -13
- metadata +32 -26
- data/docs/AFNORBasicAuthentication.md +0 -20
- data/docs/AFNORCallbackHeader.md +0 -20
- data/docs/AFNORCallbackParameters.md +0 -24
- data/docs/AFNORCallbackSignature.md +0 -20
- data/docs/AFNOROAuth2Authentication.md +0 -22
- data/docs/AFNORWebhookMetadata.md +0 -24
- data/docs/AFNORWebhookPatchPayload.md +0 -22
- data/docs/FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode.md +0 -15
- data/docs/FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md +0 -26
- data/lib/factpulse/models/afnor_webhook_metadata.rb +0 -230
- data/lib/factpulse/models/afnoro_auth2_authentication.rb +0 -216
|
@@ -158,7 +158,7 @@ No authorization required
|
|
|
158
158
|
|
|
159
159
|
[Simplified] Get lifecycle events for invoices
|
|
160
160
|
|
|
161
|
-
Returns lifecycle events (CDAR) grouped by invoice reference. **How it works (AFNOR XP Z12-013 compliant):** 1. Searches lifecycle flows on the PDP by flowType + flowDirection + date range 2. Downloads and parses each CDAR XML to extract the invoice reference 3. Groups events by invoice, sorted chronologically **Parameters:** - `days`: Number of days to look back (default: 7) - `invoiceId`: Optional filter on a specific invoice reference **Authentication:** JWT Bearer (recommended) or PDP credentials as query parameters.
|
|
161
|
+
Returns lifecycle events (CDAR) grouped by invoice reference. **How it works (AFNOR XP Z12-013 compliant):** 1. Searches lifecycle flows on the PDP by flowType + flowDirection + date range 2. Downloads and parses each CDAR XML to extract the invoice reference 3. Groups events by invoice, sorted chronologically **Parameters:** - `days`: Number of days to look back (default: 7) - `invoiceId`: Optional filter on a specific invoice reference - `flowDirection`: `All` (default), `In` (statuses received from the counterparty) or `Out` (statuses issued by you or your PA, e.g. 202/203) **Authentication:** JWT Bearer (recommended) or PDP credentials as query parameters.
|
|
162
162
|
|
|
163
163
|
### Examples
|
|
164
164
|
|
|
@@ -175,10 +175,12 @@ api_instance = FactPulse::Flux6InvoiceLifecycleCDARApi.new
|
|
|
175
175
|
opts = {
|
|
176
176
|
days: 56, # Integer | Number of days to look back
|
|
177
177
|
invoice_id: 'invoice_id_example', # String | Filter by invoice reference
|
|
178
|
+
flow_direction: 'In', # String | All (default), In (received statuses) or Out (issued statuses)
|
|
178
179
|
pdp_flow_service_url: 'pdp_flow_service_url_example', # String | PDP Flow Service URL
|
|
179
180
|
pdp_token_url: 'pdp_token_url_example', # String | PDP OAuth token URL
|
|
180
181
|
pdp_client_id: 'pdp_client_id_example', # String | PDP Client ID
|
|
181
|
-
pdp_client_secret: 'pdp_client_secret_example' # String | PDP Client Secret
|
|
182
|
+
pdp_client_secret: 'pdp_client_secret_example', # String | PDP Client Secret
|
|
183
|
+
organization_id: 'organization_id_example' # String | Organization ID relayed to the PDP (AFNOR XP Z12-013 delegation / multi-tenancy). Required by some PDPs to select the client space.
|
|
182
184
|
}
|
|
183
185
|
|
|
184
186
|
begin
|
|
@@ -214,10 +216,12 @@ end
|
|
|
214
216
|
| ---- | ---- | ----------- | ----- |
|
|
215
217
|
| **days** | **Integer** | Number of days to look back | [optional][default to 7] |
|
|
216
218
|
| **invoice_id** | **String** | Filter by invoice reference | [optional] |
|
|
219
|
+
| **flow_direction** | **String** | All (default), In (received statuses) or Out (issued statuses) | [optional][default to 'All'] |
|
|
217
220
|
| **pdp_flow_service_url** | **String** | PDP Flow Service URL | [optional] |
|
|
218
221
|
| **pdp_token_url** | **String** | PDP OAuth token URL | [optional] |
|
|
219
222
|
| **pdp_client_id** | **String** | PDP Client ID | [optional] |
|
|
220
223
|
| **pdp_client_secret** | **String** | PDP Client Secret | [optional] |
|
|
224
|
+
| **organization_id** | **String** | Organization ID relayed to the PDP (AFNOR XP Z12-013 delegation / multi-tenancy). Required by some PDPs to select the client space. | [optional] |
|
|
221
225
|
|
|
222
226
|
### Return type
|
|
223
227
|
|
|
@@ -357,7 +361,7 @@ No authorization required
|
|
|
357
361
|
|
|
358
362
|
## submit_cdar_api_v1_cdar_submit_post
|
|
359
363
|
|
|
360
|
-
> <SubmitCDARResponse> submit_cdar_api_v1_cdar_submit_post(submit_cdar_request)
|
|
364
|
+
> <SubmitCDARResponse> submit_cdar_api_v1_cdar_submit_post(submit_cdar_request, opts)
|
|
361
365
|
|
|
362
366
|
Generate and submit a CDAR message
|
|
363
367
|
|
|
@@ -376,10 +380,13 @@ end
|
|
|
376
380
|
|
|
377
381
|
api_instance = FactPulse::Flux6InvoiceLifecycleCDARApi.new
|
|
378
382
|
submit_cdar_request = FactPulse::SubmitCDARRequest.new({document_id: 'document_id_example', sender_siren: 'sender_siren_example', invoice_id: 'invoice_id_example', invoice_issue_date: Date.today, status: 'status_example'}) # SubmitCDARRequest |
|
|
383
|
+
opts = {
|
|
384
|
+
organization_id: 'organization_id_example' # String | Organization ID relayed to the PDP (AFNOR XP Z12-013 delegation / multi-tenancy). Required by some PDPs to select the client space.
|
|
385
|
+
}
|
|
379
386
|
|
|
380
387
|
begin
|
|
381
388
|
# Generate and submit a CDAR message
|
|
382
|
-
result = api_instance.submit_cdar_api_v1_cdar_submit_post(submit_cdar_request)
|
|
389
|
+
result = api_instance.submit_cdar_api_v1_cdar_submit_post(submit_cdar_request, opts)
|
|
383
390
|
p result
|
|
384
391
|
rescue FactPulse::ApiError => e
|
|
385
392
|
puts "Error when calling Flux6InvoiceLifecycleCDARApi->submit_cdar_api_v1_cdar_submit_post: #{e}"
|
|
@@ -390,12 +397,12 @@ end
|
|
|
390
397
|
|
|
391
398
|
This returns an Array which contains the response data, status code and headers.
|
|
392
399
|
|
|
393
|
-
> <Array(<SubmitCDARResponse>, Integer, Hash)> submit_cdar_api_v1_cdar_submit_post_with_http_info(submit_cdar_request)
|
|
400
|
+
> <Array(<SubmitCDARResponse>, Integer, Hash)> submit_cdar_api_v1_cdar_submit_post_with_http_info(submit_cdar_request, opts)
|
|
394
401
|
|
|
395
402
|
```ruby
|
|
396
403
|
begin
|
|
397
404
|
# Generate and submit a CDAR message
|
|
398
|
-
data, status_code, headers = api_instance.submit_cdar_api_v1_cdar_submit_post_with_http_info(submit_cdar_request)
|
|
405
|
+
data, status_code, headers = api_instance.submit_cdar_api_v1_cdar_submit_post_with_http_info(submit_cdar_request, opts)
|
|
399
406
|
p status_code # => 2xx
|
|
400
407
|
p headers # => { ... }
|
|
401
408
|
p data # => <SubmitCDARResponse>
|
|
@@ -409,6 +416,7 @@ end
|
|
|
409
416
|
| Name | Type | Description | Notes |
|
|
410
417
|
| ---- | ---- | ----------- | ----- |
|
|
411
418
|
| **submit_cdar_request** | [**SubmitCDARRequest**](SubmitCDARRequest.md) | | |
|
|
419
|
+
| **organization_id** | **String** | Organization ID relayed to the PDP (AFNOR XP Z12-013 delegation / multi-tenancy). Required by some PDPs to select the client space. | [optional] |
|
|
412
420
|
|
|
413
421
|
### Return type
|
|
414
422
|
|
|
@@ -426,7 +434,7 @@ end
|
|
|
426
434
|
|
|
427
435
|
## submit_cdar_xml_api_v1_cdar_submit_xml_post
|
|
428
436
|
|
|
429
|
-
> <SubmitCDARResponse> submit_cdar_xml_api_v1_cdar_submit_xml_post(submit_cdarxml_request)
|
|
437
|
+
> <SubmitCDARResponse> submit_cdar_xml_api_v1_cdar_submit_xml_post(submit_cdarxml_request, opts)
|
|
430
438
|
|
|
431
439
|
Submit a pre-generated CDAR XML
|
|
432
440
|
|
|
@@ -445,10 +453,13 @@ end
|
|
|
445
453
|
|
|
446
454
|
api_instance = FactPulse::Flux6InvoiceLifecycleCDARApi.new
|
|
447
455
|
submit_cdarxml_request = FactPulse::SubmitCDARXMLRequest.new({xml: 'xml_example'}) # SubmitCDARXMLRequest |
|
|
456
|
+
opts = {
|
|
457
|
+
organization_id: 'organization_id_example' # String | Organization ID relayed to the PDP (AFNOR XP Z12-013 delegation / multi-tenancy). Required by some PDPs to select the client space.
|
|
458
|
+
}
|
|
448
459
|
|
|
449
460
|
begin
|
|
450
461
|
# Submit a pre-generated CDAR XML
|
|
451
|
-
result = api_instance.submit_cdar_xml_api_v1_cdar_submit_xml_post(submit_cdarxml_request)
|
|
462
|
+
result = api_instance.submit_cdar_xml_api_v1_cdar_submit_xml_post(submit_cdarxml_request, opts)
|
|
452
463
|
p result
|
|
453
464
|
rescue FactPulse::ApiError => e
|
|
454
465
|
puts "Error when calling Flux6InvoiceLifecycleCDARApi->submit_cdar_xml_api_v1_cdar_submit_xml_post: #{e}"
|
|
@@ -459,12 +470,12 @@ end
|
|
|
459
470
|
|
|
460
471
|
This returns an Array which contains the response data, status code and headers.
|
|
461
472
|
|
|
462
|
-
> <Array(<SubmitCDARResponse>, Integer, Hash)> submit_cdar_xml_api_v1_cdar_submit_xml_post_with_http_info(submit_cdarxml_request)
|
|
473
|
+
> <Array(<SubmitCDARResponse>, Integer, Hash)> submit_cdar_xml_api_v1_cdar_submit_xml_post_with_http_info(submit_cdarxml_request, opts)
|
|
463
474
|
|
|
464
475
|
```ruby
|
|
465
476
|
begin
|
|
466
477
|
# Submit a pre-generated CDAR XML
|
|
467
|
-
data, status_code, headers = api_instance.submit_cdar_xml_api_v1_cdar_submit_xml_post_with_http_info(submit_cdarxml_request)
|
|
478
|
+
data, status_code, headers = api_instance.submit_cdar_xml_api_v1_cdar_submit_xml_post_with_http_info(submit_cdarxml_request, opts)
|
|
468
479
|
p status_code # => 2xx
|
|
469
480
|
p headers # => { ... }
|
|
470
481
|
p data # => <SubmitCDARResponse>
|
|
@@ -478,6 +489,7 @@ end
|
|
|
478
489
|
| Name | Type | Description | Notes |
|
|
479
490
|
| ---- | ---- | ----------- | ----- |
|
|
480
491
|
| **submit_cdarxml_request** | [**SubmitCDARXMLRequest**](SubmitCDARXMLRequest.md) | | |
|
|
492
|
+
| **organization_id** | **String** | Organization ID relayed to the PDP (AFNOR XP Z12-013 delegation / multi-tenancy). Required by some PDPs to select the client space. | [optional] |
|
|
481
493
|
|
|
482
494
|
### Return type
|
|
483
495
|
|
|
@@ -495,7 +507,7 @@ end
|
|
|
495
507
|
|
|
496
508
|
## submit_encaissee_api_v1_cdar_encaissee_post
|
|
497
509
|
|
|
498
|
-
> <SimplifiedCDARResponse> submit_encaissee_api_v1_cdar_encaissee_post(encaissee_request)
|
|
510
|
+
> <SimplifiedCDARResponse> submit_encaissee_api_v1_cdar_encaissee_post(encaissee_request, opts)
|
|
499
511
|
|
|
500
512
|
[Simplified] Submit PAID status (212) - Issued invoice
|
|
501
513
|
|
|
@@ -513,11 +525,14 @@ FactPulse.configure do |config|
|
|
|
513
525
|
end
|
|
514
526
|
|
|
515
527
|
api_instance = FactPulse::Flux6InvoiceLifecycleCDARApi.new
|
|
516
|
-
encaissee_request = FactPulse::EncaisseeRequest.new({invoice_id: 'invoice_id_example', invoice_issue_date: Date.today, invoice_buyer_siren: 'invoice_buyer_siren_example', invoice_buyer_electronic_address: 'invoice_buyer_electronic_address_example', amount: FactPulse::
|
|
528
|
+
encaissee_request = FactPulse::EncaisseeRequest.new({invoice_id: 'invoice_id_example', invoice_issue_date: Date.today, invoice_buyer_siren: 'invoice_buyer_siren_example', invoice_buyer_electronic_address: 'invoice_buyer_electronic_address_example', amount: FactPulse::Amount1.new}) # EncaisseeRequest |
|
|
529
|
+
opts = {
|
|
530
|
+
organization_id: 'organization_id_example' # String | Organization ID relayed to the PDP (AFNOR XP Z12-013 delegation / multi-tenancy). Required by some PDPs to select the client space.
|
|
531
|
+
}
|
|
517
532
|
|
|
518
533
|
begin
|
|
519
534
|
# [Simplified] Submit PAID status (212) - Issued invoice
|
|
520
|
-
result = api_instance.submit_encaissee_api_v1_cdar_encaissee_post(encaissee_request)
|
|
535
|
+
result = api_instance.submit_encaissee_api_v1_cdar_encaissee_post(encaissee_request, opts)
|
|
521
536
|
p result
|
|
522
537
|
rescue FactPulse::ApiError => e
|
|
523
538
|
puts "Error when calling Flux6InvoiceLifecycleCDARApi->submit_encaissee_api_v1_cdar_encaissee_post: #{e}"
|
|
@@ -528,12 +543,12 @@ end
|
|
|
528
543
|
|
|
529
544
|
This returns an Array which contains the response data, status code and headers.
|
|
530
545
|
|
|
531
|
-
> <Array(<SimplifiedCDARResponse>, Integer, Hash)> submit_encaissee_api_v1_cdar_encaissee_post_with_http_info(encaissee_request)
|
|
546
|
+
> <Array(<SimplifiedCDARResponse>, Integer, Hash)> submit_encaissee_api_v1_cdar_encaissee_post_with_http_info(encaissee_request, opts)
|
|
532
547
|
|
|
533
548
|
```ruby
|
|
534
549
|
begin
|
|
535
550
|
# [Simplified] Submit PAID status (212) - Issued invoice
|
|
536
|
-
data, status_code, headers = api_instance.submit_encaissee_api_v1_cdar_encaissee_post_with_http_info(encaissee_request)
|
|
551
|
+
data, status_code, headers = api_instance.submit_encaissee_api_v1_cdar_encaissee_post_with_http_info(encaissee_request, opts)
|
|
537
552
|
p status_code # => 2xx
|
|
538
553
|
p headers # => { ... }
|
|
539
554
|
p data # => <SimplifiedCDARResponse>
|
|
@@ -547,6 +562,7 @@ end
|
|
|
547
562
|
| Name | Type | Description | Notes |
|
|
548
563
|
| ---- | ---- | ----------- | ----- |
|
|
549
564
|
| **encaissee_request** | [**EncaisseeRequest**](EncaisseeRequest.md) | | |
|
|
565
|
+
| **organization_id** | **String** | Organization ID relayed to the PDP (AFNOR XP Z12-013 delegation / multi-tenancy). Required by some PDPs to select the client space. | [optional] |
|
|
550
566
|
|
|
551
567
|
### Return type
|
|
552
568
|
|
|
@@ -564,7 +580,7 @@ end
|
|
|
564
580
|
|
|
565
581
|
## submit_refusee_api_v1_cdar_refusee_post
|
|
566
582
|
|
|
567
|
-
> <SimplifiedCDARResponse> submit_refusee_api_v1_cdar_refusee_post(refusee_request)
|
|
583
|
+
> <SimplifiedCDARResponse> submit_refusee_api_v1_cdar_refusee_post(refusee_request, opts)
|
|
568
584
|
|
|
569
585
|
[Simplified] Submit REFUSED status (210) - Received invoice
|
|
570
586
|
|
|
@@ -583,10 +599,13 @@ end
|
|
|
583
599
|
|
|
584
600
|
api_instance = FactPulse::Flux6InvoiceLifecycleCDARApi.new
|
|
585
601
|
refusee_request = FactPulse::RefuseeRequest.new({invoice_id: 'invoice_id_example', invoice_issue_date: Date.today, invoice_seller_siren: 'invoice_seller_siren_example', invoice_seller_electronic_address: 'invoice_seller_electronic_address_example', reason_code: 'reason_code_example'}) # RefuseeRequest |
|
|
602
|
+
opts = {
|
|
603
|
+
organization_id: 'organization_id_example' # String | Organization ID relayed to the PDP (AFNOR XP Z12-013 delegation / multi-tenancy). Required by some PDPs to select the client space.
|
|
604
|
+
}
|
|
586
605
|
|
|
587
606
|
begin
|
|
588
607
|
# [Simplified] Submit REFUSED status (210) - Received invoice
|
|
589
|
-
result = api_instance.submit_refusee_api_v1_cdar_refusee_post(refusee_request)
|
|
608
|
+
result = api_instance.submit_refusee_api_v1_cdar_refusee_post(refusee_request, opts)
|
|
590
609
|
p result
|
|
591
610
|
rescue FactPulse::ApiError => e
|
|
592
611
|
puts "Error when calling Flux6InvoiceLifecycleCDARApi->submit_refusee_api_v1_cdar_refusee_post: #{e}"
|
|
@@ -597,12 +616,12 @@ end
|
|
|
597
616
|
|
|
598
617
|
This returns an Array which contains the response data, status code and headers.
|
|
599
618
|
|
|
600
|
-
> <Array(<SimplifiedCDARResponse>, Integer, Hash)> submit_refusee_api_v1_cdar_refusee_post_with_http_info(refusee_request)
|
|
619
|
+
> <Array(<SimplifiedCDARResponse>, Integer, Hash)> submit_refusee_api_v1_cdar_refusee_post_with_http_info(refusee_request, opts)
|
|
601
620
|
|
|
602
621
|
```ruby
|
|
603
622
|
begin
|
|
604
623
|
# [Simplified] Submit REFUSED status (210) - Received invoice
|
|
605
|
-
data, status_code, headers = api_instance.submit_refusee_api_v1_cdar_refusee_post_with_http_info(refusee_request)
|
|
624
|
+
data, status_code, headers = api_instance.submit_refusee_api_v1_cdar_refusee_post_with_http_info(refusee_request, opts)
|
|
606
625
|
p status_code # => 2xx
|
|
607
626
|
p headers # => { ... }
|
|
608
627
|
p data # => <SimplifiedCDARResponse>
|
|
@@ -616,6 +635,7 @@ end
|
|
|
616
635
|
| Name | Type | Description | Notes |
|
|
617
636
|
| ---- | ---- | ----------- | ----- |
|
|
618
637
|
| **refusee_request** | [**RefuseeRequest**](RefuseeRequest.md) | | |
|
|
638
|
+
| **organization_id** | **String** | Organization ID relayed to the PDP (AFNOR XP Z12-013 delegation / multi-tenancy). Required by some PDPs to select the client space. | [optional] |
|
|
619
639
|
|
|
620
640
|
### Return type
|
|
621
641
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **credentials** | [**
|
|
7
|
+
| **credentials** | [**FactureElectroniqueRestApiSchemasChorusProChorusProCredentials**](FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md) | | [optional] |
|
|
8
8
|
| **siret** | **String** | Structure SIRET (14 digits) | |
|
|
9
9
|
| **identifier_type** | **String** | Identifier type (SIRET, SIREN, UE_HORS_FRANCE, etc.) | [optional][default to 'SIRET'] |
|
|
10
10
|
|
data/docs/GetInvoiceRequest.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **credentials** | [**
|
|
7
|
+
| **credentials** | [**FactureElectroniqueRestApiSchemasChorusProChorusProCredentials**](FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md) | | [optional] |
|
|
8
8
|
| **chorus_invoice_id** | **Integer** | Chorus Pro invoice ID | |
|
|
9
9
|
|
|
10
10
|
## Example
|
data/docs/GetStructureRequest.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **credentials** | [**
|
|
7
|
+
| **credentials** | [**FactureElectroniqueRestApiSchemasChorusProChorusProCredentials**](FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md) | | [optional] |
|
|
8
8
|
| **structure_id** | **Integer** | Chorus Pro structure ID | |
|
|
9
9
|
| **language_code** | **String** | Language code (fr, en) | [optional][default to 'fr'] |
|
|
10
10
|
|
data/docs/IncomingSupplier.md
CHANGED
|
@@ -8,8 +8,9 @@
|
|
|
8
8
|
| **siren** | **String** | | [optional] |
|
|
9
9
|
| **siret** | **String** | | [optional] |
|
|
10
10
|
| **vat_number** | **String** | | [optional] |
|
|
11
|
-
| **
|
|
12
|
-
| **
|
|
11
|
+
| **tax_registration_id** | **String** | | [optional] |
|
|
12
|
+
| **postal_address** | [**PostalAddressOutput**](PostalAddressOutput.md) | | [optional] |
|
|
13
|
+
| **electronic_address** | [**ElectronicAddressOutput**](ElectronicAddressOutput.md) | | [optional] |
|
|
13
14
|
| **email** | **String** | | [optional] |
|
|
14
15
|
| **phone** | **String** | | [optional] |
|
|
15
16
|
|
|
@@ -23,6 +24,7 @@ instance = FactPulse::IncomingSupplier.new(
|
|
|
23
24
|
siren: null,
|
|
24
25
|
siret: null,
|
|
25
26
|
vat_number: null,
|
|
27
|
+
tax_registration_id: null,
|
|
26
28
|
postal_address: null,
|
|
27
29
|
electronic_address: null,
|
|
28
30
|
email: null,
|
|
@@ -101,11 +101,11 @@ end
|
|
|
101
101
|
|
|
102
102
|
## submit_complete_invoice_api_v1_processing_invoices_submit_complete_post
|
|
103
103
|
|
|
104
|
-
> <SubmitCompleteInvoiceResponse> submit_complete_invoice_api_v1_processing_invoices_submit_complete_post(submit_complete_invoice_request)
|
|
104
|
+
> <SubmitCompleteInvoiceResponse> submit_complete_invoice_api_v1_processing_invoices_submit_complete_post(submit_complete_invoice_request, opts)
|
|
105
105
|
|
|
106
106
|
Submit a complete invoice (generation + signature + submission)
|
|
107
107
|
|
|
108
|
-
Unified endpoint to submit a complete invoice to different destinations. **Facture prête pour Flux 2** - Génère une facture Factur-X complète avec signature optionnelle et soumission vers Chorus Pro ou PDP AFNOR. **Automated workflow:** 1. **Auto-enrichment** (optional): retrieves data via public APIs and Chorus Pro/AFNOR 2. **Factur-X PDF generation**: creates a PDF/A-3 with embedded XML 3. **Electronic signature** (optional): signs the PDF with a certificate 4. **Submission**: sends to the chosen destination (Chorus Pro or AFNOR PDP) **Supported destinations:** - **Chorus Pro**: French B2G platform (invoices to public sector) - **AFNOR PDP**: Partner Dematerialization Platforms **Destination credentials - 2 modes available:** **Mode 1 - Retrieval via JWT (recommended):** - Credentials are retrieved automatically via the JWT `client_uid` - Do not provide the `credentials` field in `destination` - Zero-trust architecture: no secrets in the payload - Example: `\"destination\": {\"type\": \"chorus_pro\"}` **Mode 2 - Credentials in the payload:** - Provide credentials directly in the payload - Useful for tests or third-party integrations - Example: `\"destination\": {\"type\": \"chorus_pro\", \"credentials\": {...}}` **Electronic signature (optional) - 2 modes available:** **Mode 1 - Stored certificate (recommended):** - Certificate is retrieved automatically via the JWT `client_uid` - No key to provide in the payload - PAdES-B-LT signature with timestamp (eIDAS compliant) - Example: `\"signature\": {\"reason\": \"Factur-X compliance\"}` **Mode 2 - Keys in the payload (for tests):** - Provide `key_pem` and `cert_pem` directly - PEM format accepted: raw or base64 - Useful for tests or special cases without stored certificate - Example: `\"signature\": {\"key_pem\": \"-----BEGIN...\", \"cert_pem\": \"-----BEGIN...\"}` If `key_pem` and `cert_pem` are provided → Mode 2 Otherwise → Mode 1 (certificate retrieved via `client_uid`)
|
|
108
|
+
Unified endpoint to submit a complete invoice to different destinations. **Facture prête pour Flux 2** - Génère une facture Factur-X complète avec signature optionnelle et soumission vers Chorus Pro ou PDP AFNOR. **Automated workflow:** 1. **Auto-enrichment** (optional): retrieves data via public APIs and Chorus Pro/AFNOR 2. **Factur-X PDF generation**: creates a PDF/A-3 with embedded XML 3. **Electronic signature** (optional): signs the PDF with a certificate 4. **Submission**: sends to the chosen destination (Chorus Pro or AFNOR PDP) **Two accepted `invoiceData` formats, detected automatically** (same rule as `/generate-invoice`): - **Simplified format** (`number` + `lines`): totals, VAT and dates are computed. Any field of the complete model may be added on top (`deliveryDate` BT-72, `deliveryParty` BG-15, `paymentReference` BT-83, `supplier.bic` BT-86, ...). - **Complete format** (`invoiceLines` present): full `FacturXInvoice` structure, used as provided. A non-compliant invoice is **not submitted**: the Schematron errors are returned as a 400 `SCHEMATRON_VALIDATION_FAILED`, rather than a 200 followed by an asynchronous rejection by the PA. This includes the empty-element rule (PEPPOL-EN16931-R008), which the PAs apply as blocking. **Supported destinations:** - **Chorus Pro**: French B2G platform (invoices to public sector) - **AFNOR PDP**: Partner Dematerialization Platforms **Destination credentials - 2 modes available:** **Mode 1 - Retrieval via JWT (recommended):** - Credentials are retrieved automatically via the JWT `client_uid` - Do not provide the `credentials` field in `destination` - Zero-trust architecture: no secrets in the payload - Example: `\"destination\": {\"type\": \"chorus_pro\"}` **Mode 2 - Credentials in the payload:** - Provide credentials directly in the payload - Useful for tests or third-party integrations - Example: `\"destination\": {\"type\": \"chorus_pro\", \"credentials\": {...}}` **Electronic signature (optional) - 2 modes available:** **Mode 1 - Stored certificate (recommended):** - Certificate is retrieved automatically via the JWT `client_uid` - No key to provide in the payload - PAdES-B-LT signature with timestamp (eIDAS compliant) - Example: `\"signature\": {\"reason\": \"Factur-X compliance\"}` **Mode 2 - Keys in the payload (for tests):** - Provide `key_pem` and `cert_pem` directly - PEM format accepted: raw or base64 - Useful for tests or special cases without stored certificate - Example: `\"signature\": {\"key_pem\": \"-----BEGIN...\", \"cert_pem\": \"-----BEGIN...\"}` If `key_pem` and `cert_pem` are provided → Mode 2 Otherwise → Mode 1 (certificate retrieved via `client_uid`)
|
|
109
109
|
|
|
110
110
|
### Examples
|
|
111
111
|
|
|
@@ -124,11 +124,14 @@ FactPulse.configure do |config|
|
|
|
124
124
|
end
|
|
125
125
|
|
|
126
126
|
api_instance = FactPulse::InvoiceGenerationApi.new
|
|
127
|
-
submit_complete_invoice_request = FactPulse::SubmitCompleteInvoiceRequest.new({invoice_data: FactPulse::
|
|
127
|
+
submit_complete_invoice_request = FactPulse::SubmitCompleteInvoiceRequest.new({invoice_data: FactPulse::FacturXInvoice.new({invoice_number: 'invoice_number_example', payment_due_date: 'payment_due_date_example', recipient: FactPulse::Recipient.new, supplier: FactPulse::Supplier.new, references: FactPulse::InvoiceReferences.new({payment_means: FactPulse::PaymentMeans::CHEQUE, invoice_type: FactPulse::InvoiceTypeCode::N380, vat_accounting_code: FactPulse::VATAccountingCode::TVA_SUR_DEBIT}), totals: FactPulse::InvoiceTotals.new({total_net_amount: FactPulse::TotalNetAmount.new, vat_amount: FactPulse::TotalVATAmount.new, total_gross_amount: FactPulse::TotalGrossAmount.new, amount_due: FactPulse::AmountDue.new})}), source_pdf: 'source_pdf_example', destination: FactPulse::AFNORDestination.new}) # SubmitCompleteInvoiceRequest |
|
|
128
|
+
opts = {
|
|
129
|
+
organization_id: 'organization_id_example' # String | Organization ID relayed to the PDP (AFNOR XP Z12-013 delegation / multi-tenancy). Required by some PDPs to select the client space.
|
|
130
|
+
}
|
|
128
131
|
|
|
129
132
|
begin
|
|
130
133
|
# Submit a complete invoice (generation + signature + submission)
|
|
131
|
-
result = api_instance.submit_complete_invoice_api_v1_processing_invoices_submit_complete_post(submit_complete_invoice_request)
|
|
134
|
+
result = api_instance.submit_complete_invoice_api_v1_processing_invoices_submit_complete_post(submit_complete_invoice_request, opts)
|
|
132
135
|
p result
|
|
133
136
|
rescue FactPulse::ApiError => e
|
|
134
137
|
puts "Error when calling InvoiceGenerationApi->submit_complete_invoice_api_v1_processing_invoices_submit_complete_post: #{e}"
|
|
@@ -139,12 +142,12 @@ end
|
|
|
139
142
|
|
|
140
143
|
This returns an Array which contains the response data, status code and headers.
|
|
141
144
|
|
|
142
|
-
> <Array(<SubmitCompleteInvoiceResponse>, Integer, Hash)> submit_complete_invoice_api_v1_processing_invoices_submit_complete_post_with_http_info(submit_complete_invoice_request)
|
|
145
|
+
> <Array(<SubmitCompleteInvoiceResponse>, Integer, Hash)> submit_complete_invoice_api_v1_processing_invoices_submit_complete_post_with_http_info(submit_complete_invoice_request, opts)
|
|
143
146
|
|
|
144
147
|
```ruby
|
|
145
148
|
begin
|
|
146
149
|
# Submit a complete invoice (generation + signature + submission)
|
|
147
|
-
data, status_code, headers = api_instance.submit_complete_invoice_api_v1_processing_invoices_submit_complete_post_with_http_info(submit_complete_invoice_request)
|
|
150
|
+
data, status_code, headers = api_instance.submit_complete_invoice_api_v1_processing_invoices_submit_complete_post_with_http_info(submit_complete_invoice_request, opts)
|
|
148
151
|
p status_code # => 2xx
|
|
149
152
|
p headers # => { ... }
|
|
150
153
|
p data # => <SubmitCompleteInvoiceResponse>
|
|
@@ -158,6 +161,7 @@ end
|
|
|
158
161
|
| Name | Type | Description | Notes |
|
|
159
162
|
| ---- | ---- | ----------- | ----- |
|
|
160
163
|
| **submit_complete_invoice_request** | [**SubmitCompleteInvoiceRequest**](SubmitCompleteInvoiceRequest.md) | | |
|
|
164
|
+
| **organization_id** | **String** | Organization ID relayed to the PDP (AFNOR XP Z12-013 delegation / multi-tenancy). Required by some PDPs to select the client space. | [optional] |
|
|
161
165
|
|
|
162
166
|
### Return type
|
|
163
167
|
|
|
@@ -198,10 +202,11 @@ FactPulse.configure do |config|
|
|
|
198
202
|
end
|
|
199
203
|
|
|
200
204
|
api_instance = FactPulse::InvoiceGenerationApi.new
|
|
201
|
-
submit_complete_invoice_request = FactPulse::SubmitCompleteInvoiceRequest.new({invoice_data: FactPulse::
|
|
205
|
+
submit_complete_invoice_request = FactPulse::SubmitCompleteInvoiceRequest.new({invoice_data: FactPulse::FacturXInvoice.new({invoice_number: 'invoice_number_example', payment_due_date: 'payment_due_date_example', recipient: FactPulse::Recipient.new, supplier: FactPulse::Supplier.new, references: FactPulse::InvoiceReferences.new({payment_means: FactPulse::PaymentMeans::CHEQUE, invoice_type: FactPulse::InvoiceTypeCode::N380, vat_accounting_code: FactPulse::VATAccountingCode::TVA_SUR_DEBIT}), totals: FactPulse::InvoiceTotals.new({total_net_amount: FactPulse::TotalNetAmount.new, vat_amount: FactPulse::TotalVATAmount.new, total_gross_amount: FactPulse::TotalGrossAmount.new, amount_due: FactPulse::AmountDue.new})}), source_pdf: 'source_pdf_example', destination: FactPulse::AFNORDestination.new}) # SubmitCompleteInvoiceRequest |
|
|
202
206
|
opts = {
|
|
203
207
|
callback_url: 'callback_url_example', # String | Webhook URL for async notification when submission completes.
|
|
204
|
-
webhook_mode: 'webhook_mode_example' # String | Webhook content delivery: 'inline' (base64 in payload) or 'download_url' (temporary URL, 1h TTL)
|
|
208
|
+
webhook_mode: 'webhook_mode_example', # String | Webhook content delivery: 'inline' (base64 in payload) or 'download_url' (temporary URL, 1h TTL)
|
|
209
|
+
organization_id: 'organization_id_example' # String | Organization ID relayed to the PDP (AFNOR XP Z12-013 delegation / multi-tenancy). Required by some PDPs to select the client space.
|
|
205
210
|
}
|
|
206
211
|
|
|
207
212
|
begin
|
|
@@ -238,6 +243,7 @@ end
|
|
|
238
243
|
| **submit_complete_invoice_request** | [**SubmitCompleteInvoiceRequest**](SubmitCompleteInvoiceRequest.md) | | |
|
|
239
244
|
| **callback_url** | **String** | Webhook URL for async notification when submission completes. | [optional] |
|
|
240
245
|
| **webhook_mode** | **String** | Webhook content delivery: 'inline' (base64 in payload) or 'download_url' (temporary URL, 1h TTL) | [optional][default to 'inline'] |
|
|
246
|
+
| **organization_id** | **String** | Organization ID relayed to the PDP (AFNOR XP Z12-013 delegation / multi-tenancy). Required by some PDPs to select the client space. | [optional] |
|
|
241
247
|
|
|
242
248
|
### Return type
|
|
243
249
|
|
data/docs/InvoiceInput.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **invoice_id** | **String** | Invoice identifier | |
|
|
8
8
|
| **issue_date** | **Date** | Invoice issue date | |
|
|
9
|
-
| **type_code** | [**
|
|
9
|
+
| **type_code** | [**InvoiceTypeCode**](InvoiceTypeCode.md) | Invoice type code | [optional] |
|
|
10
10
|
| **currency** | [**Currency**](Currency.md) | | [optional] |
|
|
11
11
|
| **due_date** | **Date** | | [optional] |
|
|
12
12
|
| **seller_id** | **String** | | [optional] |
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
| **tax_exclusive_amount** | [**Taxexclusiveamount1**](Taxexclusiveamount1.md) | | |
|
|
20
20
|
| **tax_amount** | [**Taxamount1**](Taxamount1.md) | | |
|
|
21
21
|
| **tax_breakdown** | [**Array<TaxBreakdownInput>**](TaxBreakdownInput.md) | VAT breakdown | |
|
|
22
|
+
| **tax_amount_eur** | [**Taxamounteur**](Taxamounteur.md) | | [optional] |
|
|
23
|
+
| **business_process_id** | **String** | | [optional] |
|
|
22
24
|
| **referenced_invoice_id** | **String** | | [optional] |
|
|
23
25
|
| **referenced_invoice_date** | **Date** | | [optional] |
|
|
24
26
|
|
|
@@ -43,6 +45,8 @@ instance = FactPulse::InvoiceInput.new(
|
|
|
43
45
|
tax_exclusive_amount: null,
|
|
44
46
|
tax_amount: null,
|
|
45
47
|
tax_breakdown: null,
|
|
48
|
+
tax_amount_eur: null,
|
|
49
|
+
business_process_id: null,
|
|
46
50
|
referenced_invoice_id: null,
|
|
47
51
|
referenced_invoice_date: null
|
|
48
52
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# FactPulse::
|
|
1
|
+
# FactPulse::Invoicedata
|
|
2
2
|
|
|
3
3
|
## Class instance methods
|
|
4
4
|
|
|
@@ -11,11 +11,11 @@ Returns the list of classes defined in oneOf.
|
|
|
11
11
|
```ruby
|
|
12
12
|
require 'factpulse'
|
|
13
13
|
|
|
14
|
-
FactPulse::
|
|
14
|
+
FactPulse::Invoicedata.openapi_one_of
|
|
15
15
|
# =>
|
|
16
16
|
# [
|
|
17
|
-
# :'
|
|
18
|
-
# :'
|
|
17
|
+
# :'FacturXInvoice',
|
|
18
|
+
# :'SimplifiedInvoiceData'
|
|
19
19
|
# ]
|
|
20
20
|
```
|
|
21
21
|
|
|
@@ -28,10 +28,10 @@ Find the appropriate object from the `openapi_one_of` list and casts the data in
|
|
|
28
28
|
```ruby
|
|
29
29
|
require 'factpulse'
|
|
30
30
|
|
|
31
|
-
FactPulse::
|
|
32
|
-
# => #<
|
|
31
|
+
FactPulse::Invoicedata.build(data)
|
|
32
|
+
# => #<FacturXInvoice:0x00007fdd4aab02a0>
|
|
33
33
|
|
|
34
|
-
FactPulse::
|
|
34
|
+
FactPulse::Invoicedata.build(data_that_doesnt_match)
|
|
35
35
|
# => nil
|
|
36
36
|
```
|
|
37
37
|
|
|
@@ -43,7 +43,7 @@ FactPulse::AFNORCallbackAuthentication.build(data_that_doesnt_match)
|
|
|
43
43
|
|
|
44
44
|
#### Return type
|
|
45
45
|
|
|
46
|
-
- `
|
|
47
|
-
- `
|
|
46
|
+
- `FacturXInvoice`
|
|
47
|
+
- `SimplifiedInvoiceData`
|
|
48
48
|
- `nil` (if no type matches)
|
|
49
49
|
|
data/docs/LifecycleEvent.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
| **status_code** | **String** | Code statut (200-601) | |
|
|
9
9
|
| **status_description** | **String** | | [optional] |
|
|
10
10
|
| **ack_status** | **String** | | [optional] |
|
|
11
|
+
| **flow_direction** | **String** | | [optional] |
|
|
11
12
|
| **at** | **String** | | [optional] |
|
|
12
13
|
| **document_id** | **String** | | [optional] |
|
|
13
14
|
| **amount** | **String** | | [optional] |
|
|
@@ -26,6 +27,7 @@ instance = FactPulse::LifecycleEvent.new(
|
|
|
26
27
|
status_code: null,
|
|
27
28
|
status_description: null,
|
|
28
29
|
ack_status: null,
|
|
30
|
+
flow_direction: null,
|
|
29
31
|
at: null,
|
|
30
32
|
document_id: null,
|
|
31
33
|
amount: null,
|
data/docs/Payee.md
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
| **payee_id** | **String** | | [optional] |
|
|
9
9
|
| **siret** | **String** | | [optional] |
|
|
10
10
|
| **siren** | **String** | | [optional] |
|
|
11
|
-
| **electronic_address** | [**
|
|
11
|
+
| **electronic_address** | [**ElectronicAddressInput**](ElectronicAddressInput.md) | | [optional] |
|
|
12
12
|
| **iban** | **String** | | [optional] |
|
|
13
13
|
| **bic** | **String** | | [optional] |
|
|
14
|
-
| **global_ids** | [**Array<
|
|
14
|
+
| **global_ids** | [**Array<ElectronicAddressInput>**](ElectronicAddressInput.md) | | [optional] |
|
|
15
15
|
|
|
16
16
|
## Example
|
|
17
17
|
|
data/docs/PaymentAmountByRate.md
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **rate** | [**Rate**](Rate.md) | | |
|
|
8
|
-
| **amount** | [**
|
|
8
|
+
| **amount** | [**Amount2**](Amount2.md) | | |
|
|
9
|
+
| **amount_eur** | [**Amounteur**](Amounteur.md) | | [optional] |
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
@@ -14,7 +15,8 @@ require 'factpulse'
|
|
|
14
15
|
|
|
15
16
|
instance = FactPulse::PaymentAmountByRate.new(
|
|
16
17
|
rate: null,
|
|
17
|
-
amount: null
|
|
18
|
+
amount: null,
|
|
19
|
+
amount_eur: null
|
|
18
20
|
)
|
|
19
21
|
```
|
|
20
22
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# FactPulse::PostalAddressInput
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **postal_code** | **String** | | [optional] |
|
|
8
|
+
| **line_one** | **String** | | [optional] |
|
|
9
|
+
| **line_two** | **String** | | [optional] |
|
|
10
|
+
| **line_three** | **String** | | [optional] |
|
|
11
|
+
| **city** | **String** | | [optional] |
|
|
12
|
+
| **country_code** | **String** | | [optional] |
|
|
13
|
+
| **country_subdivision** | **String** | | [optional] |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'factpulse'
|
|
19
|
+
|
|
20
|
+
instance = FactPulse::PostalAddressInput.new(
|
|
21
|
+
postal_code: null,
|
|
22
|
+
line_one: null,
|
|
23
|
+
line_two: null,
|
|
24
|
+
line_three: null,
|
|
25
|
+
city: null,
|
|
26
|
+
country_code: null,
|
|
27
|
+
country_subdivision: null
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# FactPulse::PostalAddressOutput
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **postal_code** | **String** | | [optional] |
|
|
8
|
+
| **line_one** | **String** | | [optional] |
|
|
9
|
+
| **line_two** | **String** | | [optional] |
|
|
10
|
+
| **line_three** | **String** | | [optional] |
|
|
11
|
+
| **city** | **String** | | [optional] |
|
|
12
|
+
| **country_code** | **String** | | [optional] |
|
|
13
|
+
| **country_subdivision** | **String** | | [optional] |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'factpulse'
|
|
19
|
+
|
|
20
|
+
instance = FactPulse::PostalAddressOutput.new(
|
|
21
|
+
postal_code: null,
|
|
22
|
+
line_one: null,
|
|
23
|
+
line_two: null,
|
|
24
|
+
line_three: null,
|
|
25
|
+
city: null,
|
|
26
|
+
country_code: null,
|
|
27
|
+
country_subdivision: null
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
data/docs/ProcessingOptions.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **facturx_profile** | [**APIProfile**](APIProfile.md) | Factur-X profile to use | [optional] |
|
|
8
|
-
| **auto_enrich** | **Boolean** | Auto-enrich data (Company APIs, Chorus Pro, etc.) | [optional][default to true] |
|
|
8
|
+
| **auto_enrich** | **Boolean** | Auto-enrich data (Company APIs, Chorus Pro, etc.). Applies to the **simplified format** only: a complete `FacturXInvoice` payload is used exactly as provided. | [optional][default to true] |
|
|
9
9
|
| **validate_xml** | **Boolean** | Validate Factur-X XML with Schematron | [optional][default to true] |
|
|
10
10
|
| **verify_destination_parameters** | **Boolean** | Verify required parameters for destination (e.g., service_code for Chorus) | [optional][default to true] |
|
|
11
11
|
|
data/docs/Recipient.md
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **electronic_address** | [**
|
|
7
|
+
| **electronic_address** | [**ElectronicAddressInput**](ElectronicAddressInput.md) | | [optional] |
|
|
8
8
|
| **executing_service_code** | **String** | | [optional] |
|
|
9
9
|
| **name** | **String** | | [optional] |
|
|
10
10
|
| **siren** | **String** | | [optional] |
|
|
11
11
|
| **siret** | **String** | | [optional] |
|
|
12
12
|
| **vat_number** | **String** | | [optional] |
|
|
13
|
-
| **postal_address** | [**
|
|
13
|
+
| **postal_address** | [**PostalAddressInput**](PostalAddressInput.md) | | [optional] |
|
|
14
14
|
| **contact** | [**Contact**](Contact.md) | | [optional] |
|
|
15
|
-
| **global_ids** | [**Array<
|
|
15
|
+
| **global_ids** | [**Array<ElectronicAddressInput>**](ElectronicAddressInput.md) | | [optional] |
|
|
16
16
|
|
|
17
17
|
## Example
|
|
18
18
|
|
data/docs/ReportSender.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **siren** | **String** | SIREN or SIRET number of the sender (PA or company) | |
|
|
8
8
|
| **name** | **String** | Company name | |
|
|
9
|
+
| **scheme_id** | **String** | | [optional] |
|
|
9
10
|
| **vat_id** | **String** | | [optional] |
|
|
10
11
|
|
|
11
12
|
## Example
|
|
@@ -16,6 +17,7 @@ require 'factpulse'
|
|
|
16
17
|
instance = FactPulse::ReportSender.new(
|
|
17
18
|
siren: 123456789,
|
|
18
19
|
name: Ma Société SARL,
|
|
20
|
+
scheme_id: null,
|
|
19
21
|
vat_id: null
|
|
20
22
|
)
|
|
21
23
|
```
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **credentials** | [**
|
|
7
|
+
| **credentials** | [**FactureElectroniqueRestApiSchemasChorusProChorusProCredentials**](FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md) | | [optional] |
|
|
8
8
|
| **structure_identifier** | **String** | | [optional] |
|
|
9
9
|
| **structure_identifier_type** | **String** | | [optional] |
|
|
10
10
|
| **company_name** | **String** | | [optional] |
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **number** | **String** | Unique invoice number | |
|
|
8
|
-
| **supplier** | **Hash<String, Object>** | Supplier information (siret, iban, ...) | |
|
|
9
|
-
| **recipient** | **Hash<String, Object>** | Recipient information (siret, ...) | |
|
|
8
|
+
| **supplier** | **Hash<String, Object>** | Supplier information (siret, iban, bic, routingAddress, ...). For a seller without an intra-community VAT number (VAT franchise, article 293 B of the CGI), provide `taxRegistrationId` (BT-32, usually the SIREN): it satisfies BR-E-02 and prevents BT-31 from being auto-calculated. | |
|
|
9
|
+
| **recipient** | **Hash<String, Object>** | Recipient information (siret, vatNumber for BT-48, ...) | |
|
|
10
10
|
| **lines** | **Array<Hash<String, Object>>** | Invoice lines | |
|
|
11
11
|
| **date** | **String** | | [optional] |
|
|
12
12
|
| **due_days** | **Integer** | Due date in days (default: 30) | [optional][default to 30] |
|
|
13
13
|
| **comment** | **String** | | [optional] |
|
|
14
14
|
| **purchase_order_reference** | **String** | | [optional] |
|
|
15
15
|
| **contract_reference** | **String** | | [optional] |
|
|
16
|
-
| **invoice_type** | [**
|
|
16
|
+
| **invoice_type** | [**FactureElectroniqueModelsInvoiceTypeCode**](FactureElectroniqueModelsInvoiceTypeCode.md) | Document type (UNTDID 1001). Default: 380 (Invoice). | [optional] |
|
|
17
17
|
| **preceding_invoice_reference** | **String** | | [optional] |
|
|
18
18
|
| **operation_nature** | [**OperationNature**](OperationNature.md) | | [optional] |
|
|
19
19
|
| **invoicing_framework** | [**InvoicingFrameworkCode**](InvoicingFrameworkCode.md) | | [optional] |
|
data/docs/SubmitCDARRequest.md
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
| **reason_text** | **String** | | [optional] |
|
|
23
23
|
| **action_code** | **String** | | [optional] |
|
|
24
24
|
| **encaisse_amount** | [**Encaisseamount**](Encaisseamount.md) | | [optional] |
|
|
25
|
+
| **encaisse_vat_rate** | **Float** | Taux de TVA du montant encaissé en % (MDT-224, requis par BR-FR-CDV-14 pour le statut 212 ; défaut 20) | [optional][default to 20] |
|
|
25
26
|
| **flow_type** | **String** | Type de flux AFNOR (CustomerInvoiceLC, SupplierInvoiceLC, etc.) | [optional][default to 'CustomerInvoiceLC'] |
|
|
26
27
|
| **pdp_flow_service_url** | **String** | | [optional] |
|
|
27
28
|
| **pdp_token_url** | **String** | | [optional] |
|
|
@@ -52,6 +53,7 @@ instance = FactPulse::SubmitCDARRequest.new(
|
|
|
52
53
|
reason_text: null,
|
|
53
54
|
action_code: null,
|
|
54
55
|
encaisse_amount: null,
|
|
56
|
+
encaisse_vat_rate: null,
|
|
55
57
|
flow_type: null,
|
|
56
58
|
pdp_flow_service_url: null,
|
|
57
59
|
pdp_token_url: null,
|