factpulse 3.0.37 → 4.0.1
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 +5 -12
- data/Gemfile.lock +1 -1
- data/README.md +136 -138
- data/docs/AllowanceCharge.md +1 -1
- data/docs/Amount2.md +15 -0
- data/docs/CDARCycleDeVieApi.md +154 -30
- data/docs/ChorusProCredentials.md +8 -8
- data/docs/ChorusProDestination.md +1 -1
- data/docs/ClientActivateResponse.md +22 -0
- data/docs/ClientCreateRequest.md +22 -0
- data/docs/ClientDetail.md +38 -0
- data/docs/ClientListResponse.md +24 -0
- data/docs/ClientManagementApi.md +575 -0
- data/docs/ClientSummary.md +38 -0
- data/docs/ClientUpdateRequest.md +22 -0
- data/docs/DownloadsApi.md +0 -144
- data/docs/EncaisseeRequest.md +36 -0
- data/docs/FactureElectroniqueRestApiSchemasCdarValidationErrorResponse.md +24 -0
- data/docs/FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md +26 -0
- data/docs/GetChorusProIdRequest.md +1 -1
- data/docs/GetInvoiceRequest.md +1 -1
- data/docs/GetStructureRequest.md +1 -1
- data/docs/PDPConfigResponse.md +44 -0
- data/docs/PDPConfigUpdateRequest.md +28 -0
- data/docs/PaymentAmountByRate.md +1 -1
- data/docs/Recipient.md +1 -1
- data/docs/RefuseeRequest.md +36 -0
- data/docs/SearchStructureRequest.md +1 -1
- data/docs/SecretStatus.md +20 -0
- data/docs/SimplifiedCDARResponse.md +26 -0
- data/docs/SubmitCDARRequest.md +9 -1
- data/docs/SubmitCDARXMLRequest.md +9 -1
- data/docs/SubmitCompleteInvoiceResponse.md +2 -2
- data/docs/SubmitInvoiceRequest.md +1 -1
- data/docs/Supplier.md +1 -1
- data/docs/ValidateCDARResponse.md +2 -2
- data/docs/ValidationErrorResponse.md +2 -8
- data/factpulse.gemspec +1 -1
- data/lib/factpulse/api/afnorpdppa_api.rb +1 -1
- data/lib/factpulse/api/afnorpdppa_directory_service_api.rb +1 -1
- data/lib/factpulse/api/afnorpdppa_flow_service_api.rb +1 -1
- data/lib/factpulse/api/cdar_cycle_de_vie_api.rb +159 -49
- data/lib/factpulse/api/chorus_pro_api.rb +1 -1
- data/lib/factpulse/api/client_management_api.rb +565 -0
- data/lib/factpulse/api/document_conversion_api.rb +1 -1
- data/lib/factpulse/api/downloads_api.rb +1 -130
- data/lib/factpulse/api/e_reporting_api.rb +1 -1
- data/lib/factpulse/api/health_api.rb +1 -1
- data/lib/factpulse/api/invoice_processing_api.rb +1 -1
- data/lib/factpulse/api/pdfxml_verification_api.rb +1 -1
- data/lib/factpulse/api/user_api.rb +1 -1
- data/lib/factpulse/api_client.rb +1 -1
- data/lib/factpulse/api_error.rb +1 -1
- data/lib/factpulse/api_model_base.rb +1 -1
- data/lib/factpulse/configuration.rb +1 -1
- data/lib/factpulse/helpers/client.rb +199 -754
- data/lib/factpulse/helpers/exceptions.rb +38 -14
- data/lib/factpulse/helpers/helpers.rb +8 -7
- 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_edit.rb +1 -1
- data/lib/factpulse/models/afnor_address_patch.rb +1 -1
- data/lib/factpulse/models/afnor_address_put.rb +1 -1
- data/lib/factpulse/models/afnor_address_read.rb +1 -1
- data/lib/factpulse/models/afnor_algorithm.rb +1 -1
- data/lib/factpulse/models/afnor_contains_operator.rb +1 -1
- data/lib/factpulse/models/afnor_create_directory_line_body.rb +1 -1
- data/lib/factpulse/models/afnor_create_directory_line_body_addressing_information.rb +1 -1
- data/lib/factpulse/models/afnor_create_directory_line_body_period.rb +1 -1
- data/lib/factpulse/models/afnor_create_routing_code_body.rb +1 -1
- data/lib/factpulse/models/afnor_credentials.rb +1 -1
- data/lib/factpulse/models/afnor_destination.rb +1 -1
- data/lib/factpulse/models/afnor_diffusion_status.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.rb +1 -1
- data/lib/factpulse/models/afnor_directory_line_payload_history_legal_unit_facility_routing_code_platform.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_post201_response.rb +1 -1
- data/lib/factpulse/models/afnor_directory_line_search_post200_response.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_facility_administrative_status.rb +1 -1
- data/lib/factpulse/models/afnor_facility_nature.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 +1 -1
- data/lib/factpulse/models/afnor_facility_type.rb +1 -1
- data/lib/factpulse/models/afnor_flow.rb +1 -1
- 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_info.rb +1 -1
- data/lib/factpulse/models/afnor_flow_profile.rb +1 -1
- data/lib/factpulse/models/afnor_flow_syntax.rb +1 -1
- data/lib/factpulse/models/afnor_flow_type.rb +1 -1
- data/lib/factpulse/models/afnor_full_flow_info.rb +1 -1
- 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 +1 -1
- data/lib/factpulse/models/afnor_legal_unit_payload_included_no_siren.rb +1 -1
- data/lib/factpulse/models/afnor_platform_status.rb +1 -1
- data/lib/factpulse/models/afnor_processing_rule.rb +1 -1
- 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_post201_response.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 +1 -1
- data/lib/factpulse/models/afnor_routing_code_search_sorting_inner.rb +1 -1
- data/lib/factpulse/models/afnor_search_directory_line.rb +1 -1
- 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 +1 -1
- data/lib/factpulse/models/afnor_search_flow_content.rb +1 -1
- data/lib/factpulse/models/afnor_search_flow_filters.rb +1 -1
- data/lib/factpulse/models/afnor_search_flow_params.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- data/lib/factpulse/models/afnor_search_siret_filters_name.rb +1 -1
- 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 +1 -1
- data/lib/factpulse/models/afnor_siren_field.rb +1 -1
- data/lib/factpulse/models/afnor_siren_search_post200_response.rb +1 -1
- data/lib/factpulse/models/afnor_siret_field.rb +1 -1
- data/lib/factpulse/models/afnor_siret_search_post200_response.rb +1 -1
- 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_update_patch_directory_line_body.rb +1 -1
- data/lib/factpulse/models/afnor_update_patch_routing_code_body.rb +1 -1
- data/lib/factpulse/models/afnor_update_put_routing_code_body.rb +1 -1
- data/lib/factpulse/models/afnor_webhook_callback_content.rb +1 -1
- 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 +104 -0
- data/lib/factpulse/models/amount_due.rb +1 -1
- data/lib/factpulse/models/api_error.rb +1 -1
- data/lib/factpulse/models/api_profile.rb +1 -1
- data/lib/factpulse/models/async_task_status.rb +1 -1
- data/lib/factpulse/models/base_amount.rb +1 -1
- data/lib/factpulse/models/bounding_box_schema.rb +1 -1
- data/lib/factpulse/models/buyercountry.rb +1 -1
- data/lib/factpulse/models/celery_status.rb +1 -1
- data/lib/factpulse/models/certificate_info_response.rb +1 -1
- data/lib/factpulse/models/charge_total_amount.rb +1 -1
- data/lib/factpulse/models/chorus_pro_credentials.rb +95 -27
- data/lib/factpulse/models/chorus_pro_destination.rb +2 -2
- data/lib/factpulse/models/chorus_pro_result.rb +1 -1
- data/lib/factpulse/models/{facture_electronique_rest_api_schemas_validation_validation_error_response.rb → client_activate_response.rb} +76 -24
- data/lib/factpulse/models/client_create_request.rb +236 -0
- data/lib/factpulse/models/client_detail.rb +368 -0
- data/lib/factpulse/models/client_list_response.rb +249 -0
- data/lib/factpulse/models/client_summary.rb +368 -0
- data/lib/factpulse/models/client_update_request.rb +225 -0
- data/lib/factpulse/models/contact.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 +1 -1
- 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 +1 -1
- 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 +1 -1
- data/lib/factpulse/models/encaisseamount.rb +1 -1
- data/lib/factpulse/models/encaisseamount1.rb +1 -1
- data/lib/factpulse/models/encaissee_request.rb +293 -0
- 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/{body_submit_cdar_xml_api_v1_cdar_submit_xml_post.rb → facture_electronique_rest_api_schemas_cdar_validation_error_response.rb} +68 -27
- 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_chorus_pro_chorus_pro_credentials.rb → facture_electronique_rest_api_schemas_processing_chorus_pro_credentials.rb} +30 -98
- 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 +1 -1
- 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 +1 -1
- 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/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 +1 -1
- data/lib/factpulse/models/invoice_format.rb +1 -1
- data/lib/factpulse/models/invoice_input.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/invoicing_framework.rb +1 -1
- data/lib/factpulse/models/invoicing_framework_code.rb +1 -1
- data/lib/factpulse/models/line_net_amount.rb +1 -1
- data/lib/factpulse/models/line_sub_type.rb +1 -1
- data/lib/factpulse/models/line_total_amount.rb +1 -1
- data/lib/factpulse/models/location_inner.rb +1 -1
- data/lib/factpulse/models/mandatory_note_schema.rb +1 -1
- data/lib/factpulse/models/manual_rate.rb +1 -1
- data/lib/factpulse/models/manual_vat_rate.rb +1 -1
- data/lib/factpulse/models/missing_field.rb +1 -1
- data/lib/factpulse/models/operation_nature.rb +1 -1
- data/lib/factpulse/models/output_format.rb +1 -1
- data/lib/factpulse/models/page_dimensions_schema.rb +1 -1
- data/lib/factpulse/models/payee.rb +1 -1
- data/lib/factpulse/models/payment_amount_by_rate.rb +2 -2
- data/lib/factpulse/models/payment_card.rb +1 -1
- data/lib/factpulse/models/payment_means.rb +1 -1
- data/lib/factpulse/models/pdf_validation_result_api.rb +1 -1
- data/lib/factpulse/models/pdp_config_response.rb +296 -0
- data/lib/factpulse/models/pdp_config_update_request.rb +271 -0
- data/lib/factpulse/models/pdp_credentials.rb +1 -1
- data/lib/factpulse/models/percentage.rb +1 -1
- data/lib/factpulse/models/postal_address.rb +1 -1
- 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 +1 -1
- data/lib/factpulse/models/processing_rule.rb +1 -1
- 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 +1 -3
- data/lib/factpulse/models/recipient_input.rb +1 -1
- data/lib/factpulse/models/refusee_request.rb +292 -0
- data/lib/factpulse/models/report_period.rb +1 -1
- data/lib/factpulse/models/report_sender.rb +1 -1
- 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 +4 -4
- 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/{body_submit_cdar_api_v1_cdar_submit_post.rb → secret_status.rb} +46 -27
- 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/simplified_cdar_response.rb +274 -0
- data/lib/factpulse/models/simplified_invoice_data.rb +1 -1
- 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 +45 -5
- data/lib/factpulse/models/submit_cdar_response.rb +1 -1
- data/lib/factpulse/models/submit_cdarxml_request.rb +46 -6
- data/lib/factpulse/models/submit_complete_invoice_request.rb +1 -1
- data/lib/factpulse/models/submit_complete_invoice_response.rb +17 -17
- 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/supplementary_attachment.rb +1 -1
- data/lib/factpulse/models/supplier.rb +1 -3
- data/lib/factpulse/models/task_response.rb +1 -1
- data/lib/factpulse/models/tax_breakdown_input.rb +1 -1
- data/lib/factpulse/models/tax_due_date_type.rb +1 -1
- data/lib/factpulse/models/tax_representative.rb +1 -1
- 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/taxexclusiveamount.rb +1 -1
- data/lib/factpulse/models/taxexclusiveamount1.rb +1 -1
- data/lib/factpulse/models/total_gross_amount.rb +1 -1
- data/lib/factpulse/models/total_net_amount.rb +1 -1
- data/lib/factpulse/models/total_vat_amount.rb +1 -1
- data/lib/factpulse/models/transaction_category.rb +1 -1
- data/lib/factpulse/models/transmission_type_code.rb +1 -1
- data/lib/factpulse/models/unit_net_price.rb +1 -1
- data/lib/factpulse/models/unit_of_measure.rb +1 -1
- data/lib/factpulse/models/validate_cdar_request.rb +1 -1
- data/lib/factpulse/models/validate_cdar_response.rb +3 -3
- data/lib/factpulse/models/validate_e_reporting_request.rb +1 -1
- data/lib/factpulse/models/validate_e_reporting_response.rb +1 -1
- data/lib/factpulse/models/validation_error.rb +1 -1
- data/lib/factpulse/models/validation_error_detail.rb +1 -1
- data/lib/factpulse/models/validation_error_response.rb +21 -68
- data/lib/factpulse/models/validation_info.rb +1 -1
- data/lib/factpulse/models/validation_success_response.rb +1 -1
- data/lib/factpulse/models/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/verification_success_response.rb +1 -1
- data/lib/factpulse/models/verified_field_schema.rb +1 -1
- data/lib/factpulse/version.rb +2 -2
- data/lib/factpulse.rb +17 -5
- metadata +34 -10
- data/docs/BodySubmitCdarApiV1CdarSubmitPost.md +0 -20
- data/docs/BodySubmitCdarXmlApiV1CdarSubmitXmlPost.md +0 -20
- data/docs/FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md +0 -26
- data/docs/FactureElectroniqueRestApiSchemasValidationValidationErrorResponse.md +0 -18
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#FactPulse REST API
|
|
3
|
+
|
|
4
|
+
# REST API for electronic invoicing in France: Factur-X, AFNOR PDP/PA, electronic signatures. ## 🎯 Main Features ### 📄 Factur-X Invoice Generation - **Formats**: XML only or PDF/A-3 with embedded XML - **Profiles**: MINIMUM, BASIC, EN16931, EXTENDED - **Standards**: EN 16931 (EU directive 2014/55), ISO 19005-3 (PDF/A-3), CII (UN/CEFACT) - **🆕 Simplified Format**: Generation from SIRET + auto-enrichment (Chorus Pro API + Business Search) ### ✅ Validation and Compliance - **XML Validation**: Schematron (45 to 210+ rules depending on profile) - **PDF Validation**: PDF/A-3, Factur-X XMP metadata, electronic signatures - **VeraPDF**: Strict PDF/A validation (146+ ISO 19005-3 rules) - **Asynchronous Processing**: Celery support for heavy validations (VeraPDF) ### 📡 AFNOR PDP/PA Integration (XP Z12-013) - **Flow Submission**: Send invoices to Partner Dematerialization Platforms - **Flow Search**: View submitted invoices - **Download**: Retrieve PDF/A-3 with XML - **Directory Service**: Company search (SIREN/SIRET) - **Multi-client**: Support for multiple PDP configs per user (stored credentials or zero-storage) ### ✍️ PDF 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 - **Certificate Generation**: Self-signed X.509 certificates for testing ### 🔄 Asynchronous Processing - **Celery**: Asynchronous generation, validation and signing - **Polling**: Status tracking via `/tasks/{task_id}/status` - **No timeout**: Ideal for large files or heavy validations ## 🔒 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.20.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module FactPulse
|
|
17
|
+
# Allowance/charge amount (BT-92/99/136/141).
|
|
18
|
+
module Amount2
|
|
19
|
+
class << self
|
|
20
|
+
# List of class defined in anyOf (OpenAPI v3)
|
|
21
|
+
def openapi_any_of
|
|
22
|
+
[
|
|
23
|
+
:'Float',
|
|
24
|
+
:'String'
|
|
25
|
+
]
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Builds the object
|
|
29
|
+
# @param [Mixed] Data to be matched against the list of anyOf items
|
|
30
|
+
# @return [Object] Returns the model or the data itself
|
|
31
|
+
def build(data)
|
|
32
|
+
# Go through the list of anyOf items and attempt to identify the appropriate one.
|
|
33
|
+
# Note:
|
|
34
|
+
# - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
|
|
35
|
+
# due to the way the deserialization is made in the base_object template (it just casts without verifying).
|
|
36
|
+
# - TODO: scalar values are de facto behaving as if they were nullable.
|
|
37
|
+
# - TODO: logging when debugging is set.
|
|
38
|
+
openapi_any_of.each do |klass|
|
|
39
|
+
begin
|
|
40
|
+
next if klass == :AnyType # "nullable: true"
|
|
41
|
+
return find_and_cast_into_type(klass, data)
|
|
42
|
+
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
openapi_any_of.include?(:AnyType) ? data : nil
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
private
|
|
50
|
+
|
|
51
|
+
SchemaMismatchError = Class.new(StandardError)
|
|
52
|
+
|
|
53
|
+
# Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
|
|
54
|
+
def find_and_cast_into_type(klass, data)
|
|
55
|
+
return if data.nil?
|
|
56
|
+
|
|
57
|
+
case klass.to_s
|
|
58
|
+
when 'Boolean'
|
|
59
|
+
return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
|
|
60
|
+
when 'Float'
|
|
61
|
+
return data if data.instance_of?(Float)
|
|
62
|
+
when 'Integer'
|
|
63
|
+
return data if data.instance_of?(Integer)
|
|
64
|
+
when 'Time'
|
|
65
|
+
return Time.parse(data)
|
|
66
|
+
when 'Date'
|
|
67
|
+
return Date.iso8601(data)
|
|
68
|
+
when 'String'
|
|
69
|
+
return data if data.instance_of?(String)
|
|
70
|
+
when 'Object' # "type: object"
|
|
71
|
+
return data if data.instance_of?(Hash)
|
|
72
|
+
when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
|
|
73
|
+
if data.instance_of?(Array)
|
|
74
|
+
sub_type = Regexp.last_match[:sub_type]
|
|
75
|
+
return data.map { |item| find_and_cast_into_type(sub_type, item) }
|
|
76
|
+
end
|
|
77
|
+
when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
|
|
78
|
+
if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
|
|
79
|
+
sub_type = Regexp.last_match[:sub_type]
|
|
80
|
+
return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
|
|
81
|
+
end
|
|
82
|
+
else # model
|
|
83
|
+
const = FactPulse.const_get(klass)
|
|
84
|
+
if const
|
|
85
|
+
if const.respond_to?(:openapi_any_of) # nested anyOf model
|
|
86
|
+
model = const.build(data)
|
|
87
|
+
return model if model
|
|
88
|
+
else
|
|
89
|
+
# raise if data contains keys that are not known to the model
|
|
90
|
+
raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
|
|
91
|
+
model = const.build_from_hash(data)
|
|
92
|
+
return model if model
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
raise # if no match by now, raise
|
|
98
|
+
rescue
|
|
99
|
+
raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
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.
|
|
9
|
+
Generator version: 7.20.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,27 +14,31 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
-
#
|
|
17
|
+
# Chorus Pro credentials for Zero-Trust mode. **Zero-Trust Mode**: Credentials are passed in each request and are NEVER stored. **Security**: - Credentials are never persisted in the database - They are used only for the duration of the request - Secure transmission via HTTPS **Use cases**: - High-security environments (banks, administrations) - Strict GDPR compliance - Tests with temporary credentials - Users who don't want to store their credentials
|
|
18
18
|
class ChorusProCredentials < ApiModelBase
|
|
19
|
+
# PISTE Client ID (government API portal)
|
|
19
20
|
attr_accessor :piste_client_id
|
|
20
21
|
|
|
22
|
+
# PISTE Client Secret
|
|
21
23
|
attr_accessor :piste_client_secret
|
|
22
24
|
|
|
23
|
-
|
|
25
|
+
# Chorus Pro login
|
|
26
|
+
attr_accessor :chorus_pro_login
|
|
24
27
|
|
|
25
|
-
|
|
28
|
+
# Chorus Pro password
|
|
29
|
+
attr_accessor :chorus_pro_password
|
|
26
30
|
|
|
27
|
-
#
|
|
28
|
-
attr_accessor :
|
|
31
|
+
# Use sandbox environment (true) or production (false)
|
|
32
|
+
attr_accessor :sandbox
|
|
29
33
|
|
|
30
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
35
|
def self.attribute_map
|
|
32
36
|
{
|
|
33
37
|
:'piste_client_id' => :'pisteClientId',
|
|
34
38
|
:'piste_client_secret' => :'pisteClientSecret',
|
|
35
|
-
:'
|
|
36
|
-
:'
|
|
37
|
-
:'
|
|
39
|
+
:'chorus_pro_login' => :'chorusProLogin',
|
|
40
|
+
:'chorus_pro_password' => :'chorusProPassword',
|
|
41
|
+
:'sandbox' => :'sandbox'
|
|
38
42
|
}
|
|
39
43
|
end
|
|
40
44
|
|
|
@@ -53,19 +57,15 @@ module FactPulse
|
|
|
53
57
|
{
|
|
54
58
|
:'piste_client_id' => :'String',
|
|
55
59
|
:'piste_client_secret' => :'String',
|
|
56
|
-
:'
|
|
57
|
-
:'
|
|
58
|
-
:'
|
|
60
|
+
:'chorus_pro_login' => :'String',
|
|
61
|
+
:'chorus_pro_password' => :'String',
|
|
62
|
+
:'sandbox' => :'Boolean'
|
|
59
63
|
}
|
|
60
64
|
end
|
|
61
65
|
|
|
62
66
|
# List of attributes with nullable: true
|
|
63
67
|
def self.openapi_nullable
|
|
64
68
|
Set.new([
|
|
65
|
-
:'piste_client_id',
|
|
66
|
-
:'piste_client_secret',
|
|
67
|
-
:'chorus_login',
|
|
68
|
-
:'chorus_password',
|
|
69
69
|
])
|
|
70
70
|
end
|
|
71
71
|
|
|
@@ -87,24 +87,32 @@ module FactPulse
|
|
|
87
87
|
|
|
88
88
|
if attributes.key?(:'piste_client_id')
|
|
89
89
|
self.piste_client_id = attributes[:'piste_client_id']
|
|
90
|
+
else
|
|
91
|
+
self.piste_client_id = nil
|
|
90
92
|
end
|
|
91
93
|
|
|
92
94
|
if attributes.key?(:'piste_client_secret')
|
|
93
95
|
self.piste_client_secret = attributes[:'piste_client_secret']
|
|
96
|
+
else
|
|
97
|
+
self.piste_client_secret = nil
|
|
94
98
|
end
|
|
95
99
|
|
|
96
|
-
if attributes.key?(:'
|
|
97
|
-
self.
|
|
100
|
+
if attributes.key?(:'chorus_pro_login')
|
|
101
|
+
self.chorus_pro_login = attributes[:'chorus_pro_login']
|
|
102
|
+
else
|
|
103
|
+
self.chorus_pro_login = nil
|
|
98
104
|
end
|
|
99
105
|
|
|
100
|
-
if attributes.key?(:'
|
|
101
|
-
self.
|
|
106
|
+
if attributes.key?(:'chorus_pro_password')
|
|
107
|
+
self.chorus_pro_password = attributes[:'chorus_pro_password']
|
|
108
|
+
else
|
|
109
|
+
self.chorus_pro_password = nil
|
|
102
110
|
end
|
|
103
111
|
|
|
104
|
-
if attributes.key?(:'
|
|
105
|
-
self.
|
|
112
|
+
if attributes.key?(:'sandbox')
|
|
113
|
+
self.sandbox = attributes[:'sandbox']
|
|
106
114
|
else
|
|
107
|
-
self.
|
|
115
|
+
self.sandbox = true
|
|
108
116
|
end
|
|
109
117
|
end
|
|
110
118
|
|
|
@@ -113,6 +121,22 @@ module FactPulse
|
|
|
113
121
|
def list_invalid_properties
|
|
114
122
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
115
123
|
invalid_properties = Array.new
|
|
124
|
+
if @piste_client_id.nil?
|
|
125
|
+
invalid_properties.push('invalid value for "piste_client_id", piste_client_id cannot be nil.')
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if @piste_client_secret.nil?
|
|
129
|
+
invalid_properties.push('invalid value for "piste_client_secret", piste_client_secret cannot be nil.')
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if @chorus_pro_login.nil?
|
|
133
|
+
invalid_properties.push('invalid value for "chorus_pro_login", chorus_pro_login cannot be nil.')
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if @chorus_pro_password.nil?
|
|
137
|
+
invalid_properties.push('invalid value for "chorus_pro_password", chorus_pro_password cannot be nil.')
|
|
138
|
+
end
|
|
139
|
+
|
|
116
140
|
invalid_properties
|
|
117
141
|
end
|
|
118
142
|
|
|
@@ -120,9 +144,53 @@ module FactPulse
|
|
|
120
144
|
# @return true if the model is valid
|
|
121
145
|
def valid?
|
|
122
146
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
147
|
+
return false if @piste_client_id.nil?
|
|
148
|
+
return false if @piste_client_secret.nil?
|
|
149
|
+
return false if @chorus_pro_login.nil?
|
|
150
|
+
return false if @chorus_pro_password.nil?
|
|
123
151
|
true
|
|
124
152
|
end
|
|
125
153
|
|
|
154
|
+
# Custom attribute writer method with validation
|
|
155
|
+
# @param [Object] piste_client_id Value to be assigned
|
|
156
|
+
def piste_client_id=(piste_client_id)
|
|
157
|
+
if piste_client_id.nil?
|
|
158
|
+
fail ArgumentError, 'piste_client_id cannot be nil'
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
@piste_client_id = piste_client_id
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Custom attribute writer method with validation
|
|
165
|
+
# @param [Object] piste_client_secret Value to be assigned
|
|
166
|
+
def piste_client_secret=(piste_client_secret)
|
|
167
|
+
if piste_client_secret.nil?
|
|
168
|
+
fail ArgumentError, 'piste_client_secret cannot be nil'
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
@piste_client_secret = piste_client_secret
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Custom attribute writer method with validation
|
|
175
|
+
# @param [Object] chorus_pro_login Value to be assigned
|
|
176
|
+
def chorus_pro_login=(chorus_pro_login)
|
|
177
|
+
if chorus_pro_login.nil?
|
|
178
|
+
fail ArgumentError, 'chorus_pro_login cannot be nil'
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
@chorus_pro_login = chorus_pro_login
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Custom attribute writer method with validation
|
|
185
|
+
# @param [Object] chorus_pro_password Value to be assigned
|
|
186
|
+
def chorus_pro_password=(chorus_pro_password)
|
|
187
|
+
if chorus_pro_password.nil?
|
|
188
|
+
fail ArgumentError, 'chorus_pro_password cannot be nil'
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
@chorus_pro_password = chorus_pro_password
|
|
192
|
+
end
|
|
193
|
+
|
|
126
194
|
# Checks equality by comparing each attribute.
|
|
127
195
|
# @param [Object] Object to be compared
|
|
128
196
|
def ==(o)
|
|
@@ -130,9 +198,9 @@ module FactPulse
|
|
|
130
198
|
self.class == o.class &&
|
|
131
199
|
piste_client_id == o.piste_client_id &&
|
|
132
200
|
piste_client_secret == o.piste_client_secret &&
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
201
|
+
chorus_pro_login == o.chorus_pro_login &&
|
|
202
|
+
chorus_pro_password == o.chorus_pro_password &&
|
|
203
|
+
sandbox == o.sandbox
|
|
136
204
|
end
|
|
137
205
|
|
|
138
206
|
# @see the `==` method
|
|
@@ -144,7 +212,7 @@ module FactPulse
|
|
|
144
212
|
# Calculates hash code according to all attributes.
|
|
145
213
|
# @return [Integer] Hash code
|
|
146
214
|
def hash
|
|
147
|
-
[piste_client_id, piste_client_secret,
|
|
215
|
+
[piste_client_id, piste_client_secret, chorus_pro_login, chorus_pro_password, sandbox].hash
|
|
148
216
|
end
|
|
149
217
|
|
|
150
218
|
# 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.
|
|
9
|
+
Generator version: 7.20.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -64,7 +64,7 @@ module FactPulse
|
|
|
64
64
|
def self.openapi_types
|
|
65
65
|
{
|
|
66
66
|
:'type' => :'String',
|
|
67
|
-
:'credentials' => :'
|
|
67
|
+
:'credentials' => :'FactureElectroniqueRestApiSchemasProcessingChorusProCredentials'
|
|
68
68
|
}
|
|
69
69
|
end
|
|
70
70
|
|
|
@@ -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.
|
|
9
|
+
Generator version: 7.20.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,15 +14,23 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module FactPulse
|
|
17
|
-
#
|
|
18
|
-
class
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
17
|
+
# Client activation/deactivation response.
|
|
18
|
+
class ClientActivateResponse < ApiModelBase
|
|
19
|
+
# Unique client identifier
|
|
20
|
+
attr_accessor :uid
|
|
21
|
+
|
|
22
|
+
# New status
|
|
23
|
+
attr_accessor :is_active
|
|
24
|
+
|
|
25
|
+
# Confirmation message
|
|
26
|
+
attr_accessor :message
|
|
21
27
|
|
|
22
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
29
|
def self.attribute_map
|
|
24
30
|
{
|
|
25
|
-
:'
|
|
31
|
+
:'uid' => :'uid',
|
|
32
|
+
:'is_active' => :'isActive',
|
|
33
|
+
:'message' => :'message'
|
|
26
34
|
}
|
|
27
35
|
end
|
|
28
36
|
|
|
@@ -39,7 +47,9 @@ module FactPulse
|
|
|
39
47
|
# Attribute type mapping.
|
|
40
48
|
def self.openapi_types
|
|
41
49
|
{
|
|
42
|
-
:'
|
|
50
|
+
:'uid' => :'String',
|
|
51
|
+
:'is_active' => :'Boolean',
|
|
52
|
+
:'message' => :'String'
|
|
43
53
|
}
|
|
44
54
|
end
|
|
45
55
|
|
|
@@ -53,24 +63,34 @@ module FactPulse
|
|
|
53
63
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
54
64
|
def initialize(attributes = {})
|
|
55
65
|
if (!attributes.is_a?(Hash))
|
|
56
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FactPulse::ClientActivateResponse` initialize method"
|
|
57
67
|
end
|
|
58
68
|
|
|
59
69
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
60
70
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
61
71
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
62
72
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FactPulse::ClientActivateResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
64
74
|
end
|
|
65
75
|
h[k.to_sym] = v
|
|
66
76
|
}
|
|
67
77
|
|
|
68
|
-
if attributes.key?(:'
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
78
|
+
if attributes.key?(:'uid')
|
|
79
|
+
self.uid = attributes[:'uid']
|
|
80
|
+
else
|
|
81
|
+
self.uid = nil
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'is_active')
|
|
85
|
+
self.is_active = attributes[:'is_active']
|
|
72
86
|
else
|
|
73
|
-
self.
|
|
87
|
+
self.is_active = nil
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'message')
|
|
91
|
+
self.message = attributes[:'message']
|
|
92
|
+
else
|
|
93
|
+
self.message = nil
|
|
74
94
|
end
|
|
75
95
|
end
|
|
76
96
|
|
|
@@ -79,8 +99,16 @@ module FactPulse
|
|
|
79
99
|
def list_invalid_properties
|
|
80
100
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
81
101
|
invalid_properties = Array.new
|
|
82
|
-
if @
|
|
83
|
-
invalid_properties.push('invalid value for "
|
|
102
|
+
if @uid.nil?
|
|
103
|
+
invalid_properties.push('invalid value for "uid", uid cannot be nil.')
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if @is_active.nil?
|
|
107
|
+
invalid_properties.push('invalid value for "is_active", is_active cannot be nil.')
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if @message.nil?
|
|
111
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
|
84
112
|
end
|
|
85
113
|
|
|
86
114
|
invalid_properties
|
|
@@ -90,18 +118,40 @@ module FactPulse
|
|
|
90
118
|
# @return true if the model is valid
|
|
91
119
|
def valid?
|
|
92
120
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
93
|
-
return false if @
|
|
121
|
+
return false if @uid.nil?
|
|
122
|
+
return false if @is_active.nil?
|
|
123
|
+
return false if @message.nil?
|
|
94
124
|
true
|
|
95
125
|
end
|
|
96
126
|
|
|
97
127
|
# Custom attribute writer method with validation
|
|
98
|
-
# @param [Object]
|
|
99
|
-
def
|
|
100
|
-
if
|
|
101
|
-
fail ArgumentError, '
|
|
128
|
+
# @param [Object] uid Value to be assigned
|
|
129
|
+
def uid=(uid)
|
|
130
|
+
if uid.nil?
|
|
131
|
+
fail ArgumentError, 'uid cannot be nil'
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
@uid = uid
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Custom attribute writer method with validation
|
|
138
|
+
# @param [Object] is_active Value to be assigned
|
|
139
|
+
def is_active=(is_active)
|
|
140
|
+
if is_active.nil?
|
|
141
|
+
fail ArgumentError, 'is_active cannot be nil'
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
@is_active = is_active
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Custom attribute writer method with validation
|
|
148
|
+
# @param [Object] message Value to be assigned
|
|
149
|
+
def message=(message)
|
|
150
|
+
if message.nil?
|
|
151
|
+
fail ArgumentError, 'message cannot be nil'
|
|
102
152
|
end
|
|
103
153
|
|
|
104
|
-
@
|
|
154
|
+
@message = message
|
|
105
155
|
end
|
|
106
156
|
|
|
107
157
|
# Checks equality by comparing each attribute.
|
|
@@ -109,7 +159,9 @@ module FactPulse
|
|
|
109
159
|
def ==(o)
|
|
110
160
|
return true if self.equal?(o)
|
|
111
161
|
self.class == o.class &&
|
|
112
|
-
|
|
162
|
+
uid == o.uid &&
|
|
163
|
+
is_active == o.is_active &&
|
|
164
|
+
message == o.message
|
|
113
165
|
end
|
|
114
166
|
|
|
115
167
|
# @see the `==` method
|
|
@@ -121,7 +173,7 @@ module FactPulse
|
|
|
121
173
|
# Calculates hash code according to all attributes.
|
|
122
174
|
# @return [Integer] Hash code
|
|
123
175
|
def hash
|
|
124
|
-
[
|
|
176
|
+
[uid, is_active, message].hash
|
|
125
177
|
end
|
|
126
178
|
|
|
127
179
|
# Builds the object from hash
|