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
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
# FactPulse SDK - Thin HTTP wrapper with auto-polling.
|
|
4
4
|
#
|
|
5
5
|
# Usage:
|
|
6
|
-
# client =
|
|
6
|
+
# client = FactPulse::Client.new(email: 'email', password: 'password', client_uid: 'client_uid')
|
|
7
|
+
# # or with a pre-obtained JWT (e.g. dashboard test token):
|
|
8
|
+
# client = FactPulse::Client.new(token: 'eyJ...')
|
|
9
|
+
# # positional form (backward compatible):
|
|
10
|
+
# client = FactPulse::Client.new('email', 'password', 'client_uid')
|
|
7
11
|
#
|
|
8
12
|
# # POST /api/v1/processing/invoices/submit-complete-async
|
|
9
13
|
# result = client.post('processing/invoices/submit-complete-async',
|
|
@@ -31,15 +35,38 @@ module FactPulse
|
|
|
31
35
|
class Client
|
|
32
36
|
DEFAULT_API_URL = 'https://factpulse.fr'
|
|
33
37
|
|
|
34
|
-
|
|
38
|
+
# Create a client.
|
|
39
|
+
#
|
|
40
|
+
# Keyword form (recommended):
|
|
41
|
+
# FactPulse::Client.new(email: '...', password: '...', client_uid: '...')
|
|
42
|
+
# FactPulse::Client.new(token: 'eyJ...') # pre-obtained JWT (e.g. dashboard test token)
|
|
43
|
+
#
|
|
44
|
+
# Positional form (backward compatible with <= 4.3.0):
|
|
45
|
+
# FactPulse::Client.new('email', 'password', 'client_uid')
|
|
46
|
+
def initialize(*args, email: nil, password: nil, client_uid: nil, token: nil,
|
|
47
|
+
api_url: DEFAULT_API_URL, timeout: 60, polling_timeout: 120)
|
|
48
|
+
unless args.empty?
|
|
49
|
+
if email || password || client_uid || token
|
|
50
|
+
raise ArgumentError, 'use either positional (email, password, client_uid) or keyword arguments, not both'
|
|
51
|
+
end
|
|
52
|
+
unless (2..3).cover?(args.length)
|
|
53
|
+
raise ArgumentError, "wrong number of arguments (given #{args.length}, expected 3)"
|
|
54
|
+
end
|
|
55
|
+
email, password, client_uid = args
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
if token.nil? && (email.nil? || password.nil?)
|
|
59
|
+
raise ArgumentError, 'provide email: and password: (or token: with a pre-obtained JWT)'
|
|
60
|
+
end
|
|
61
|
+
|
|
35
62
|
@email = email
|
|
36
63
|
@password = password
|
|
37
64
|
@client_uid = client_uid
|
|
38
65
|
@api_url = api_url.chomp('/')
|
|
39
66
|
@timeout = timeout
|
|
40
67
|
@polling_timeout = polling_timeout
|
|
41
|
-
@token =
|
|
42
|
-
@token_expires_at = 0
|
|
68
|
+
@token = token
|
|
69
|
+
@token_expires_at = token ? Float::INFINITY : 0
|
|
43
70
|
@token_mutex = Mutex.new
|
|
44
71
|
end
|
|
45
72
|
|
|
@@ -243,6 +270,14 @@ module FactPulse
|
|
|
243
270
|
end
|
|
244
271
|
|
|
245
272
|
def refresh_token
|
|
273
|
+
if @email.nil? || @password.nil?
|
|
274
|
+
raise Error.new(
|
|
275
|
+
'Access token expired or rejected, and no email/password available to refresh it. ' \
|
|
276
|
+
'Provide email: and password:, or create a new client with a fresh token:.',
|
|
277
|
+
status_code: 401
|
|
278
|
+
)
|
|
279
|
+
end
|
|
280
|
+
|
|
246
281
|
uri = URI("#{@api_url}/api/token/")
|
|
247
282
|
http = Net::HTTP.new(uri.host, uri.port)
|
|
248
283
|
http.use_ssl = uri.scheme == 'https'
|
|
@@ -250,7 +285,9 @@ module FactPulse
|
|
|
250
285
|
|
|
251
286
|
req = Net::HTTP::Post.new(uri)
|
|
252
287
|
req['Content-Type'] = 'application/json'
|
|
253
|
-
|
|
288
|
+
payload = { username: @email, password: @password }
|
|
289
|
+
payload[:client_uid] = @client_uid if @client_uid
|
|
290
|
+
req.body = JSON.generate(payload)
|
|
254
291
|
|
|
255
292
|
response = http.request(req)
|
|
256
293
|
|
data/lib/factpulse/models/{afnor_contains_operator.rb → afnor_contains_or_start_with_operator.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,11 +14,12 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
-
class
|
|
17
|
+
class AFNORContainsOrStartWithOperator
|
|
18
18
|
CONTAINS = "contains".freeze
|
|
19
|
+
START_WITH = "startWith".freeze
|
|
19
20
|
|
|
20
21
|
def self.all_vars
|
|
21
|
-
@all_vars ||= [CONTAINS].freeze
|
|
22
|
+
@all_vars ||= [CONTAINS, START_WITH].freeze
|
|
22
23
|
end
|
|
23
24
|
|
|
24
25
|
# Builds the enum from string
|
|
@@ -32,8 +33,8 @@ module FactPulse
|
|
|
32
33
|
# @param [String] The enum value in the form of the string
|
|
33
34
|
# @return [String] The enum value
|
|
34
35
|
def build_from_hash(value)
|
|
35
|
-
return value if
|
|
36
|
-
raise "Invalid ENUM value #{value} for class #
|
|
36
|
+
return value if AFNORContainsOrStartWithOperator.all_vars.include?(value)
|
|
37
|
+
raise "Invalid ENUM value #{value} for class #AFNORContainsOrStartWithOperator"
|
|
37
38
|
end
|
|
38
39
|
end
|
|
39
40
|
end
|
data/lib/factpulse/models/{afnor_algorithm.rb → afnor_contains_or_strict_or_start_with_operator.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,13 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
-
class
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
EDDSA_25519 = "EDDSA_25519".freeze
|
|
22
|
-
RSA_PSS = "RSA_PSS".freeze
|
|
23
|
-
EDDSA_448 = "EDDSA_448".freeze
|
|
17
|
+
class AFNORContainsOrStrictOrStartWithOperator
|
|
18
|
+
CONTAINS = "contains".freeze
|
|
19
|
+
STRICT = "strict".freeze
|
|
20
|
+
START_WITH = "startWith".freeze
|
|
24
21
|
|
|
25
22
|
def self.all_vars
|
|
26
|
-
@all_vars ||= [
|
|
23
|
+
@all_vars ||= [CONTAINS, STRICT, START_WITH].freeze
|
|
27
24
|
end
|
|
28
25
|
|
|
29
26
|
# Builds the enum from string
|
|
@@ -37,8 +34,8 @@ module FactPulse
|
|
|
37
34
|
# @param [String] The enum value in the form of the string
|
|
38
35
|
# @return [String] The enum value
|
|
39
36
|
def build_from_hash(value)
|
|
40
|
-
return value if
|
|
41
|
-
raise "Invalid ENUM value #{value} for class #
|
|
37
|
+
return value if AFNORContainsOrStrictOrStartWithOperator.all_vars.include?(value)
|
|
38
|
+
raise "Invalid ENUM value #{value} for class #AFNORContainsOrStrictOrStartWithOperator"
|
|
42
39
|
end
|
|
43
40
|
end
|
|
44
41
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: contact@factpulse.fr
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.21.0
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -134,8 +134,8 @@ module FactPulse
|
|
|
134
134
|
def list_invalid_properties
|
|
135
135
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
136
136
|
invalid_properties = Array.new
|
|
137
|
-
if !@tracking_id.nil? && @tracking_id.to_s.length >
|
|
138
|
-
invalid_properties.push('invalid value for "tracking_id", the character length must be smaller than or equal to
|
|
137
|
+
if !@tracking_id.nil? && @tracking_id.to_s.length > 64
|
|
138
|
+
invalid_properties.push('invalid value for "tracking_id", the character length must be smaller than or equal to 64.')
|
|
139
139
|
end
|
|
140
140
|
|
|
141
141
|
if @name.nil?
|
|
@@ -157,7 +157,7 @@ module FactPulse
|
|
|
157
157
|
# @return true if the model is valid
|
|
158
158
|
def valid?
|
|
159
159
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
160
|
-
return false if !@tracking_id.nil? && @tracking_id.to_s.length >
|
|
160
|
+
return false if !@tracking_id.nil? && @tracking_id.to_s.length > 64
|
|
161
161
|
return false if @name.nil?
|
|
162
162
|
return false if @name.to_s.length > 255
|
|
163
163
|
return false if @flow_syntax.nil?
|
|
@@ -171,8 +171,8 @@ module FactPulse
|
|
|
171
171
|
fail ArgumentError, 'tracking_id cannot be nil'
|
|
172
172
|
end
|
|
173
173
|
|
|
174
|
-
if tracking_id.to_s.length >
|
|
175
|
-
fail ArgumentError, 'invalid value for "tracking_id", the character length must be smaller than or equal to
|
|
174
|
+
if tracking_id.to_s.length > 64
|
|
175
|
+
fail ArgumentError, 'invalid value for "tracking_id", the character length must be smaller than or equal to 64.'
|
|
176
176
|
end
|
|
177
177
|
|
|
178
178
|
@tracking_id = tracking_id
|
|
@@ -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
|
|
|
@@ -20,12 +20,17 @@ module FactPulse
|
|
|
20
20
|
|
|
21
21
|
attr_accessor :platform_type
|
|
22
22
|
|
|
23
|
+
attr_accessor :directory_line_status
|
|
24
|
+
|
|
23
25
|
# SIREN number
|
|
24
26
|
attr_accessor :siren
|
|
25
27
|
|
|
26
28
|
# SIRET Number
|
|
27
29
|
attr_accessor :siret
|
|
28
30
|
|
|
31
|
+
# Routing identifier od a routing code.
|
|
32
|
+
attr_accessor :routing_identifier
|
|
33
|
+
|
|
29
34
|
# suffix of the directory line which defines an address mesh not attached to a facility
|
|
30
35
|
attr_accessor :addressing_suffix
|
|
31
36
|
|
|
@@ -62,8 +67,10 @@ module FactPulse
|
|
|
62
67
|
{
|
|
63
68
|
:'addressing_identifier' => :'addressingIdentifier',
|
|
64
69
|
:'platform_type' => :'platformType',
|
|
70
|
+
:'directory_line_status' => :'directoryLineStatus',
|
|
65
71
|
:'siren' => :'siren',
|
|
66
72
|
:'siret' => :'siret',
|
|
73
|
+
:'routing_identifier' => :'routingIdentifier',
|
|
67
74
|
:'addressing_suffix' => :'addressingSuffix',
|
|
68
75
|
:'routing_code' => :'routingCode',
|
|
69
76
|
:'legal_unit' => :'legalUnit',
|
|
@@ -86,8 +93,10 @@ module FactPulse
|
|
|
86
93
|
{
|
|
87
94
|
:'addressing_identifier' => :'String',
|
|
88
95
|
:'platform_type' => :'AFNORRecipientPlatformType',
|
|
96
|
+
:'directory_line_status' => :'AFNORUniqueDirectoryLineStatus',
|
|
89
97
|
:'siren' => :'String',
|
|
90
98
|
:'siret' => :'String',
|
|
99
|
+
:'routing_identifier' => :'String',
|
|
91
100
|
:'addressing_suffix' => :'String',
|
|
92
101
|
:'routing_code' => :'AFNORDirectoryLinePayloadHistoryLegalUnitFacilityRoutingCodeRoutingCode',
|
|
93
102
|
:'legal_unit' => :'AFNORLegalUnitPayloadIncluded',
|
|
@@ -125,6 +134,10 @@ module FactPulse
|
|
|
125
134
|
self.platform_type = attributes[:'platform_type']
|
|
126
135
|
end
|
|
127
136
|
|
|
137
|
+
if attributes.key?(:'directory_line_status')
|
|
138
|
+
self.directory_line_status = attributes[:'directory_line_status']
|
|
139
|
+
end
|
|
140
|
+
|
|
128
141
|
if attributes.key?(:'siren')
|
|
129
142
|
self.siren = attributes[:'siren']
|
|
130
143
|
end
|
|
@@ -133,6 +146,10 @@ module FactPulse
|
|
|
133
146
|
self.siret = attributes[:'siret']
|
|
134
147
|
end
|
|
135
148
|
|
|
149
|
+
if attributes.key?(:'routing_identifier')
|
|
150
|
+
self.routing_identifier = attributes[:'routing_identifier']
|
|
151
|
+
end
|
|
152
|
+
|
|
136
153
|
if attributes.key?(:'addressing_suffix')
|
|
137
154
|
self.addressing_suffix = attributes[:'addressing_suffix']
|
|
138
155
|
end
|
|
@@ -177,6 +194,15 @@ module FactPulse
|
|
|
177
194
|
invalid_properties.push("invalid value for \"siret\", must conform to the pattern #{pattern}.")
|
|
178
195
|
end
|
|
179
196
|
|
|
197
|
+
if !@routing_identifier.nil? && @routing_identifier.to_s.length > 100
|
|
198
|
+
invalid_properties.push('invalid value for "routing_identifier", the character length must be smaller than or equal to 100.')
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
pattern = Regexp.new(/^(?!\s+$)[\-_\/a-zA-Z0-9]{1,100}$/)
|
|
202
|
+
if !@routing_identifier.nil? && @routing_identifier !~ pattern
|
|
203
|
+
invalid_properties.push("invalid value for \"routing_identifier\", must conform to the pattern #{pattern}.")
|
|
204
|
+
end
|
|
205
|
+
|
|
180
206
|
if !@addressing_suffix.nil? && @addressing_suffix.to_s.length > 100
|
|
181
207
|
invalid_properties.push('invalid value for "addressing_suffix", the character length must be smaller than or equal to 100.')
|
|
182
208
|
end
|
|
@@ -193,6 +219,8 @@ module FactPulse
|
|
|
193
219
|
return false if !@siren.nil? && @siren !~ Regexp.new(/^([0-9]{9})$/)
|
|
194
220
|
return false if !@siret.nil? && @siret.to_s.length > 14
|
|
195
221
|
return false if !@siret.nil? && @siret !~ Regexp.new(/^([0-9]{14})$/)
|
|
222
|
+
return false if !@routing_identifier.nil? && @routing_identifier.to_s.length > 100
|
|
223
|
+
return false if !@routing_identifier.nil? && @routing_identifier !~ Regexp.new(/^(?!\s+$)[\-_\/a-zA-Z0-9]{1,100}$/)
|
|
196
224
|
return false if !@addressing_suffix.nil? && @addressing_suffix.to_s.length > 100
|
|
197
225
|
true
|
|
198
226
|
end
|
|
@@ -249,6 +277,25 @@ module FactPulse
|
|
|
249
277
|
@siret = siret
|
|
250
278
|
end
|
|
251
279
|
|
|
280
|
+
# Custom attribute writer method with validation
|
|
281
|
+
# @param [Object] routing_identifier Value to be assigned
|
|
282
|
+
def routing_identifier=(routing_identifier)
|
|
283
|
+
if routing_identifier.nil?
|
|
284
|
+
fail ArgumentError, 'routing_identifier cannot be nil'
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
if routing_identifier.to_s.length > 100
|
|
288
|
+
fail ArgumentError, 'invalid value for "routing_identifier", the character length must be smaller than or equal to 100.'
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
pattern = Regexp.new(/^(?!\s+$)[\-_\/a-zA-Z0-9]{1,100}$/)
|
|
292
|
+
if routing_identifier !~ pattern
|
|
293
|
+
fail ArgumentError, "invalid value for \"routing_identifier\", must conform to the pattern #{pattern}."
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
@routing_identifier = routing_identifier
|
|
297
|
+
end
|
|
298
|
+
|
|
252
299
|
# Custom attribute writer method with validation
|
|
253
300
|
# @param [Object] addressing_suffix Value to be assigned
|
|
254
301
|
def addressing_suffix=(addressing_suffix)
|
|
@@ -270,8 +317,10 @@ module FactPulse
|
|
|
270
317
|
self.class == o.class &&
|
|
271
318
|
addressing_identifier == o.addressing_identifier &&
|
|
272
319
|
platform_type == o.platform_type &&
|
|
320
|
+
directory_line_status == o.directory_line_status &&
|
|
273
321
|
siren == o.siren &&
|
|
274
322
|
siret == o.siret &&
|
|
323
|
+
routing_identifier == o.routing_identifier &&
|
|
275
324
|
addressing_suffix == o.addressing_suffix &&
|
|
276
325
|
routing_code == o.routing_code &&
|
|
277
326
|
legal_unit == o.legal_unit &&
|
|
@@ -287,7 +336,7 @@ module FactPulse
|
|
|
287
336
|
# Calculates hash code according to all attributes.
|
|
288
337
|
# @return [Integer] Hash code
|
|
289
338
|
def hash
|
|
290
|
-
[addressing_identifier, platform_type, siren, siret, addressing_suffix, routing_code, legal_unit, facility].hash
|
|
339
|
+
[addressing_identifier, platform_type, directory_line_status, siren, siret, routing_identifier, addressing_suffix, routing_code, legal_unit, facility].hash
|
|
291
340
|
end
|
|
292
341
|
|
|
293
342
|
# Builds the object from hash
|
data/lib/factpulse/models/afnor_directory_line_payload_status_legal_unit_facility_routing_code.rb
CHANGED
|
@@ -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
|
|
|
@@ -28,6 +28,9 @@ module FactPulse
|
|
|
28
28
|
# SIRET Number
|
|
29
29
|
attr_accessor :siret
|
|
30
30
|
|
|
31
|
+
# Routing identifier od a routing code.
|
|
32
|
+
attr_accessor :routing_identifier
|
|
33
|
+
|
|
31
34
|
# suffix of the directory line which defines an address mesh not attached to a facility
|
|
32
35
|
attr_accessor :addressing_suffix
|
|
33
36
|
|
|
@@ -67,6 +70,7 @@ module FactPulse
|
|
|
67
70
|
:'directory_line_status' => :'directoryLineStatus',
|
|
68
71
|
:'siren' => :'siren',
|
|
69
72
|
:'siret' => :'siret',
|
|
73
|
+
:'routing_identifier' => :'routingIdentifier',
|
|
70
74
|
:'addressing_suffix' => :'addressingSuffix',
|
|
71
75
|
:'routing_code' => :'routingCode',
|
|
72
76
|
:'legal_unit' => :'legalUnit',
|
|
@@ -92,6 +96,7 @@ module FactPulse
|
|
|
92
96
|
:'directory_line_status' => :'AFNORDirectoryLineStatus',
|
|
93
97
|
:'siren' => :'String',
|
|
94
98
|
:'siret' => :'String',
|
|
99
|
+
:'routing_identifier' => :'String',
|
|
95
100
|
:'addressing_suffix' => :'String',
|
|
96
101
|
:'routing_code' => :'AFNORDirectoryLinePayloadHistoryLegalUnitFacilityRoutingCodeRoutingCode',
|
|
97
102
|
:'legal_unit' => :'AFNORLegalUnitPayloadIncluded',
|
|
@@ -141,6 +146,10 @@ module FactPulse
|
|
|
141
146
|
self.siret = attributes[:'siret']
|
|
142
147
|
end
|
|
143
148
|
|
|
149
|
+
if attributes.key?(:'routing_identifier')
|
|
150
|
+
self.routing_identifier = attributes[:'routing_identifier']
|
|
151
|
+
end
|
|
152
|
+
|
|
144
153
|
if attributes.key?(:'addressing_suffix')
|
|
145
154
|
self.addressing_suffix = attributes[:'addressing_suffix']
|
|
146
155
|
end
|
|
@@ -185,6 +194,15 @@ module FactPulse
|
|
|
185
194
|
invalid_properties.push("invalid value for \"siret\", must conform to the pattern #{pattern}.")
|
|
186
195
|
end
|
|
187
196
|
|
|
197
|
+
if !@routing_identifier.nil? && @routing_identifier.to_s.length > 100
|
|
198
|
+
invalid_properties.push('invalid value for "routing_identifier", the character length must be smaller than or equal to 100.')
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
pattern = Regexp.new(/^(?!\s+$)[\-_\/a-zA-Z0-9]{1,100}$/)
|
|
202
|
+
if !@routing_identifier.nil? && @routing_identifier !~ pattern
|
|
203
|
+
invalid_properties.push("invalid value for \"routing_identifier\", must conform to the pattern #{pattern}.")
|
|
204
|
+
end
|
|
205
|
+
|
|
188
206
|
if !@addressing_suffix.nil? && @addressing_suffix.to_s.length > 100
|
|
189
207
|
invalid_properties.push('invalid value for "addressing_suffix", the character length must be smaller than or equal to 100.')
|
|
190
208
|
end
|
|
@@ -201,6 +219,8 @@ module FactPulse
|
|
|
201
219
|
return false if !@siren.nil? && @siren !~ Regexp.new(/^([0-9]{9})$/)
|
|
202
220
|
return false if !@siret.nil? && @siret.to_s.length > 14
|
|
203
221
|
return false if !@siret.nil? && @siret !~ Regexp.new(/^([0-9]{14})$/)
|
|
222
|
+
return false if !@routing_identifier.nil? && @routing_identifier.to_s.length > 100
|
|
223
|
+
return false if !@routing_identifier.nil? && @routing_identifier !~ Regexp.new(/^(?!\s+$)[\-_\/a-zA-Z0-9]{1,100}$/)
|
|
204
224
|
return false if !@addressing_suffix.nil? && @addressing_suffix.to_s.length > 100
|
|
205
225
|
true
|
|
206
226
|
end
|
|
@@ -257,6 +277,25 @@ module FactPulse
|
|
|
257
277
|
@siret = siret
|
|
258
278
|
end
|
|
259
279
|
|
|
280
|
+
# Custom attribute writer method with validation
|
|
281
|
+
# @param [Object] routing_identifier Value to be assigned
|
|
282
|
+
def routing_identifier=(routing_identifier)
|
|
283
|
+
if routing_identifier.nil?
|
|
284
|
+
fail ArgumentError, 'routing_identifier cannot be nil'
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
if routing_identifier.to_s.length > 100
|
|
288
|
+
fail ArgumentError, 'invalid value for "routing_identifier", the character length must be smaller than or equal to 100.'
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
pattern = Regexp.new(/^(?!\s+$)[\-_\/a-zA-Z0-9]{1,100}$/)
|
|
292
|
+
if routing_identifier !~ pattern
|
|
293
|
+
fail ArgumentError, "invalid value for \"routing_identifier\", must conform to the pattern #{pattern}."
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
@routing_identifier = routing_identifier
|
|
297
|
+
end
|
|
298
|
+
|
|
260
299
|
# Custom attribute writer method with validation
|
|
261
300
|
# @param [Object] addressing_suffix Value to be assigned
|
|
262
301
|
def addressing_suffix=(addressing_suffix)
|
|
@@ -281,6 +320,7 @@ module FactPulse
|
|
|
281
320
|
directory_line_status == o.directory_line_status &&
|
|
282
321
|
siren == o.siren &&
|
|
283
322
|
siret == o.siret &&
|
|
323
|
+
routing_identifier == o.routing_identifier &&
|
|
284
324
|
addressing_suffix == o.addressing_suffix &&
|
|
285
325
|
routing_code == o.routing_code &&
|
|
286
326
|
legal_unit == o.legal_unit &&
|
|
@@ -296,7 +336,7 @@ module FactPulse
|
|
|
296
336
|
# Calculates hash code according to all attributes.
|
|
297
337
|
# @return [Integer] Hash code
|
|
298
338
|
def hash
|
|
299
|
-
[addressing_identifier, platform_type, directory_line_status, siren, siret, addressing_suffix, routing_code, legal_unit, facility].hash
|
|
339
|
+
[addressing_identifier, platform_type, directory_line_status, siren, siret, routing_identifier, addressing_suffix, routing_code, legal_unit, facility].hash
|
|
300
340
|
end
|
|
301
341
|
|
|
302
342
|
# Builds the object from hash
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: contact@factpulse.fr
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.21.0
|
|
9
|
+
Generator version: 7.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -17,7 +17,7 @@ module FactPulse
|
|
|
17
17
|
class AFNORDirectoryLineSearchPost200Response < ApiModelBase
|
|
18
18
|
attr_accessor :search
|
|
19
19
|
|
|
20
|
-
# The total number of results
|
|
20
|
+
# The total number of results, if -1 is returned then this value is not managed due to performance issue
|
|
21
21
|
attr_accessor :total_number_of_results
|
|
22
22
|
|
|
23
23
|
attr_accessor :results
|
|
@@ -78,6 +78,8 @@ module FactPulse
|
|
|
78
78
|
|
|
79
79
|
if attributes.key?(:'total_number_of_results')
|
|
80
80
|
self.total_number_of_results = attributes[:'total_number_of_results']
|
|
81
|
+
else
|
|
82
|
+
self.total_number_of_results = -1
|
|
81
83
|
end
|
|
82
84
|
|
|
83
85
|
if attributes.key?(:'results')
|