factpulse 4.3.0 → 4.5.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 +11 -5
- data/Gemfile.lock +15 -13
- 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 → Amount3.md} +2 -2
- data/docs/{AFNORContainsOperator.md → Amounteur.md} +2 -2
- data/docs/ClientManagementApi.md +383 -0
- data/docs/CreateCDARRequest.md +7 -1
- data/docs/DeliveryParty.md +2 -2
- data/docs/ElectronicAddressInput.md +20 -0
- data/docs/ElectronicAddressOutput.md +20 -0
- data/docs/ElectronicSignatureApi.md +6 -6
- data/docs/EncaisseAmountByRate.md +20 -0
- data/docs/EncaisseeRequest.md +8 -2
- data/docs/FacturXConversionApi.md +2 -2
- data/docs/FacturXPDFXMLVerificationApi.md +4 -4
- data/docs/FacturXValidationApi.md +4 -4
- data/docs/FactureElectroniqueModelsInvoiceTypeCode.md +15 -0
- data/docs/{ChorusProCredentials.md → FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md} +2 -2
- data/docs/{ValidationErrorResponse.md → FactureElectroniqueRestApiSchemasValidationValidationErrorResponse.md} +2 -2
- data/docs/Flux10EReportingApi.md +22 -12
- data/docs/Flux6InvoiceLifecycleCDARApi.md +45 -21
- 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 +16 -10
- data/docs/InvoiceInput.md +4 -0
- data/docs/{AFNORCallbackAuthentication.md → Invoicedata.md} +9 -9
- data/docs/LifecycleEvent.md +2 -0
- data/docs/LifecycleResponse.md +9 -1
- data/docs/ParseApi.md +4 -4
- 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 +6 -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/SuperPDPVatRegimeResponse.md +20 -0
- data/docs/SuperPDPVatRegimeUpdateRequest.md +20 -0
- data/docs/Supplier.md +5 -3
- data/docs/TaxBreakdownInput.md +7 -1
- data/docs/TaxRepresentative.md +1 -1
- data/docs/Taxamounteur.md +15 -0
- data/docs/ValidateCDARRequest.md +3 -1
- data/docs/ValidationApi.md +3 -3
- data/docs/ValidationError.md +5 -1
- 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 +333 -1
- data/lib/factpulse/api/downloads_api.rb +1 -1
- data/lib/factpulse/api/electronic_signature_api.rb +7 -7
- data/lib/factpulse/api/factur_x_conversion_api.rb +3 -3
- data/lib/factpulse/api/factur_x_validation_api.rb +5 -5
- data/lib/factpulse/api/factur_xpdfxml_verification_api.rb +5 -5
- data/lib/factpulse/api/flux10_e_reporting_api.rb +14 -5
- data/lib/factpulse/api/flux6_invoice_lifecycle_cdar_api.rb +33 -5
- data/lib/factpulse/api/health_api.rb +1 -1
- data/lib/factpulse/api/invoice_generation_api.rb +11 -5
- data/lib/factpulse/api/parse_api.rb +5 -5
- data/lib/factpulse/api/references_api.rb +1 -1
- data/lib/factpulse/api/validation_api.rb +5 -5
- 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/afnor_unique_directory_line_status.rb +40 -0
- 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/amount3.rb +104 -0
- 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_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 +70 -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/{afnor_basic_authentication.rb → encaisse_amount_by_rate.rb} +37 -35
- data/lib/factpulse/models/encaisseamount.rb +2 -2
- data/lib/factpulse/models/encaisseamount1.rb +1 -1
- data/lib/factpulse/models/encaissee_request.rb +54 -23
- 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/{chorus_pro_credentials.rb → facture_electronique_rest_api_schemas_chorus_pro_chorus_pro_credentials.rb} +4 -4
- data/lib/factpulse/models/facture_electronique_rest_api_schemas_ereporting_invoice_type_code.rb +1 -1
- data/lib/factpulse/models/facture_electronique_rest_api_schemas_processing_chorus_pro_credentials.rb +1 -1
- data/lib/factpulse/models/{validation_error_response.rb → facture_electronique_rest_api_schemas_validation_validation_error_response.rb} +4 -4
- 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 +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/{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 +49 -5
- 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 +3 -2
- 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 +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 +66 -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_callback_header.rb → super_pdp_disconnect_response.rb} +38 -35
- data/lib/factpulse/models/super_pdp_status_response.rb +208 -0
- data/lib/factpulse/models/super_pdp_vat_regime_response.rb +195 -0
- data/lib/factpulse/models/{afnor_webhook_metadata.rb → super_pdp_vat_regime_update_request.rb} +33 -63
- 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 +18 -6
- 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 +24 -5
- data/lib/factpulse/models/validation_error_detail.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 +21 -13
- metadata +42 -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/lib/factpulse/models/afnoro_auth2_authentication.rb +0 -216
|
@@ -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,22 +14,41 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
attr_accessor :
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
# Represents an electronic invoicing address, composed of an identifier and its scheme (SchemeID) in accordance with EN16931. Example: { \"identifier\": \"123456789\", \"scheme_id\": \"0225\" }
|
|
18
|
+
class ElectronicAddressOutput < ApiModelBase
|
|
19
|
+
# Electronic address identifier (e.g., SIREN, SIRET, routing code)
|
|
20
|
+
attr_accessor :identifier
|
|
21
|
+
|
|
22
|
+
# Identification scheme (EAS code)
|
|
23
|
+
attr_accessor :scheme_id
|
|
24
|
+
|
|
25
|
+
class EnumAttributeValidator
|
|
26
|
+
attr_reader :datatype
|
|
27
|
+
attr_reader :allowable_values
|
|
28
|
+
|
|
29
|
+
def initialize(datatype, allowable_values)
|
|
30
|
+
@allowable_values = allowable_values.map do |value|
|
|
31
|
+
case datatype.to_s
|
|
32
|
+
when /Integer/i
|
|
33
|
+
value.to_i
|
|
34
|
+
when /Float/i
|
|
35
|
+
value.to_f
|
|
36
|
+
else
|
|
37
|
+
value
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
23
41
|
|
|
24
|
-
|
|
42
|
+
def valid?(value)
|
|
43
|
+
!value || allowable_values.include?(value)
|
|
44
|
+
end
|
|
45
|
+
end
|
|
25
46
|
|
|
26
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
48
|
def self.attribute_map
|
|
28
49
|
{
|
|
29
|
-
:'
|
|
30
|
-
:'
|
|
31
|
-
:'authentication' => :'authentication',
|
|
32
|
-
:'signature' => :'signature'
|
|
50
|
+
:'identifier' => :'identifier',
|
|
51
|
+
:'scheme_id' => :'schemeId'
|
|
33
52
|
}
|
|
34
53
|
end
|
|
35
54
|
|
|
@@ -46,10 +65,8 @@ module FactPulse
|
|
|
46
65
|
# Attribute type mapping.
|
|
47
66
|
def self.openapi_types
|
|
48
67
|
{
|
|
49
|
-
:'
|
|
50
|
-
:'
|
|
51
|
-
:'authentication' => :'AFNORCallbackAuthentication',
|
|
52
|
-
:'signature' => :'AFNORCallbackSignature'
|
|
68
|
+
:'identifier' => :'String',
|
|
69
|
+
:'scheme_id' => :'SchemeID'
|
|
53
70
|
}
|
|
54
71
|
end
|
|
55
72
|
|
|
@@ -63,36 +80,26 @@ module FactPulse
|
|
|
63
80
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
81
|
def initialize(attributes = {})
|
|
65
82
|
if (!attributes.is_a?(Hash))
|
|
66
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::
|
|
83
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::ElectronicAddressOutput` initialize method"
|
|
67
84
|
end
|
|
68
85
|
|
|
69
86
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
87
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
71
88
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
72
89
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
73
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::
|
|
90
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::ElectronicAddressOutput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
74
91
|
end
|
|
75
92
|
h[k.to_sym] = v
|
|
76
93
|
}
|
|
77
94
|
|
|
78
|
-
if attributes.key?(:'
|
|
79
|
-
self.
|
|
95
|
+
if attributes.key?(:'identifier')
|
|
96
|
+
self.identifier = attributes[:'identifier']
|
|
80
97
|
else
|
|
81
|
-
self.
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
if attributes.key?(:'headers')
|
|
85
|
-
if (value = attributes[:'headers']).is_a?(Array)
|
|
86
|
-
self.headers = value
|
|
87
|
-
end
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
if attributes.key?(:'authentication')
|
|
91
|
-
self.authentication = attributes[:'authentication']
|
|
98
|
+
self.identifier = nil
|
|
92
99
|
end
|
|
93
100
|
|
|
94
|
-
if attributes.key?(:'
|
|
95
|
-
self.
|
|
101
|
+
if attributes.key?(:'scheme_id')
|
|
102
|
+
self.scheme_id = attributes[:'scheme_id']
|
|
96
103
|
end
|
|
97
104
|
end
|
|
98
105
|
|
|
@@ -101,8 +108,8 @@ module FactPulse
|
|
|
101
108
|
def list_invalid_properties
|
|
102
109
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
103
110
|
invalid_properties = Array.new
|
|
104
|
-
if @
|
|
105
|
-
invalid_properties.push('invalid value for "
|
|
111
|
+
if @identifier.nil?
|
|
112
|
+
invalid_properties.push('invalid value for "identifier", identifier cannot be nil.')
|
|
106
113
|
end
|
|
107
114
|
|
|
108
115
|
invalid_properties
|
|
@@ -112,18 +119,18 @@ module FactPulse
|
|
|
112
119
|
# @return true if the model is valid
|
|
113
120
|
def valid?
|
|
114
121
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
115
|
-
return false if @
|
|
122
|
+
return false if @identifier.nil?
|
|
116
123
|
true
|
|
117
124
|
end
|
|
118
125
|
|
|
119
126
|
# Custom attribute writer method with validation
|
|
120
|
-
# @param [Object]
|
|
121
|
-
def
|
|
122
|
-
if
|
|
123
|
-
fail ArgumentError, '
|
|
127
|
+
# @param [Object] identifier Value to be assigned
|
|
128
|
+
def identifier=(identifier)
|
|
129
|
+
if identifier.nil?
|
|
130
|
+
fail ArgumentError, 'identifier cannot be nil'
|
|
124
131
|
end
|
|
125
132
|
|
|
126
|
-
@
|
|
133
|
+
@identifier = identifier
|
|
127
134
|
end
|
|
128
135
|
|
|
129
136
|
# Checks equality by comparing each attribute.
|
|
@@ -131,10 +138,8 @@ module FactPulse
|
|
|
131
138
|
def ==(o)
|
|
132
139
|
return true if self.equal?(o)
|
|
133
140
|
self.class == o.class &&
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
authentication == o.authentication &&
|
|
137
|
-
signature == o.signature
|
|
141
|
+
identifier == o.identifier &&
|
|
142
|
+
scheme_id == o.scheme_id
|
|
138
143
|
end
|
|
139
144
|
|
|
140
145
|
# @see the `==` method
|
|
@@ -146,7 +151,7 @@ module FactPulse
|
|
|
146
151
|
# Calculates hash code according to all attributes.
|
|
147
152
|
# @return [Integer] Hash code
|
|
148
153
|
def hash
|
|
149
|
-
[
|
|
154
|
+
[identifier, scheme_id].hash
|
|
150
155
|
end
|
|
151
156
|
|
|
152
157
|
# 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
|
|
|
@@ -14,16 +14,18 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
# Montant encaissé TTC pour un taux de TVA (un bloc MEN, MDG-43).
|
|
18
|
+
class EncaisseAmountByRate < ApiModelBase
|
|
19
|
+
# Taux de TVA applicable au montant encaissé, en % (MDT-224)
|
|
20
|
+
attr_accessor :rate
|
|
19
21
|
|
|
20
|
-
attr_accessor :
|
|
22
|
+
attr_accessor :amount
|
|
21
23
|
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
25
|
def self.attribute_map
|
|
24
26
|
{
|
|
25
|
-
:'
|
|
26
|
-
:'
|
|
27
|
+
:'rate' => :'rate',
|
|
28
|
+
:'amount' => :'amount'
|
|
27
29
|
}
|
|
28
30
|
end
|
|
29
31
|
|
|
@@ -40,8 +42,8 @@ module FactPulse
|
|
|
40
42
|
# Attribute type mapping.
|
|
41
43
|
def self.openapi_types
|
|
42
44
|
{
|
|
43
|
-
:'
|
|
44
|
-
:'
|
|
45
|
+
:'rate' => :'Float',
|
|
46
|
+
:'amount' => :'Amount1'
|
|
45
47
|
}
|
|
46
48
|
end
|
|
47
49
|
|
|
@@ -55,28 +57,28 @@ module FactPulse
|
|
|
55
57
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
56
58
|
def initialize(attributes = {})
|
|
57
59
|
if (!attributes.is_a?(Hash))
|
|
58
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::EncaisseAmountByRate` initialize method"
|
|
59
61
|
end
|
|
60
62
|
|
|
61
63
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
64
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
63
65
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
66
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
65
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::
|
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::EncaisseAmountByRate`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
66
68
|
end
|
|
67
69
|
h[k.to_sym] = v
|
|
68
70
|
}
|
|
69
71
|
|
|
70
|
-
if attributes.key?(:'
|
|
71
|
-
self.
|
|
72
|
+
if attributes.key?(:'rate')
|
|
73
|
+
self.rate = attributes[:'rate']
|
|
72
74
|
else
|
|
73
|
-
self.
|
|
75
|
+
self.rate = nil
|
|
74
76
|
end
|
|
75
77
|
|
|
76
|
-
if attributes.key?(:'
|
|
77
|
-
self.
|
|
78
|
+
if attributes.key?(:'amount')
|
|
79
|
+
self.amount = attributes[:'amount']
|
|
78
80
|
else
|
|
79
|
-
self.
|
|
81
|
+
self.amount = nil
|
|
80
82
|
end
|
|
81
83
|
end
|
|
82
84
|
|
|
@@ -85,12 +87,12 @@ module FactPulse
|
|
|
85
87
|
def list_invalid_properties
|
|
86
88
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
87
89
|
invalid_properties = Array.new
|
|
88
|
-
if @
|
|
89
|
-
invalid_properties.push('invalid value for "
|
|
90
|
+
if @rate.nil?
|
|
91
|
+
invalid_properties.push('invalid value for "rate", rate cannot be nil.')
|
|
90
92
|
end
|
|
91
93
|
|
|
92
|
-
if @
|
|
93
|
-
invalid_properties.push('invalid value for "
|
|
94
|
+
if @amount.nil?
|
|
95
|
+
invalid_properties.push('invalid value for "amount", amount cannot be nil.')
|
|
94
96
|
end
|
|
95
97
|
|
|
96
98
|
invalid_properties
|
|
@@ -100,29 +102,29 @@ module FactPulse
|
|
|
100
102
|
# @return true if the model is valid
|
|
101
103
|
def valid?
|
|
102
104
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
103
|
-
return false if @
|
|
104
|
-
return false if @
|
|
105
|
+
return false if @rate.nil?
|
|
106
|
+
return false if @amount.nil?
|
|
105
107
|
true
|
|
106
108
|
end
|
|
107
109
|
|
|
108
110
|
# Custom attribute writer method with validation
|
|
109
|
-
# @param [Object]
|
|
110
|
-
def
|
|
111
|
-
if
|
|
112
|
-
fail ArgumentError, '
|
|
111
|
+
# @param [Object] rate Value to be assigned
|
|
112
|
+
def rate=(rate)
|
|
113
|
+
if rate.nil?
|
|
114
|
+
fail ArgumentError, 'rate cannot be nil'
|
|
113
115
|
end
|
|
114
116
|
|
|
115
|
-
@
|
|
117
|
+
@rate = rate
|
|
116
118
|
end
|
|
117
119
|
|
|
118
120
|
# Custom attribute writer method with validation
|
|
119
|
-
# @param [Object]
|
|
120
|
-
def
|
|
121
|
-
if
|
|
122
|
-
fail ArgumentError, '
|
|
121
|
+
# @param [Object] amount Value to be assigned
|
|
122
|
+
def amount=(amount)
|
|
123
|
+
if amount.nil?
|
|
124
|
+
fail ArgumentError, 'amount cannot be nil'
|
|
123
125
|
end
|
|
124
126
|
|
|
125
|
-
@
|
|
127
|
+
@amount = amount
|
|
126
128
|
end
|
|
127
129
|
|
|
128
130
|
# Checks equality by comparing each attribute.
|
|
@@ -130,8 +132,8 @@ module FactPulse
|
|
|
130
132
|
def ==(o)
|
|
131
133
|
return true if self.equal?(o)
|
|
132
134
|
self.class == o.class &&
|
|
133
|
-
|
|
134
|
-
|
|
135
|
+
rate == o.rate &&
|
|
136
|
+
amount == o.amount
|
|
135
137
|
end
|
|
136
138
|
|
|
137
139
|
# @see the `==` method
|
|
@@ -143,7 +145,7 @@ module FactPulse
|
|
|
143
145
|
# Calculates hash code according to all attributes.
|
|
144
146
|
# @return [Integer] Hash code
|
|
145
147
|
def hash
|
|
146
|
-
[
|
|
148
|
+
[rate, amount].hash
|
|
147
149
|
end
|
|
148
150
|
|
|
149
151
|
# 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
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
-
# Montant encaissé
|
|
17
|
+
# Montant TTC encaissé à un seul taux (statut 212). Négatif pour un décaissement. Pour plusieurs taux, utiliser encaisseAmountsByRate
|
|
18
18
|
module Encaisseamount
|
|
19
19
|
class << self
|
|
20
20
|
# List of class defined in anyOf (OpenAPI v3)
|
|
@@ -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
|
|
|
@@ -25,11 +25,17 @@ module FactPulse
|
|
|
25
25
|
# SIREN de l'acheteur (destinataire du statut)
|
|
26
26
|
attr_accessor :invoice_buyer_siren
|
|
27
27
|
|
|
28
|
-
# Adresse électronique de l'acheteur (MDT-73)
|
|
29
28
|
attr_accessor :invoice_buyer_electronic_address
|
|
30
29
|
|
|
31
30
|
attr_accessor :amount
|
|
32
31
|
|
|
32
|
+
# Taux de TVA du montant encaissé en % (MDT-224, requis par BR-FR-CDV-14 ; défaut 20). Ignoré avec amountsByRate
|
|
33
|
+
attr_accessor :vat_rate
|
|
34
|
+
|
|
35
|
+
attr_accessor :amounts_by_rate
|
|
36
|
+
|
|
37
|
+
attr_accessor :comment
|
|
38
|
+
|
|
33
39
|
# Code devise ISO 4217
|
|
34
40
|
attr_accessor :currency
|
|
35
41
|
|
|
@@ -54,6 +60,9 @@ module FactPulse
|
|
|
54
60
|
:'invoice_buyer_siren' => :'invoiceBuyerSiren',
|
|
55
61
|
:'invoice_buyer_electronic_address' => :'invoiceBuyerElectronicAddress',
|
|
56
62
|
:'amount' => :'amount',
|
|
63
|
+
:'vat_rate' => :'vatRate',
|
|
64
|
+
:'amounts_by_rate' => :'amountsByRate',
|
|
65
|
+
:'comment' => :'comment',
|
|
57
66
|
:'currency' => :'currency',
|
|
58
67
|
:'sender_siren' => :'senderSiren',
|
|
59
68
|
:'flow_type' => :'flowType',
|
|
@@ -81,7 +90,10 @@ module FactPulse
|
|
|
81
90
|
:'invoice_issue_date' => :'Date',
|
|
82
91
|
:'invoice_buyer_siren' => :'String',
|
|
83
92
|
:'invoice_buyer_electronic_address' => :'String',
|
|
84
|
-
:'amount' => :'
|
|
93
|
+
:'amount' => :'Amount2',
|
|
94
|
+
:'vat_rate' => :'Float',
|
|
95
|
+
:'amounts_by_rate' => :'Array<EncaisseAmountByRate>',
|
|
96
|
+
:'comment' => :'String',
|
|
85
97
|
:'currency' => :'String',
|
|
86
98
|
:'sender_siren' => :'String',
|
|
87
99
|
:'flow_type' => :'String',
|
|
@@ -95,6 +107,10 @@ module FactPulse
|
|
|
95
107
|
# List of attributes with nullable: true
|
|
96
108
|
def self.openapi_nullable
|
|
97
109
|
Set.new([
|
|
110
|
+
:'invoice_buyer_electronic_address',
|
|
111
|
+
:'amount',
|
|
112
|
+
:'amounts_by_rate',
|
|
113
|
+
:'comment',
|
|
98
114
|
:'sender_siren',
|
|
99
115
|
:'pdp_flow_service_url',
|
|
100
116
|
:'pdp_token_url',
|
|
@@ -139,14 +155,26 @@ module FactPulse
|
|
|
139
155
|
|
|
140
156
|
if attributes.key?(:'invoice_buyer_electronic_address')
|
|
141
157
|
self.invoice_buyer_electronic_address = attributes[:'invoice_buyer_electronic_address']
|
|
142
|
-
else
|
|
143
|
-
self.invoice_buyer_electronic_address = nil
|
|
144
158
|
end
|
|
145
159
|
|
|
146
160
|
if attributes.key?(:'amount')
|
|
147
161
|
self.amount = attributes[:'amount']
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if attributes.key?(:'vat_rate')
|
|
165
|
+
self.vat_rate = attributes[:'vat_rate']
|
|
148
166
|
else
|
|
149
|
-
self.
|
|
167
|
+
self.vat_rate = 20
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
if attributes.key?(:'amounts_by_rate')
|
|
171
|
+
if (value = attributes[:'amounts_by_rate']).is_a?(Array)
|
|
172
|
+
self.amounts_by_rate = value
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if attributes.key?(:'comment')
|
|
177
|
+
self.comment = attributes[:'comment']
|
|
150
178
|
end
|
|
151
179
|
|
|
152
180
|
if attributes.key?(:'currency')
|
|
@@ -199,12 +227,12 @@ module FactPulse
|
|
|
199
227
|
invalid_properties.push('invalid value for "invoice_buyer_siren", invoice_buyer_siren cannot be nil.')
|
|
200
228
|
end
|
|
201
229
|
|
|
202
|
-
if
|
|
203
|
-
invalid_properties.push('invalid value for "
|
|
230
|
+
if !@amounts_by_rate.nil? && @amounts_by_rate.length < 1
|
|
231
|
+
invalid_properties.push('invalid value for "amounts_by_rate", number of items must be greater than or equal to 1.')
|
|
204
232
|
end
|
|
205
233
|
|
|
206
|
-
if
|
|
207
|
-
invalid_properties.push('invalid value for "
|
|
234
|
+
if !@comment.nil? && @comment.to_s.length > 2000
|
|
235
|
+
invalid_properties.push('invalid value for "comment", the character length must be smaller than or equal to 2000.')
|
|
208
236
|
end
|
|
209
237
|
|
|
210
238
|
invalid_properties
|
|
@@ -217,8 +245,8 @@ module FactPulse
|
|
|
217
245
|
return false if @invoice_id.nil?
|
|
218
246
|
return false if @invoice_issue_date.nil?
|
|
219
247
|
return false if @invoice_buyer_siren.nil?
|
|
220
|
-
return false if
|
|
221
|
-
return false if
|
|
248
|
+
return false if !@amounts_by_rate.nil? && @amounts_by_rate.length < 1
|
|
249
|
+
return false if !@comment.nil? && @comment.to_s.length > 2000
|
|
222
250
|
true
|
|
223
251
|
end
|
|
224
252
|
|
|
@@ -253,23 +281,23 @@ module FactPulse
|
|
|
253
281
|
end
|
|
254
282
|
|
|
255
283
|
# Custom attribute writer method with validation
|
|
256
|
-
# @param [Object]
|
|
257
|
-
def
|
|
258
|
-
if
|
|
259
|
-
fail ArgumentError, '
|
|
284
|
+
# @param [Object] amounts_by_rate Value to be assigned
|
|
285
|
+
def amounts_by_rate=(amounts_by_rate)
|
|
286
|
+
if !amounts_by_rate.nil? && amounts_by_rate.length < 1
|
|
287
|
+
fail ArgumentError, 'invalid value for "amounts_by_rate", number of items must be greater than or equal to 1.'
|
|
260
288
|
end
|
|
261
289
|
|
|
262
|
-
@
|
|
290
|
+
@amounts_by_rate = amounts_by_rate
|
|
263
291
|
end
|
|
264
292
|
|
|
265
293
|
# Custom attribute writer method with validation
|
|
266
|
-
# @param [Object]
|
|
267
|
-
def
|
|
268
|
-
if
|
|
269
|
-
fail ArgumentError, '
|
|
294
|
+
# @param [Object] comment Value to be assigned
|
|
295
|
+
def comment=(comment)
|
|
296
|
+
if !comment.nil? && comment.to_s.length > 2000
|
|
297
|
+
fail ArgumentError, 'invalid value for "comment", the character length must be smaller than or equal to 2000.'
|
|
270
298
|
end
|
|
271
299
|
|
|
272
|
-
@
|
|
300
|
+
@comment = comment
|
|
273
301
|
end
|
|
274
302
|
|
|
275
303
|
# Checks equality by comparing each attribute.
|
|
@@ -282,6 +310,9 @@ module FactPulse
|
|
|
282
310
|
invoice_buyer_siren == o.invoice_buyer_siren &&
|
|
283
311
|
invoice_buyer_electronic_address == o.invoice_buyer_electronic_address &&
|
|
284
312
|
amount == o.amount &&
|
|
313
|
+
vat_rate == o.vat_rate &&
|
|
314
|
+
amounts_by_rate == o.amounts_by_rate &&
|
|
315
|
+
comment == o.comment &&
|
|
285
316
|
currency == o.currency &&
|
|
286
317
|
sender_siren == o.sender_siren &&
|
|
287
318
|
flow_type == o.flow_type &&
|
|
@@ -300,7 +331,7 @@ module FactPulse
|
|
|
300
331
|
# Calculates hash code according to all attributes.
|
|
301
332
|
# @return [Integer] Hash code
|
|
302
333
|
def hash
|
|
303
|
-
[invoice_id, invoice_issue_date, invoice_buyer_siren, invoice_buyer_electronic_address, amount, currency, sender_siren, flow_type, pdp_flow_service_url, pdp_token_url, pdp_client_id, pdp_client_secret].hash
|
|
334
|
+
[invoice_id, invoice_issue_date, invoice_buyer_siren, invoice_buyer_electronic_address, amount, vat_rate, amounts_by_rate, comment, currency, sender_siren, flow_type, pdp_flow_service_url, pdp_token_url, pdp_client_id, pdp_client_secret].hash
|
|
304
335
|
end
|
|
305
336
|
|
|
306
337
|
# Builds the object from hash
|
|
@@ -0,0 +1,54 @@
|
|
|
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 FactureElectroniqueModelsInvoiceTypeCode
|
|
18
|
+
INVOICE = "380".freeze
|
|
19
|
+
SELF_BILLED_INVOICE = "389".freeze
|
|
20
|
+
FACTORED_INVOICE = "393".freeze
|
|
21
|
+
SELF_BILLED_FACTORED_INVOICE = "501".freeze
|
|
22
|
+
PREPAYMENT_INVOICE = "386".freeze
|
|
23
|
+
SELF_BILLED_PREPAYMENT_INVOICE = "500".freeze
|
|
24
|
+
CORRECTIVE_INVOICE = "384".freeze
|
|
25
|
+
SELF_BILLED_CORRECTIVE_INVOICE = "471".freeze
|
|
26
|
+
FACTORED_CORRECTIVE_INVOICE = "472".freeze
|
|
27
|
+
SELF_BILLED_FACTORED_CORRECTIVE_INVOICE = "473".freeze
|
|
28
|
+
CREDIT_NOTE = "381".freeze
|
|
29
|
+
SELF_BILLED_CREDIT_NOTE = "261".freeze
|
|
30
|
+
GLOBAL_ALLOWANCE_CREDIT_NOTE = "262".freeze
|
|
31
|
+
FACTORED_CREDIT_NOTE = "396".freeze
|
|
32
|
+
SELF_BILLED_FACTORED_CREDIT_NOTE = "502".freeze
|
|
33
|
+
PREPAYMENT_CREDIT_NOTE = "503".freeze
|
|
34
|
+
|
|
35
|
+
def self.all_vars
|
|
36
|
+
@all_vars ||= [INVOICE, SELF_BILLED_INVOICE, FACTORED_INVOICE, SELF_BILLED_FACTORED_INVOICE, PREPAYMENT_INVOICE, SELF_BILLED_PREPAYMENT_INVOICE, CORRECTIVE_INVOICE, SELF_BILLED_CORRECTIVE_INVOICE, FACTORED_CORRECTIVE_INVOICE, SELF_BILLED_FACTORED_CORRECTIVE_INVOICE, CREDIT_NOTE, SELF_BILLED_CREDIT_NOTE, GLOBAL_ALLOWANCE_CREDIT_NOTE, FACTORED_CREDIT_NOTE, SELF_BILLED_FACTORED_CREDIT_NOTE, PREPAYMENT_CREDIT_NOTE].freeze
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Builds the enum from string
|
|
40
|
+
# @param [String] The enum value in the form of the string
|
|
41
|
+
# @return [String] The enum value
|
|
42
|
+
def self.build_from_hash(value)
|
|
43
|
+
new.build_from_hash(value)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Builds the enum from string
|
|
47
|
+
# @param [String] The enum value in the form of the string
|
|
48
|
+
# @return [String] The enum value
|
|
49
|
+
def build_from_hash(value)
|
|
50
|
+
return value if FactureElectroniqueModelsInvoiceTypeCode.all_vars.include?(value)
|
|
51
|
+
raise "Invalid ENUM value #{value} for class #FactureElectroniqueModelsInvoiceTypeCode"
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|