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
data/lib/factpulse/models/{afnor_webhook_patch_payload.rb → super_pdp_connect_url_response.rb}
RENAMED
|
@@ -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,19 +14,15 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
attr_accessor :
|
|
21
|
-
|
|
22
|
-
attr_accessor :signature
|
|
17
|
+
# SuperPDP OAuth authorization URL for a client.
|
|
18
|
+
class SuperPDPConnectURLResponse < ApiModelBase
|
|
19
|
+
# URL to redirect the end user to in order to connect their SuperPDP account
|
|
20
|
+
attr_accessor :authorize_url
|
|
23
21
|
|
|
24
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
23
|
def self.attribute_map
|
|
26
24
|
{
|
|
27
|
-
:'
|
|
28
|
-
:'authentication' => :'authentication',
|
|
29
|
-
:'signature' => :'signature'
|
|
25
|
+
:'authorize_url' => :'authorizeUrl'
|
|
30
26
|
}
|
|
31
27
|
end
|
|
32
28
|
|
|
@@ -43,9 +39,7 @@ module FactPulse
|
|
|
43
39
|
# Attribute type mapping.
|
|
44
40
|
def self.openapi_types
|
|
45
41
|
{
|
|
46
|
-
:'
|
|
47
|
-
:'authentication' => :'AFNORCallbackAuthentication',
|
|
48
|
-
:'signature' => :'AFNORCallbackSignature'
|
|
42
|
+
:'authorize_url' => :'String'
|
|
49
43
|
}
|
|
50
44
|
end
|
|
51
45
|
|
|
@@ -59,30 +53,22 @@ module FactPulse
|
|
|
59
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
60
54
|
def initialize(attributes = {})
|
|
61
55
|
if (!attributes.is_a?(Hash))
|
|
62
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::
|
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::SuperPDPConnectURLResponse` initialize method"
|
|
63
57
|
end
|
|
64
58
|
|
|
65
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
66
60
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
67
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
68
62
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
69
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::
|
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::SuperPDPConnectURLResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
70
64
|
end
|
|
71
65
|
h[k.to_sym] = v
|
|
72
66
|
}
|
|
73
67
|
|
|
74
|
-
if attributes.key?(:'
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
if attributes.key?(:'authentication')
|
|
81
|
-
self.authentication = attributes[:'authentication']
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
if attributes.key?(:'signature')
|
|
85
|
-
self.signature = attributes[:'signature']
|
|
68
|
+
if attributes.key?(:'authorize_url')
|
|
69
|
+
self.authorize_url = attributes[:'authorize_url']
|
|
70
|
+
else
|
|
71
|
+
self.authorize_url = nil
|
|
86
72
|
end
|
|
87
73
|
end
|
|
88
74
|
|
|
@@ -91,6 +77,10 @@ module FactPulse
|
|
|
91
77
|
def list_invalid_properties
|
|
92
78
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
93
79
|
invalid_properties = Array.new
|
|
80
|
+
if @authorize_url.nil?
|
|
81
|
+
invalid_properties.push('invalid value for "authorize_url", authorize_url cannot be nil.')
|
|
82
|
+
end
|
|
83
|
+
|
|
94
84
|
invalid_properties
|
|
95
85
|
end
|
|
96
86
|
|
|
@@ -98,17 +88,26 @@ module FactPulse
|
|
|
98
88
|
# @return true if the model is valid
|
|
99
89
|
def valid?
|
|
100
90
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
91
|
+
return false if @authorize_url.nil?
|
|
101
92
|
true
|
|
102
93
|
end
|
|
103
94
|
|
|
95
|
+
# Custom attribute writer method with validation
|
|
96
|
+
# @param [Object] authorize_url Value to be assigned
|
|
97
|
+
def authorize_url=(authorize_url)
|
|
98
|
+
if authorize_url.nil?
|
|
99
|
+
fail ArgumentError, 'authorize_url cannot be nil'
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
@authorize_url = authorize_url
|
|
103
|
+
end
|
|
104
|
+
|
|
104
105
|
# Checks equality by comparing each attribute.
|
|
105
106
|
# @param [Object] Object to be compared
|
|
106
107
|
def ==(o)
|
|
107
108
|
return true if self.equal?(o)
|
|
108
109
|
self.class == o.class &&
|
|
109
|
-
|
|
110
|
-
authentication == o.authentication &&
|
|
111
|
-
signature == o.signature
|
|
110
|
+
authorize_url == o.authorize_url
|
|
112
111
|
end
|
|
113
112
|
|
|
114
113
|
# @see the `==` method
|
|
@@ -120,7 +119,7 @@ module FactPulse
|
|
|
120
119
|
# Calculates hash code according to all attributes.
|
|
121
120
|
# @return [Integer] Hash code
|
|
122
121
|
def hash
|
|
123
|
-
[
|
|
122
|
+
[authorize_url].hash
|
|
124
123
|
end
|
|
125
124
|
|
|
126
125
|
# Builds the object from hash
|
data/lib/factpulse/models/{afnor_basic_authentication.rb → super_pdp_disconnect_response.rb}
RENAMED
|
@@ -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,16 +14,19 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
# Response after disconnecting SuperPDP for a client.
|
|
18
|
+
class SuperPDPDisconnectResponse < ApiModelBase
|
|
19
|
+
# Whether the disconnection completed successfully
|
|
20
|
+
attr_accessor :success
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
# Whether a SuperPDP connection existed and was removed
|
|
23
|
+
attr_accessor :deleted
|
|
21
24
|
|
|
22
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
26
|
def self.attribute_map
|
|
24
27
|
{
|
|
25
|
-
:'
|
|
26
|
-
:'
|
|
28
|
+
:'success' => :'success',
|
|
29
|
+
:'deleted' => :'deleted'
|
|
27
30
|
}
|
|
28
31
|
end
|
|
29
32
|
|
|
@@ -40,8 +43,8 @@ module FactPulse
|
|
|
40
43
|
# Attribute type mapping.
|
|
41
44
|
def self.openapi_types
|
|
42
45
|
{
|
|
43
|
-
:'
|
|
44
|
-
:'
|
|
46
|
+
:'success' => :'Boolean',
|
|
47
|
+
:'deleted' => :'Boolean'
|
|
45
48
|
}
|
|
46
49
|
end
|
|
47
50
|
|
|
@@ -55,28 +58,28 @@ module FactPulse
|
|
|
55
58
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
56
59
|
def initialize(attributes = {})
|
|
57
60
|
if (!attributes.is_a?(Hash))
|
|
58
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::
|
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::SuperPDPDisconnectResponse` initialize method"
|
|
59
62
|
end
|
|
60
63
|
|
|
61
64
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
65
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
63
66
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
67
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
65
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::
|
|
68
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::SuperPDPDisconnectResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
66
69
|
end
|
|
67
70
|
h[k.to_sym] = v
|
|
68
71
|
}
|
|
69
72
|
|
|
70
|
-
if attributes.key?(:'
|
|
71
|
-
self.
|
|
73
|
+
if attributes.key?(:'success')
|
|
74
|
+
self.success = attributes[:'success']
|
|
72
75
|
else
|
|
73
|
-
self.
|
|
76
|
+
self.success = nil
|
|
74
77
|
end
|
|
75
78
|
|
|
76
|
-
if attributes.key?(:'
|
|
77
|
-
self.
|
|
79
|
+
if attributes.key?(:'deleted')
|
|
80
|
+
self.deleted = attributes[:'deleted']
|
|
78
81
|
else
|
|
79
|
-
self.
|
|
82
|
+
self.deleted = nil
|
|
80
83
|
end
|
|
81
84
|
end
|
|
82
85
|
|
|
@@ -85,12 +88,12 @@ module FactPulse
|
|
|
85
88
|
def list_invalid_properties
|
|
86
89
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
87
90
|
invalid_properties = Array.new
|
|
88
|
-
if @
|
|
89
|
-
invalid_properties.push('invalid value for "
|
|
91
|
+
if @success.nil?
|
|
92
|
+
invalid_properties.push('invalid value for "success", success cannot be nil.')
|
|
90
93
|
end
|
|
91
94
|
|
|
92
|
-
if @
|
|
93
|
-
invalid_properties.push('invalid value for "
|
|
95
|
+
if @deleted.nil?
|
|
96
|
+
invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
|
|
94
97
|
end
|
|
95
98
|
|
|
96
99
|
invalid_properties
|
|
@@ -100,29 +103,29 @@ module FactPulse
|
|
|
100
103
|
# @return true if the model is valid
|
|
101
104
|
def valid?
|
|
102
105
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
103
|
-
return false if @
|
|
104
|
-
return false if @
|
|
106
|
+
return false if @success.nil?
|
|
107
|
+
return false if @deleted.nil?
|
|
105
108
|
true
|
|
106
109
|
end
|
|
107
110
|
|
|
108
111
|
# Custom attribute writer method with validation
|
|
109
|
-
# @param [Object]
|
|
110
|
-
def
|
|
111
|
-
if
|
|
112
|
-
fail ArgumentError, '
|
|
112
|
+
# @param [Object] success Value to be assigned
|
|
113
|
+
def success=(success)
|
|
114
|
+
if success.nil?
|
|
115
|
+
fail ArgumentError, 'success cannot be nil'
|
|
113
116
|
end
|
|
114
117
|
|
|
115
|
-
@
|
|
118
|
+
@success = success
|
|
116
119
|
end
|
|
117
120
|
|
|
118
121
|
# Custom attribute writer method with validation
|
|
119
|
-
# @param [Object]
|
|
120
|
-
def
|
|
121
|
-
if
|
|
122
|
-
fail ArgumentError, '
|
|
122
|
+
# @param [Object] deleted Value to be assigned
|
|
123
|
+
def deleted=(deleted)
|
|
124
|
+
if deleted.nil?
|
|
125
|
+
fail ArgumentError, 'deleted cannot be nil'
|
|
123
126
|
end
|
|
124
127
|
|
|
125
|
-
@
|
|
128
|
+
@deleted = deleted
|
|
126
129
|
end
|
|
127
130
|
|
|
128
131
|
# Checks equality by comparing each attribute.
|
|
@@ -130,8 +133,8 @@ module FactPulse
|
|
|
130
133
|
def ==(o)
|
|
131
134
|
return true if self.equal?(o)
|
|
132
135
|
self.class == o.class &&
|
|
133
|
-
|
|
134
|
-
|
|
136
|
+
success == o.success &&
|
|
137
|
+
deleted == o.deleted
|
|
135
138
|
end
|
|
136
139
|
|
|
137
140
|
# @see the `==` method
|
|
@@ -143,7 +146,7 @@ module FactPulse
|
|
|
143
146
|
# Calculates hash code according to all attributes.
|
|
144
147
|
# @return [Integer] Hash code
|
|
145
148
|
def hash
|
|
146
|
-
[
|
|
149
|
+
[success, deleted].hash
|
|
147
150
|
end
|
|
148
151
|
|
|
149
152
|
# Builds the object from hash
|
|
@@ -0,0 +1,208 @@
|
|
|
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
|
+
# SuperPDP connection status for a client.
|
|
18
|
+
class SuperPDPStatusResponse < ApiModelBase
|
|
19
|
+
# Whether this client has connected its SuperPDP account
|
|
20
|
+
attr_accessor :connected
|
|
21
|
+
|
|
22
|
+
attr_accessor :connected_at
|
|
23
|
+
|
|
24
|
+
attr_accessor :expires_at
|
|
25
|
+
|
|
26
|
+
attr_accessor :mode_sandbox
|
|
27
|
+
|
|
28
|
+
# Last token refresh error, if any
|
|
29
|
+
attr_accessor :last_error
|
|
30
|
+
|
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
|
+
def self.attribute_map
|
|
33
|
+
{
|
|
34
|
+
:'connected' => :'connected',
|
|
35
|
+
:'connected_at' => :'connectedAt',
|
|
36
|
+
:'expires_at' => :'expiresAt',
|
|
37
|
+
:'mode_sandbox' => :'modeSandbox',
|
|
38
|
+
:'last_error' => :'lastError'
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Returns attribute mapping this model knows about
|
|
43
|
+
def self.acceptable_attribute_map
|
|
44
|
+
attribute_map
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Returns all the JSON keys this model knows about
|
|
48
|
+
def self.acceptable_attributes
|
|
49
|
+
acceptable_attribute_map.values
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Attribute type mapping.
|
|
53
|
+
def self.openapi_types
|
|
54
|
+
{
|
|
55
|
+
:'connected' => :'Boolean',
|
|
56
|
+
:'connected_at' => :'Time',
|
|
57
|
+
:'expires_at' => :'Time',
|
|
58
|
+
:'mode_sandbox' => :'Boolean',
|
|
59
|
+
:'last_error' => :'String'
|
|
60
|
+
}
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# List of attributes with nullable: true
|
|
64
|
+
def self.openapi_nullable
|
|
65
|
+
Set.new([
|
|
66
|
+
:'connected_at',
|
|
67
|
+
:'expires_at',
|
|
68
|
+
:'mode_sandbox',
|
|
69
|
+
])
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Initializes the object
|
|
73
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
74
|
+
def initialize(attributes = {})
|
|
75
|
+
if (!attributes.is_a?(Hash))
|
|
76
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::SuperPDPStatusResponse` initialize method"
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
80
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
81
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
82
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::SuperPDPStatusResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
84
|
+
end
|
|
85
|
+
h[k.to_sym] = v
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'connected')
|
|
89
|
+
self.connected = attributes[:'connected']
|
|
90
|
+
else
|
|
91
|
+
self.connected = nil
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'connected_at')
|
|
95
|
+
self.connected_at = attributes[:'connected_at']
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'expires_at')
|
|
99
|
+
self.expires_at = attributes[:'expires_at']
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'mode_sandbox')
|
|
103
|
+
self.mode_sandbox = attributes[:'mode_sandbox']
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'last_error')
|
|
107
|
+
self.last_error = attributes[:'last_error']
|
|
108
|
+
else
|
|
109
|
+
self.last_error = ''
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
114
|
+
# @return Array for valid properties with the reasons
|
|
115
|
+
def list_invalid_properties
|
|
116
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
117
|
+
invalid_properties = Array.new
|
|
118
|
+
if @connected.nil?
|
|
119
|
+
invalid_properties.push('invalid value for "connected", connected cannot be nil.')
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
invalid_properties
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Check to see if the all the properties in the model are valid
|
|
126
|
+
# @return true if the model is valid
|
|
127
|
+
def valid?
|
|
128
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
129
|
+
return false if @connected.nil?
|
|
130
|
+
true
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Custom attribute writer method with validation
|
|
134
|
+
# @param [Object] connected Value to be assigned
|
|
135
|
+
def connected=(connected)
|
|
136
|
+
if connected.nil?
|
|
137
|
+
fail ArgumentError, 'connected cannot be nil'
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
@connected = connected
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Checks equality by comparing each attribute.
|
|
144
|
+
# @param [Object] Object to be compared
|
|
145
|
+
def ==(o)
|
|
146
|
+
return true if self.equal?(o)
|
|
147
|
+
self.class == o.class &&
|
|
148
|
+
connected == o.connected &&
|
|
149
|
+
connected_at == o.connected_at &&
|
|
150
|
+
expires_at == o.expires_at &&
|
|
151
|
+
mode_sandbox == o.mode_sandbox &&
|
|
152
|
+
last_error == o.last_error
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# @see the `==` method
|
|
156
|
+
# @param [Object] Object to be compared
|
|
157
|
+
def eql?(o)
|
|
158
|
+
self == o
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Calculates hash code according to all attributes.
|
|
162
|
+
# @return [Integer] Hash code
|
|
163
|
+
def hash
|
|
164
|
+
[connected, connected_at, expires_at, mode_sandbox, last_error].hash
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Builds the object from hash
|
|
168
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
169
|
+
# @return [Object] Returns the model itself
|
|
170
|
+
def self.build_from_hash(attributes)
|
|
171
|
+
return nil unless attributes.is_a?(Hash)
|
|
172
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
173
|
+
transformed_hash = {}
|
|
174
|
+
openapi_types.each_pair do |key, type|
|
|
175
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
176
|
+
transformed_hash["#{key}"] = nil
|
|
177
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
178
|
+
# check to ensure the input is an array given that the attribute
|
|
179
|
+
# is documented as an array but the input is not
|
|
180
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
181
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
182
|
+
end
|
|
183
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
184
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
new(transformed_hash)
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Returns the object in the form of hash
|
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
|
192
|
+
def to_hash
|
|
193
|
+
hash = {}
|
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
195
|
+
value = self.send(attr)
|
|
196
|
+
if value.nil?
|
|
197
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
198
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
hash[param] = _to_hash(value)
|
|
202
|
+
end
|
|
203
|
+
hash
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
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
|
|
|
@@ -39,6 +39,8 @@ module FactPulse
|
|
|
39
39
|
|
|
40
40
|
attr_accessor :vat_number
|
|
41
41
|
|
|
42
|
+
attr_accessor :tax_registration_id
|
|
43
|
+
|
|
42
44
|
attr_accessor :iban
|
|
43
45
|
|
|
44
46
|
attr_accessor :bic
|
|
@@ -67,6 +69,7 @@ module FactPulse
|
|
|
67
69
|
:'siren' => :'siren',
|
|
68
70
|
:'siret' => :'siret',
|
|
69
71
|
:'vat_number' => :'vat_number',
|
|
72
|
+
:'tax_registration_id' => :'tax_registration_id',
|
|
70
73
|
:'iban' => :'iban',
|
|
71
74
|
:'bic' => :'bic',
|
|
72
75
|
:'bank_account_name' => :'bank_account_name',
|
|
@@ -90,7 +93,7 @@ module FactPulse
|
|
|
90
93
|
# Attribute type mapping.
|
|
91
94
|
def self.openapi_types
|
|
92
95
|
{
|
|
93
|
-
:'electronic_address' => :'
|
|
96
|
+
:'electronic_address' => :'ElectronicAddressInput',
|
|
94
97
|
:'supplier_id' => :'Integer',
|
|
95
98
|
:'private_id' => :'String',
|
|
96
99
|
:'supplier_bank_account_code' => :'Integer',
|
|
@@ -101,13 +104,14 @@ module FactPulse
|
|
|
101
104
|
:'siren' => :'String',
|
|
102
105
|
:'siret' => :'String',
|
|
103
106
|
:'vat_number' => :'String',
|
|
107
|
+
:'tax_registration_id' => :'String',
|
|
104
108
|
:'iban' => :'String',
|
|
105
109
|
:'bic' => :'String',
|
|
106
110
|
:'bank_account_name' => :'String',
|
|
107
111
|
:'proprietary_id' => :'String',
|
|
108
|
-
:'postal_address' => :'
|
|
112
|
+
:'postal_address' => :'PostalAddressInput',
|
|
109
113
|
:'contact' => :'Contact',
|
|
110
|
-
:'global_ids' => :'Array<
|
|
114
|
+
:'global_ids' => :'Array<ElectronicAddressInput>'
|
|
111
115
|
}
|
|
112
116
|
end
|
|
113
117
|
|
|
@@ -124,6 +128,7 @@ module FactPulse
|
|
|
124
128
|
:'siren',
|
|
125
129
|
:'siret',
|
|
126
130
|
:'vat_number',
|
|
131
|
+
:'tax_registration_id',
|
|
127
132
|
:'iban',
|
|
128
133
|
:'bic',
|
|
129
134
|
:'bank_account_name',
|
|
@@ -196,6 +201,10 @@ module FactPulse
|
|
|
196
201
|
self.vat_number = attributes[:'vat_number']
|
|
197
202
|
end
|
|
198
203
|
|
|
204
|
+
if attributes.key?(:'tax_registration_id')
|
|
205
|
+
self.tax_registration_id = attributes[:'tax_registration_id']
|
|
206
|
+
end
|
|
207
|
+
|
|
199
208
|
if attributes.key?(:'iban')
|
|
200
209
|
self.iban = attributes[:'iban']
|
|
201
210
|
end
|
|
@@ -258,6 +267,7 @@ module FactPulse
|
|
|
258
267
|
siren == o.siren &&
|
|
259
268
|
siret == o.siret &&
|
|
260
269
|
vat_number == o.vat_number &&
|
|
270
|
+
tax_registration_id == o.tax_registration_id &&
|
|
261
271
|
iban == o.iban &&
|
|
262
272
|
bic == o.bic &&
|
|
263
273
|
bank_account_name == o.bank_account_name &&
|
|
@@ -276,7 +286,7 @@ module FactPulse
|
|
|
276
286
|
# Calculates hash code according to all attributes.
|
|
277
287
|
# @return [Integer] Hash code
|
|
278
288
|
def hash
|
|
279
|
-
[electronic_address, supplier_id, private_id, supplier_bank_account_code, supplier_service_id, name, trading_business_name, legal_description, siren, siret, vat_number, iban, bic, bank_account_name, proprietary_id, postal_address, contact, global_ids].hash
|
|
289
|
+
[electronic_address, supplier_id, private_id, supplier_bank_account_code, supplier_service_id, name, trading_business_name, legal_description, siren, siret, vat_number, tax_registration_id, iban, bic, bank_account_name, proprietary_id, postal_address, contact, global_ids].hash
|
|
280
290
|
end
|
|
281
291
|
|
|
282
292
|
# Builds the object from hash
|