factpulse 4.1.2 → 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 +9 -4
- data/Gemfile.lock +12 -10
- data/README.md +7 -1
- data/docs/AFNORContainsOrStartWithOperator.md +15 -0
- data/docs/{AFNORFacilityNature.md → AFNORContainsOrStrictOperator.md} +2 -2
- data/docs/AFNORContainsOrStrictOrStartWithOperator.md +15 -0
- data/docs/AFNORCoreFlowInfo.md +26 -0
- data/docs/{AFNORDirectoryLinePayloadHistoryLegalUnitFacilityRoutingCode.md → AFNORDirectoryLinePayloadLegalUnitFacilityRoutingCode.md} +9 -5
- data/docs/AFNORDirectoryLinePayloadStatusLegalUnitFacilityRoutingCode.md +36 -0
- data/docs/AFNORDirectoryLineSearchPost200Response.md +2 -2
- data/docs/{AFNORContainsOperator.md → AFNORDirectoryLineStatus.md} +2 -2
- data/docs/AFNORError.md +4 -4
- data/docs/AFNORFacilityPayloadHistory.md +3 -3
- data/docs/AFNORFacilityPayloadIncluded.md +2 -2
- data/docs/AFNORFlow.md +18 -16
- data/docs/AFNORFlowExtension.md +26 -0
- data/docs/AFNORFlowInfo.md +3 -3
- data/docs/AFNORFlowInfoExtension.md +18 -0
- data/docs/AFNORFullFlowInfo.md +8 -8
- data/docs/AFNORFullFlowInfoExtension.md +20 -0
- data/docs/AFNORLegalUnitPayloadHistory.md +3 -1
- data/docs/AFNORLegalUnitPayloadIncluded.md +3 -1
- data/docs/AFNORPDPPADirectoryServiceApi.md +4 -648
- data/docs/AFNORPDPPAFlowServiceApi.md +190 -1
- data/docs/AFNORRoutingCodeSearch.md +3 -3
- data/docs/AFNORRoutingCodeSearchFiltersRoutingCodeName.md +1 -1
- data/docs/AFNORRoutingCodeSearchFiltersRoutingIdentifier.md +1 -1
- data/docs/AFNORRoutingCodeSearchPost200Response.md +1 -1
- data/docs/AFNORSearchDirectoryLine.md +5 -3
- data/docs/AFNORSearchDirectoryLineFiltersAddressingIdentifier.md +1 -1
- data/docs/AFNORSearchDirectoryLineFiltersAddressingSuffix.md +1 -1
- data/docs/AFNORSearchDirectoryLineSortingInner.md +2 -2
- data/docs/AFNORSearchFlowContent.md +3 -1
- data/docs/AFNORSearchFlowFilters.md +1 -1
- data/docs/AFNORSearchFlowParams.md +3 -1
- data/docs/AFNORSearchSiren.md +2 -2
- data/docs/AFNORSearchSirenFiltersBusinessName.md +1 -1
- data/docs/AFNORSearchSirenFiltersSiren.md +1 -1
- data/docs/AFNORSearchSirenSortingInner.md +2 -2
- data/docs/AFNORSearchSiret.md +3 -3
- data/docs/AFNORSearchSiretFiltersAddressLines.md +1 -1
- data/docs/AFNORSearchSiretFiltersCountrySubdivision.md +1 -1
- data/docs/AFNORSearchSiretFiltersFacilityType.md +1 -1
- data/docs/AFNORSearchSiretFiltersLocality.md +1 -1
- data/docs/AFNORSearchSiretFiltersName.md +1 -1
- data/docs/AFNORSearchSiretFiltersPostalCode.md +1 -1
- data/docs/AFNORSearchSiretFiltersSiret.md +1 -1
- data/docs/AFNORSearchSiretSortingInner.md +2 -2
- data/docs/AFNORSirenInstructions.md +18 -0
- data/docs/AFNORSirenSearchPost200Response.md +1 -1
- data/docs/AFNORSiretInstructions.md +18 -0
- data/docs/AFNORSiretSearchPost200Response.md +1 -1
- data/docs/{AFNORDiffusionStatus.md → AFNORStrictOrStartWithOperator.md} +2 -2
- data/docs/AFNORUniqueDirectoryLineStatus.md +15 -0
- data/docs/AFNORWebhook.md +30 -0
- data/docs/AFNORWebhookIdParam.md +22 -0
- data/docs/AFNORWebhookParams.md +24 -0
- data/docs/AllowanceCharge.md +1 -1
- data/docs/{AFNORAlgorithm.md → Amounteur.md} +2 -2
- 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/FactureElectroniqueRestApiSchemasCdarValidationErrorResponse.md +24 -0
- data/docs/Flux10EReportingApi.md +18 -8
- data/docs/Flux6InvoiceLifecycleCDARApi.md +39 -19
- data/docs/IncomingSupplier.md +4 -2
- data/docs/InvoiceGenerationApi.md +14 -8
- data/docs/InvoiceInput.md +4 -0
- data/docs/Invoicedata.md +49 -0
- 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/SimplifiedInvoiceData.md +2 -2
- data/docs/SubmitCDARRequest.md +2 -0
- data/docs/SubmitCompleteInvoiceRequest.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/{AFNORPlatformStatus.md → Taxamounteur.md} +2 -2
- data/docs/ValidateCDARResponse.md +2 -2
- data/docs/ValidationErrorResponse.md +2 -8
- data/factpulse.gemspec +1 -1
- data/lib/factpulse/api/afnorpdppa_api.rb +1 -1
- data/lib/factpulse/api/afnorpdppa_directory_service_api.rb +4 -622
- data/lib/factpulse/api/afnorpdppa_flow_service_api.rb +178 -1
- 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_diffusion_status.rb → afnor_contains_or_start_with_operator.rb} +7 -7
- data/lib/factpulse/models/{afnor_contains_operator.rb → afnor_contains_or_strict_operator.rb} +6 -5
- data/lib/factpulse/models/afnor_contains_or_strict_or_start_with_operator.rb +41 -0
- data/lib/factpulse/models/{afnor_routing_code_post201_response.rb → afnor_core_flow_info.rb} +104 -62
- 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 +2 -3
- 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_history_legal_unit_facility_routing_code.rb → afnor_directory_line_payload_legal_unit_facility_routing_code.rb} +86 -15
- data/lib/factpulse/models/{afnor_create_directory_line_body_addressing_information.rb → afnor_directory_line_payload_status_legal_unit_facility_routing_code.rb} +106 -17
- data/lib/factpulse/models/afnor_directory_line_search_post200_response.rb +5 -3
- data/lib/factpulse/models/afnor_directory_line_status.rb +41 -0
- data/lib/factpulse/models/afnor_entity_type.rb +1 -1
- data/lib/factpulse/models/afnor_error.rb +31 -40
- 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 +12 -12
- 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 -11
- data/lib/factpulse/models/afnor_facility_type.rb +1 -1
- data/lib/factpulse/models/afnor_flow.rb +257 -62
- 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_update_patch_routing_code_body.rb → afnor_flow_extension.rb} +104 -67
- data/lib/factpulse/models/afnor_flow_info.rb +26 -10
- data/lib/factpulse/models/{afnor_create_directory_line_body_period.rb → afnor_flow_info_extension.rb} +27 -32
- 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 +85 -52
- data/lib/factpulse/models/afnor_full_flow_info_extension.rb +202 -0
- 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 +14 -5
- data/lib/factpulse/models/afnor_legal_unit_payload_included.rb +14 -5
- data/lib/factpulse/models/afnor_processing_rule.rb +6 -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 +2 -3
- 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 +2 -2
- data/lib/factpulse/models/afnor_routing_code_search_filters_routing_identifier.rb +2 -2
- 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 +2 -2
- data/lib/factpulse/models/afnor_search_directory_line_filters_addressing_suffix.rb +2 -2
- 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 +7 -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 +2 -2
- 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 +2 -2
- data/lib/factpulse/models/afnor_search_siret_filters_facility_type.rb +2 -2
- 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 +2 -2
- data/lib/factpulse/models/afnor_search_siret_filters_siret.rb +2 -2
- data/lib/factpulse/models/afnor_search_siret_sorting_inner.rb +8 -8
- data/lib/factpulse/models/afnor_siren_field.rb +3 -3
- data/lib/factpulse/models/{afnor_update_patch_directory_line_body.rb → afnor_siren_instructions.rb} +13 -12
- data/lib/factpulse/models/afnor_siren_search_post200_response.rb +4 -2
- data/lib/factpulse/models/afnor_siret_field.rb +4 -5
- data/lib/factpulse/models/{afnor_webhook_callback_content.rb → afnor_siret_instructions.rb} +13 -12
- 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_facility_nature.rb → afnor_strict_or_start_with_operator.rb} +7 -7
- data/lib/factpulse/models/{afnor_platform_status.rb → afnor_unique_directory_line_status.rb} +4 -4
- data/lib/factpulse/models/afnor_webhook.rb +250 -0
- data/lib/factpulse/models/{afnor_create_directory_line_body.rb → afnor_webhook_id_param.rb} +26 -17
- data/lib/factpulse/models/{afnor_legal_unit_payload_included_no_siren.rb → afnor_webhook_params.rb} +44 -36
- 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 +1 -1
- data/lib/factpulse/models/chorus_pro_destination.rb +1 -1
- 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_directory_line_payload_history_legal_unit_facility_routing_code_platform.rb → electronic_address_input.rb} +37 -17
- data/lib/factpulse/models/electronic_address_output.rb +198 -0
- 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 +1 -1
- data/lib/factpulse/models/{afnor_directory_line_post201_response.rb → facture_electronique_rest_api_schemas_cdar_validation_error_response.rb} +64 -36
- data/lib/factpulse/models/facture_electronique_rest_api_schemas_chorus_pro_chorus_pro_credentials.rb +1 -1
- data/lib/factpulse/models/field_status.rb +1 -1
- data/lib/factpulse/models/file_info.rb +1 -1
- data/lib/factpulse/models/files_info.rb +1 -1
- data/lib/factpulse/models/flow_direction.rb +1 -1
- data/lib/factpulse/models/flow_profile.rb +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 +1 -1
- data/lib/factpulse/models/get_chorus_pro_id_response.rb +1 -1
- data/lib/factpulse/models/get_invoice_request.rb +1 -1
- data/lib/factpulse/models/get_invoice_response.rb +1 -1
- data/lib/factpulse/models/get_structure_request.rb +1 -1
- 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 +22 -2
- 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 +1 -1
- data/lib/factpulse/models/invoice_type_code_output.rb +1 -1
- data/lib/factpulse/models/invoicedata.rb +105 -0
- 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/postal_address_output.rb +209 -0
- 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 +6 -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 +1 -1
- 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 +4 -4
- 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 +1 -1
- 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/{facture_electronique_rest_api_schemas_validation_validation_error_response.rb → super_pdp_connect_url_response.rb} +22 -24
- data/lib/factpulse/models/super_pdp_disconnect_response.rb +193 -0
- 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/{afnor_algorithm.rb → taxamounteur.rb} +84 -23
- 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 +3 -3
- 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 +21 -68
- 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 +29 -23
- metadata +58 -46
- data/docs/AFNORAddressEdit.md +0 -30
- data/docs/AFNORAddressPatch.md +0 -30
- data/docs/AFNORAddressPut.md +0 -30
- data/docs/AFNORCreateDirectoryLineBody.md +0 -20
- data/docs/AFNORCreateDirectoryLineBodyAddressingInformation.md +0 -24
- data/docs/AFNORCreateDirectoryLineBodyPeriod.md +0 -20
- data/docs/AFNORCreateRoutingCodeBody.md +0 -32
- data/docs/AFNORDirectoryLinePayloadHistoryLegalUnitFacilityRoutingCodePlatform.md +0 -20
- data/docs/AFNORDirectoryLinePost201Response.md +0 -22
- data/docs/AFNORLegalUnitPayloadIncludedNoSiren.md +0 -22
- data/docs/AFNORRoutingCodePost201Response.md +0 -22
- data/docs/AFNORUpdatePatchDirectoryLineBody.md +0 -18
- data/docs/AFNORUpdatePatchRoutingCodeBody.md +0 -24
- data/docs/AFNORUpdatePutRoutingCodeBody.md +0 -24
- data/docs/AFNORWebhookCallbackContent.md +0 -18
- data/docs/FactureElectroniqueRestApiSchemasValidationValidationErrorResponse.md +0 -18
- data/lib/factpulse/models/afnor_address_edit.rb +0 -353
- data/lib/factpulse/models/afnor_address_patch.rb +0 -386
- data/lib/factpulse/models/afnor_address_put.rb +0 -435
- data/lib/factpulse/models/afnor_create_routing_code_body.rb +0 -412
- data/lib/factpulse/models/afnor_update_put_routing_code_body.rb +0 -289
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: contact@factpulse.fr
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.21.0
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,14 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
-
class
|
|
17
|
+
class AFNORDirectoryLinePayloadStatusLegalUnitFacilityRoutingCode < ApiModelBase
|
|
18
|
+
# Addressing identifier of the directory line.
|
|
19
|
+
attr_accessor :addressing_identifier
|
|
20
|
+
|
|
21
|
+
attr_accessor :platform_type
|
|
22
|
+
|
|
23
|
+
attr_accessor :directory_line_status
|
|
24
|
+
|
|
18
25
|
# SIREN number
|
|
19
26
|
attr_accessor :siren
|
|
20
27
|
|
|
@@ -27,13 +34,47 @@ module FactPulse
|
|
|
27
34
|
# suffix of the directory line which defines an address mesh not attached to a facility
|
|
28
35
|
attr_accessor :addressing_suffix
|
|
29
36
|
|
|
37
|
+
attr_accessor :routing_code
|
|
38
|
+
|
|
39
|
+
attr_accessor :legal_unit
|
|
40
|
+
|
|
41
|
+
attr_accessor :facility
|
|
42
|
+
|
|
43
|
+
class EnumAttributeValidator
|
|
44
|
+
attr_reader :datatype
|
|
45
|
+
attr_reader :allowable_values
|
|
46
|
+
|
|
47
|
+
def initialize(datatype, allowable_values)
|
|
48
|
+
@allowable_values = allowable_values.map do |value|
|
|
49
|
+
case datatype.to_s
|
|
50
|
+
when /Integer/i
|
|
51
|
+
value.to_i
|
|
52
|
+
when /Float/i
|
|
53
|
+
value.to_f
|
|
54
|
+
else
|
|
55
|
+
value
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def valid?(value)
|
|
61
|
+
!value || allowable_values.include?(value)
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
30
65
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
66
|
def self.attribute_map
|
|
32
67
|
{
|
|
68
|
+
:'addressing_identifier' => :'addressingIdentifier',
|
|
69
|
+
:'platform_type' => :'platformType',
|
|
70
|
+
:'directory_line_status' => :'directoryLineStatus',
|
|
33
71
|
:'siren' => :'siren',
|
|
34
72
|
:'siret' => :'siret',
|
|
35
73
|
:'routing_identifier' => :'routingIdentifier',
|
|
36
|
-
:'addressing_suffix' => :'addressingSuffix'
|
|
74
|
+
:'addressing_suffix' => :'addressingSuffix',
|
|
75
|
+
:'routing_code' => :'routingCode',
|
|
76
|
+
:'legal_unit' => :'legalUnit',
|
|
77
|
+
:'facility' => :'facility'
|
|
37
78
|
}
|
|
38
79
|
end
|
|
39
80
|
|
|
@@ -50,10 +91,16 @@ module FactPulse
|
|
|
50
91
|
# Attribute type mapping.
|
|
51
92
|
def self.openapi_types
|
|
52
93
|
{
|
|
94
|
+
:'addressing_identifier' => :'String',
|
|
95
|
+
:'platform_type' => :'AFNORRecipientPlatformType',
|
|
96
|
+
:'directory_line_status' => :'AFNORDirectoryLineStatus',
|
|
53
97
|
:'siren' => :'String',
|
|
54
98
|
:'siret' => :'String',
|
|
55
99
|
:'routing_identifier' => :'String',
|
|
56
|
-
:'addressing_suffix' => :'String'
|
|
100
|
+
:'addressing_suffix' => :'String',
|
|
101
|
+
:'routing_code' => :'AFNORDirectoryLinePayloadHistoryLegalUnitFacilityRoutingCodeRoutingCode',
|
|
102
|
+
:'legal_unit' => :'AFNORLegalUnitPayloadIncluded',
|
|
103
|
+
:'facility' => :'AFNORFacilityPayloadIncluded'
|
|
57
104
|
}
|
|
58
105
|
end
|
|
59
106
|
|
|
@@ -67,22 +114,32 @@ module FactPulse
|
|
|
67
114
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
68
115
|
def initialize(attributes = {})
|
|
69
116
|
if (!attributes.is_a?(Hash))
|
|
70
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::
|
|
117
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::AFNORDirectoryLinePayloadStatusLegalUnitFacilityRoutingCode` initialize method"
|
|
71
118
|
end
|
|
72
119
|
|
|
73
120
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
74
121
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
75
122
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
123
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
77
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::
|
|
124
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::AFNORDirectoryLinePayloadStatusLegalUnitFacilityRoutingCode`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
78
125
|
end
|
|
79
126
|
h[k.to_sym] = v
|
|
80
127
|
}
|
|
81
128
|
|
|
129
|
+
if attributes.key?(:'addressing_identifier')
|
|
130
|
+
self.addressing_identifier = attributes[:'addressing_identifier']
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
if attributes.key?(:'platform_type')
|
|
134
|
+
self.platform_type = attributes[:'platform_type']
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'directory_line_status')
|
|
138
|
+
self.directory_line_status = attributes[:'directory_line_status']
|
|
139
|
+
end
|
|
140
|
+
|
|
82
141
|
if attributes.key?(:'siren')
|
|
83
142
|
self.siren = attributes[:'siren']
|
|
84
|
-
else
|
|
85
|
-
self.siren = nil
|
|
86
143
|
end
|
|
87
144
|
|
|
88
145
|
if attributes.key?(:'siret')
|
|
@@ -96,6 +153,18 @@ module FactPulse
|
|
|
96
153
|
if attributes.key?(:'addressing_suffix')
|
|
97
154
|
self.addressing_suffix = attributes[:'addressing_suffix']
|
|
98
155
|
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'routing_code')
|
|
158
|
+
self.routing_code = attributes[:'routing_code']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'legal_unit')
|
|
162
|
+
self.legal_unit = attributes[:'legal_unit']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'facility')
|
|
166
|
+
self.facility = attributes[:'facility']
|
|
167
|
+
end
|
|
99
168
|
end
|
|
100
169
|
|
|
101
170
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -103,16 +172,16 @@ module FactPulse
|
|
|
103
172
|
def list_invalid_properties
|
|
104
173
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
105
174
|
invalid_properties = Array.new
|
|
106
|
-
if
|
|
107
|
-
invalid_properties.push('invalid value for "
|
|
175
|
+
if !@addressing_identifier.nil? && @addressing_identifier.to_s.length > 125
|
|
176
|
+
invalid_properties.push('invalid value for "addressing_identifier", the character length must be smaller than or equal to 125.')
|
|
108
177
|
end
|
|
109
178
|
|
|
110
|
-
if @siren.to_s.length > 9
|
|
179
|
+
if !@siren.nil? && @siren.to_s.length > 9
|
|
111
180
|
invalid_properties.push('invalid value for "siren", the character length must be smaller than or equal to 9.')
|
|
112
181
|
end
|
|
113
182
|
|
|
114
183
|
pattern = Regexp.new(/^([0-9]{9})$/)
|
|
115
|
-
if @siren !~ pattern
|
|
184
|
+
if !@siren.nil? && @siren !~ pattern
|
|
116
185
|
invalid_properties.push("invalid value for \"siren\", must conform to the pattern #{pattern}.")
|
|
117
186
|
end
|
|
118
187
|
|
|
@@ -145,9 +214,9 @@ module FactPulse
|
|
|
145
214
|
# @return true if the model is valid
|
|
146
215
|
def valid?
|
|
147
216
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
148
|
-
return false if
|
|
149
|
-
return false if @siren.to_s.length > 9
|
|
150
|
-
return false if @siren !~ Regexp.new(/^([0-9]{9})$/)
|
|
217
|
+
return false if !@addressing_identifier.nil? && @addressing_identifier.to_s.length > 125
|
|
218
|
+
return false if !@siren.nil? && @siren.to_s.length > 9
|
|
219
|
+
return false if !@siren.nil? && @siren !~ Regexp.new(/^([0-9]{9})$/)
|
|
151
220
|
return false if !@siret.nil? && @siret.to_s.length > 14
|
|
152
221
|
return false if !@siret.nil? && @siret !~ Regexp.new(/^([0-9]{14})$/)
|
|
153
222
|
return false if !@routing_identifier.nil? && @routing_identifier.to_s.length > 100
|
|
@@ -156,6 +225,20 @@ module FactPulse
|
|
|
156
225
|
true
|
|
157
226
|
end
|
|
158
227
|
|
|
228
|
+
# Custom attribute writer method with validation
|
|
229
|
+
# @param [Object] addressing_identifier Value to be assigned
|
|
230
|
+
def addressing_identifier=(addressing_identifier)
|
|
231
|
+
if addressing_identifier.nil?
|
|
232
|
+
fail ArgumentError, 'addressing_identifier cannot be nil'
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
if addressing_identifier.to_s.length > 125
|
|
236
|
+
fail ArgumentError, 'invalid value for "addressing_identifier", the character length must be smaller than or equal to 125.'
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
@addressing_identifier = addressing_identifier
|
|
240
|
+
end
|
|
241
|
+
|
|
159
242
|
# Custom attribute writer method with validation
|
|
160
243
|
# @param [Object] siren Value to be assigned
|
|
161
244
|
def siren=(siren)
|
|
@@ -232,10 +315,16 @@ module FactPulse
|
|
|
232
315
|
def ==(o)
|
|
233
316
|
return true if self.equal?(o)
|
|
234
317
|
self.class == o.class &&
|
|
318
|
+
addressing_identifier == o.addressing_identifier &&
|
|
319
|
+
platform_type == o.platform_type &&
|
|
320
|
+
directory_line_status == o.directory_line_status &&
|
|
235
321
|
siren == o.siren &&
|
|
236
322
|
siret == o.siret &&
|
|
237
323
|
routing_identifier == o.routing_identifier &&
|
|
238
|
-
addressing_suffix == o.addressing_suffix
|
|
324
|
+
addressing_suffix == o.addressing_suffix &&
|
|
325
|
+
routing_code == o.routing_code &&
|
|
326
|
+
legal_unit == o.legal_unit &&
|
|
327
|
+
facility == o.facility
|
|
239
328
|
end
|
|
240
329
|
|
|
241
330
|
# @see the `==` method
|
|
@@ -247,7 +336,7 @@ module FactPulse
|
|
|
247
336
|
# Calculates hash code according to all attributes.
|
|
248
337
|
# @return [Integer] Hash code
|
|
249
338
|
def hash
|
|
250
|
-
[siren, siret, routing_identifier, addressing_suffix].hash
|
|
339
|
+
[addressing_identifier, platform_type, directory_line_status, siren, siret, routing_identifier, addressing_suffix, routing_code, legal_unit, facility].hash
|
|
251
340
|
end
|
|
252
341
|
|
|
253
342
|
# Builds the object from hash
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: contact@factpulse.fr
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.21.0
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -17,7 +17,7 @@ module FactPulse
|
|
|
17
17
|
class AFNORDirectoryLineSearchPost200Response < ApiModelBase
|
|
18
18
|
attr_accessor :search
|
|
19
19
|
|
|
20
|
-
# The total number of results
|
|
20
|
+
# The total number of results, if -1 is returned then this value is not managed due to performance issue
|
|
21
21
|
attr_accessor :total_number_of_results
|
|
22
22
|
|
|
23
23
|
attr_accessor :results
|
|
@@ -46,7 +46,7 @@ module FactPulse
|
|
|
46
46
|
{
|
|
47
47
|
:'search' => :'AFNORSearchDirectoryLine',
|
|
48
48
|
:'total_number_of_results' => :'Integer',
|
|
49
|
-
:'results' => :'Array<
|
|
49
|
+
:'results' => :'Array<AFNORDirectoryLinePayloadStatusLegalUnitFacilityRoutingCode>'
|
|
50
50
|
}
|
|
51
51
|
end
|
|
52
52
|
|
|
@@ -78,6 +78,8 @@ module FactPulse
|
|
|
78
78
|
|
|
79
79
|
if attributes.key?(:'total_number_of_results')
|
|
80
80
|
self.total_number_of_results = attributes[:'total_number_of_results']
|
|
81
|
+
else
|
|
82
|
+
self.total_number_of_results = -1
|
|
81
83
|
end
|
|
82
84
|
|
|
83
85
|
if attributes.key?(:'results')
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#FactPulse REST API
|
|
3
|
+
|
|
4
|
+
# REST API for electronic invoicing in France: Factur-X (CII), UBL 2.1, AFNOR PDP/PA, electronic signatures. ## 🎯 Main Features ### 📄 Invoice Generation - **Formats**: CII XML, UBL 2.1 XML, or Factur-X PDF/A-3 - **Profiles** (CII/PDF): MINIMUM, BASIC, EN16931, EXTENDED - **UBL**: Always EN16931 compliant - **Standards**: EN 16931 (EU directive 2014/55), ISO 19005-3 (PDF/A-3), CII (UN/CEFACT), UBL 2.1 (OASIS) - **Simplified Format**: Generation from SIRET + auto-enrichment (Chorus Pro API + Business Search) ### ✅ Factur-X - Validation - **XML Validation**: Schematron (45 to 210+ rules depending on profile) - **PDF Validation**: PDF/A-3, Factur-X XMP metadata - **VeraPDF**: Strict PDF/A validation (146+ ISO 19005-3 rules) ### ✍️ Electronic Signature - **Standards**: PAdES-B-B, PAdES-B-T (RFC 3161 timestamping), PAdES-B-LT (long-term archival) - **eIDAS Levels**: SES (self-signed), AdES (commercial CA), QES (QTSP) - **Validation**: Cryptographic integrity and certificate verification ### 📋 Flux 6 - Invoice Lifecycle (CDAR) - **CDAR Messages**: Acknowledgements, invoice statuses - **PPF Statuses**: REFUSED (210), PAID (212) ### 📊 Flux 10 - E-Reporting - **Tax Declarations**: International B2B, B2C - **Flow Types**: 10.1 (B2B transactions), 10.2 (B2B payments), 10.3 (B2C transactions), 10.4 (B2C payments) ### 📡 AFNOR PDP/PA (XP Z12-013) - **Flow Service**: Submit and search flows to PDPs - **Directory Service**: Company search (SIREN/SIRET) - **Multi-client**: Support for multiple PDP configs per user ### 🏛️ Chorus Pro - **Public Sector Invoicing**: Complete API for Chorus Pro ### ⏳ Async Tasks - **Celery**: Asynchronous generation, validation and signing - **Polling**: Status tracking via `/tasks/{task_id}/status` - **Webhooks**: Automatic notifications when tasks complete ## 🔒 Authentication All requests require a **JWT token** in the Authorization header: ``` Authorization: Bearer YOUR_JWT_TOKEN ``` ### How to obtain a JWT token? #### 🔑 Method 1: `/api/token/` API (Recommended) **URL:** `https://factpulse.fr/api/token/` This method is **recommended** for integration in your applications and CI/CD workflows. **Prerequisites:** Having set a password on your account **For users registered via email/password:** - You already have a password, use it directly **For users registered via OAuth (Google/GitHub):** - You must first set a password at: https://factpulse.fr/accounts/password/set/ - Once the password is created, you can use the API **Request example:** ```bash curl -X POST https://factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d '{ \"username\": \"your_email@example.com\", \"password\": \"your_password\" }' ``` **Optional `client_uid` parameter:** To select credentials for a specific client (PA/PDP, Chorus Pro, signing certificates), add `client_uid`: ```bash curl -X POST https://factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d '{ \"username\": \"your_email@example.com\", \"password\": \"your_password\", \"client_uid\": \"550e8400-e29b-41d4-a716-446655440000\" }' ``` The `client_uid` will be included in the JWT and allow the API to automatically use: - AFNOR/PDP credentials configured for this client - Chorus Pro credentials configured for this client - Electronic signature certificates configured for this client **Response:** ```json { \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\", // Access token (validity: 30 min) \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\" // Refresh token (validity: 7 days) } ``` **Advantages:** - ✅ Full automation (CI/CD, scripts) - ✅ Programmatic token management - ✅ Refresh token support for automatic access renewal - ✅ Easy integration in any language/tool #### 🖥️ Method 2: Dashboard Generation (Alternative) **URL:** https://factpulse.fr/api/dashboard/ This method is suitable for quick tests or occasional use via the graphical interface. **How it works:** - Log in to the dashboard - Use the \"Generate Test Token\" or \"Generate Production Token\" buttons - Works for **all** users (OAuth and email/password), without requiring a password **Token types:** - **Test Token**: 24h validity, 1000 calls/day quota (free) - **Production Token**: 7 days validity, quota based on your plan **Advantages:** - ✅ Quick for API testing - ✅ No password required - ✅ Simple visual interface **Disadvantages:** - ❌ Requires manual action - ❌ No refresh token - ❌ Less suited for automation ### 📚 Full Documentation For more information on authentication and API usage: https://factpulse.fr/documentation-api/
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: contact@factpulse.fr
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.21.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module FactPulse
|
|
17
|
+
class AFNORDirectoryLineStatus
|
|
18
|
+
ENABLED = "Enabled".freeze
|
|
19
|
+
DISABLED = "Disabled".freeze
|
|
20
|
+
UPCOMING = "Upcoming".freeze
|
|
21
|
+
|
|
22
|
+
def self.all_vars
|
|
23
|
+
@all_vars ||= [ENABLED, DISABLED, UPCOMING].freeze
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Builds the enum from string
|
|
27
|
+
# @param [String] The enum value in the form of the string
|
|
28
|
+
# @return [String] The enum value
|
|
29
|
+
def self.build_from_hash(value)
|
|
30
|
+
new.build_from_hash(value)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Builds the enum from string
|
|
34
|
+
# @param [String] The enum value in the form of the string
|
|
35
|
+
# @return [String] The enum value
|
|
36
|
+
def build_from_hash(value)
|
|
37
|
+
return value if AFNORDirectoryLineStatus.all_vars.include?(value)
|
|
38
|
+
raise "Invalid ENUM value #{value} for class #AFNORDirectoryLineStatus"
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: contact@factpulse.fr
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.21.0
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,13 +14,15 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
+
# Error code
|
|
17
18
|
class AFNORError < ApiModelBase
|
|
18
|
-
|
|
19
|
+
# Short numerical or alphanumerical code that identifies precisely a unique error.
|
|
20
|
+
attr_accessor :error_code
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
# Contains information on the error. Not intended to be displayed to an end user. For security reasons, a tradeoff between clarity & security shall be found.
|
|
23
|
+
attr_accessor :error_message
|
|
21
24
|
|
|
22
|
-
|
|
23
|
-
attr_accessor :status
|
|
25
|
+
attr_accessor :type
|
|
24
26
|
|
|
25
27
|
attr_accessor :details
|
|
26
28
|
|
|
@@ -29,9 +31,9 @@ module FactPulse
|
|
|
29
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
32
|
def self.attribute_map
|
|
31
33
|
{
|
|
34
|
+
:'error_code' => :'errorCode',
|
|
35
|
+
:'error_message' => :'errorMessage',
|
|
32
36
|
:'type' => :'type',
|
|
33
|
-
:'message' => :'message',
|
|
34
|
-
:'status' => :'status',
|
|
35
37
|
:'details' => :'details',
|
|
36
38
|
:'instance' => :'instance'
|
|
37
39
|
}
|
|
@@ -50,9 +52,9 @@ module FactPulse
|
|
|
50
52
|
# Attribute type mapping.
|
|
51
53
|
def self.openapi_types
|
|
52
54
|
{
|
|
55
|
+
:'error_code' => :'String',
|
|
56
|
+
:'error_message' => :'String',
|
|
53
57
|
:'type' => :'String',
|
|
54
|
-
:'message' => :'String',
|
|
55
|
-
:'status' => :'Integer',
|
|
56
58
|
:'details' => :'String',
|
|
57
59
|
:'instance' => :'String'
|
|
58
60
|
}
|
|
@@ -80,18 +82,20 @@ module FactPulse
|
|
|
80
82
|
h[k.to_sym] = v
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
if attributes.key?(:'
|
|
84
|
-
self.
|
|
85
|
+
if attributes.key?(:'error_code')
|
|
86
|
+
self.error_code = attributes[:'error_code']
|
|
85
87
|
else
|
|
86
|
-
self.
|
|
88
|
+
self.error_code = nil
|
|
87
89
|
end
|
|
88
90
|
|
|
89
|
-
if attributes.key?(:'
|
|
90
|
-
self.
|
|
91
|
+
if attributes.key?(:'error_message')
|
|
92
|
+
self.error_message = attributes[:'error_message']
|
|
91
93
|
end
|
|
92
94
|
|
|
93
|
-
if attributes.key?(:'
|
|
94
|
-
self.
|
|
95
|
+
if attributes.key?(:'type')
|
|
96
|
+
self.type = attributes[:'type']
|
|
97
|
+
else
|
|
98
|
+
self.type = 'about:blank'
|
|
95
99
|
end
|
|
96
100
|
|
|
97
101
|
if attributes.key?(:'details')
|
|
@@ -108,12 +112,8 @@ module FactPulse
|
|
|
108
112
|
def list_invalid_properties
|
|
109
113
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
110
114
|
invalid_properties = Array.new
|
|
111
|
-
if
|
|
112
|
-
invalid_properties.push('invalid value for "
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
if !@status.nil? && @status < 100
|
|
116
|
-
invalid_properties.push('invalid value for "status", must be greater than or equal to 100.')
|
|
115
|
+
if @error_code.nil?
|
|
116
|
+
invalid_properties.push('invalid value for "error_code", error_code cannot be nil.')
|
|
117
117
|
end
|
|
118
118
|
|
|
119
119
|
invalid_properties
|
|
@@ -123,27 +123,18 @@ module FactPulse
|
|
|
123
123
|
# @return true if the model is valid
|
|
124
124
|
def valid?
|
|
125
125
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
126
|
-
return false if
|
|
127
|
-
return false if !@status.nil? && @status < 100
|
|
126
|
+
return false if @error_code.nil?
|
|
128
127
|
true
|
|
129
128
|
end
|
|
130
129
|
|
|
131
130
|
# Custom attribute writer method with validation
|
|
132
|
-
# @param [Object]
|
|
133
|
-
def
|
|
134
|
-
if
|
|
135
|
-
fail ArgumentError, '
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
if status > 600
|
|
139
|
-
fail ArgumentError, 'invalid value for "status", must be smaller than or equal to 600.'
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
if status < 100
|
|
143
|
-
fail ArgumentError, 'invalid value for "status", must be greater than or equal to 100.'
|
|
131
|
+
# @param [Object] error_code Value to be assigned
|
|
132
|
+
def error_code=(error_code)
|
|
133
|
+
if error_code.nil?
|
|
134
|
+
fail ArgumentError, 'error_code cannot be nil'
|
|
144
135
|
end
|
|
145
136
|
|
|
146
|
-
@
|
|
137
|
+
@error_code = error_code
|
|
147
138
|
end
|
|
148
139
|
|
|
149
140
|
# Checks equality by comparing each attribute.
|
|
@@ -151,9 +142,9 @@ module FactPulse
|
|
|
151
142
|
def ==(o)
|
|
152
143
|
return true if self.equal?(o)
|
|
153
144
|
self.class == o.class &&
|
|
145
|
+
error_code == o.error_code &&
|
|
146
|
+
error_message == o.error_message &&
|
|
154
147
|
type == o.type &&
|
|
155
|
-
message == o.message &&
|
|
156
|
-
status == o.status &&
|
|
157
148
|
details == o.details &&
|
|
158
149
|
instance == o.instance
|
|
159
150
|
end
|
|
@@ -167,7 +158,7 @@ module FactPulse
|
|
|
167
158
|
# Calculates hash code according to all attributes.
|
|
168
159
|
# @return [Integer] Hash code
|
|
169
160
|
def hash
|
|
170
|
-
[
|
|
161
|
+
[error_code, error_message, type, details, instance].hash
|
|
171
162
|
end
|
|
172
163
|
|
|
173
164
|
# Builds the object from hash
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: contact@factpulse.fr
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.21.0
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -26,10 +26,10 @@ module FactPulse
|
|
|
26
26
|
|
|
27
27
|
attr_accessor :facility_type
|
|
28
28
|
|
|
29
|
-
attr_accessor :diffusible
|
|
30
|
-
|
|
31
29
|
attr_accessor :administrative_status
|
|
32
30
|
|
|
31
|
+
attr_accessor :siret_instructions
|
|
32
|
+
|
|
33
33
|
attr_accessor :address
|
|
34
34
|
|
|
35
35
|
attr_accessor :b2g_additional_data
|
|
@@ -65,8 +65,8 @@ module FactPulse
|
|
|
65
65
|
:'siren' => :'siren',
|
|
66
66
|
:'name' => :'name',
|
|
67
67
|
:'facility_type' => :'facilityType',
|
|
68
|
-
:'diffusible' => :'diffusible',
|
|
69
68
|
:'administrative_status' => :'administrativeStatus',
|
|
69
|
+
:'siret_instructions' => :'siretInstructions',
|
|
70
70
|
:'address' => :'address',
|
|
71
71
|
:'b2g_additional_data' => :'b2gAdditionalData',
|
|
72
72
|
:'legal_unit' => :'legalUnit'
|
|
@@ -90,11 +90,11 @@ module FactPulse
|
|
|
90
90
|
:'siren' => :'String',
|
|
91
91
|
:'name' => :'String',
|
|
92
92
|
:'facility_type' => :'AFNORFacilityType',
|
|
93
|
-
:'diffusible' => :'AFNORDiffusionStatus',
|
|
94
93
|
:'administrative_status' => :'AFNORFacilityAdministrativeStatus',
|
|
94
|
+
:'siret_instructions' => :'AFNORSiretInstructions',
|
|
95
95
|
:'address' => :'AFNORAddressRead',
|
|
96
96
|
:'b2g_additional_data' => :'AFNORFacilityPayloadHistoryUleB2gAdditionalData',
|
|
97
|
-
:'legal_unit' => :'
|
|
97
|
+
:'legal_unit' => :'AFNORLegalUnitPayloadIncluded'
|
|
98
98
|
}
|
|
99
99
|
end
|
|
100
100
|
|
|
@@ -136,14 +136,14 @@ module FactPulse
|
|
|
136
136
|
self.facility_type = attributes[:'facility_type']
|
|
137
137
|
end
|
|
138
138
|
|
|
139
|
-
if attributes.key?(:'diffusible')
|
|
140
|
-
self.diffusible = attributes[:'diffusible']
|
|
141
|
-
end
|
|
142
|
-
|
|
143
139
|
if attributes.key?(:'administrative_status')
|
|
144
140
|
self.administrative_status = attributes[:'administrative_status']
|
|
145
141
|
end
|
|
146
142
|
|
|
143
|
+
if attributes.key?(:'siret_instructions')
|
|
144
|
+
self.siret_instructions = attributes[:'siret_instructions']
|
|
145
|
+
end
|
|
146
|
+
|
|
147
147
|
if attributes.key?(:'address')
|
|
148
148
|
self.address = attributes[:'address']
|
|
149
149
|
end
|
|
@@ -260,8 +260,8 @@ module FactPulse
|
|
|
260
260
|
siren == o.siren &&
|
|
261
261
|
name == o.name &&
|
|
262
262
|
facility_type == o.facility_type &&
|
|
263
|
-
diffusible == o.diffusible &&
|
|
264
263
|
administrative_status == o.administrative_status &&
|
|
264
|
+
siret_instructions == o.siret_instructions &&
|
|
265
265
|
address == o.address &&
|
|
266
266
|
b2g_additional_data == o.b2g_additional_data &&
|
|
267
267
|
legal_unit == o.legal_unit
|
|
@@ -276,7 +276,7 @@ module FactPulse
|
|
|
276
276
|
# Calculates hash code according to all attributes.
|
|
277
277
|
# @return [Integer] Hash code
|
|
278
278
|
def hash
|
|
279
|
-
[siret, siren, name, facility_type,
|
|
279
|
+
[siret, siren, name, facility_type, administrative_status, siret_instructions, address, b2g_additional_data, legal_unit].hash
|
|
280
280
|
end
|
|
281
281
|
|
|
282
282
|
# Builds the object from hash
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: contact@factpulse.fr
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.21.0
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -26,10 +26,10 @@ module FactPulse
|
|
|
26
26
|
|
|
27
27
|
attr_accessor :facility_type
|
|
28
28
|
|
|
29
|
-
attr_accessor :diffusible
|
|
30
|
-
|
|
31
29
|
attr_accessor :administrative_status
|
|
32
30
|
|
|
31
|
+
attr_accessor :instructions
|
|
32
|
+
|
|
33
33
|
attr_accessor :address
|
|
34
34
|
|
|
35
35
|
attr_accessor :b2g_additional_data
|
|
@@ -63,8 +63,8 @@ module FactPulse
|
|
|
63
63
|
:'siren' => :'siren',
|
|
64
64
|
:'name' => :'name',
|
|
65
65
|
:'facility_type' => :'facilityType',
|
|
66
|
-
:'diffusible' => :'diffusible',
|
|
67
66
|
:'administrative_status' => :'administrativeStatus',
|
|
67
|
+
:'instructions' => :'instructions',
|
|
68
68
|
:'address' => :'address',
|
|
69
69
|
:'b2g_additional_data' => :'b2gAdditionalData'
|
|
70
70
|
}
|
|
@@ -87,8 +87,8 @@ module FactPulse
|
|
|
87
87
|
:'siren' => :'String',
|
|
88
88
|
:'name' => :'String',
|
|
89
89
|
:'facility_type' => :'AFNORFacilityType',
|
|
90
|
-
:'diffusible' => :'AFNORDiffusionStatus',
|
|
91
90
|
:'administrative_status' => :'AFNORFacilityAdministrativeStatus',
|
|
91
|
+
:'instructions' => :'AFNORSiretInstructions',
|
|
92
92
|
:'address' => :'AFNORAddressRead',
|
|
93
93
|
:'b2g_additional_data' => :'AFNORFacilityPayloadHistoryUleB2gAdditionalData'
|
|
94
94
|
}
|
|
@@ -132,14 +132,14 @@ module FactPulse
|
|
|
132
132
|
self.facility_type = attributes[:'facility_type']
|
|
133
133
|
end
|
|
134
134
|
|
|
135
|
-
if attributes.key?(:'diffusible')
|
|
136
|
-
self.diffusible = attributes[:'diffusible']
|
|
137
|
-
end
|
|
138
|
-
|
|
139
135
|
if attributes.key?(:'administrative_status')
|
|
140
136
|
self.administrative_status = attributes[:'administrative_status']
|
|
141
137
|
end
|
|
142
138
|
|
|
139
|
+
if attributes.key?(:'instructions')
|
|
140
|
+
self.instructions = attributes[:'instructions']
|
|
141
|
+
end
|
|
142
|
+
|
|
143
143
|
if attributes.key?(:'address')
|
|
144
144
|
self.address = attributes[:'address']
|
|
145
145
|
end
|
|
@@ -252,8 +252,8 @@ module FactPulse
|
|
|
252
252
|
siren == o.siren &&
|
|
253
253
|
name == o.name &&
|
|
254
254
|
facility_type == o.facility_type &&
|
|
255
|
-
diffusible == o.diffusible &&
|
|
256
255
|
administrative_status == o.administrative_status &&
|
|
256
|
+
instructions == o.instructions &&
|
|
257
257
|
address == o.address &&
|
|
258
258
|
b2g_additional_data == o.b2g_additional_data
|
|
259
259
|
end
|
|
@@ -267,7 +267,7 @@ module FactPulse
|
|
|
267
267
|
# Calculates hash code according to all attributes.
|
|
268
268
|
# @return [Integer] Hash code
|
|
269
269
|
def hash
|
|
270
|
-
[siret, siren, name, facility_type,
|
|
270
|
+
[siret, siren, name, facility_type, administrative_status, instructions, address, b2g_additional_data].hash
|
|
271
271
|
end
|
|
272
272
|
|
|
273
273
|
# Builds the object from hash
|