fattureincloud_ruby_sdk 2.0.20 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/docs/Company.md +1 -0
- data/docs/IssuedDocument.md +0 -1
- data/docs/IssuedDocumentEiData.md +1 -1
- data/docs/IssuedDocumentExtraData.md +0 -1
- data/fattureincloud_ruby_sdk.gemspec +2 -2
- data/lib/fattureincloud_ruby_sdk/api/archive_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/cashbook_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/clients_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/companies_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/emails_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/info_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/issued_documents_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/issued_e_invoices_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/products_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/receipts_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/received_documents_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/settings_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/suppliers_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/taxes_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/user_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api/webhooks_api.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api_client.rb +5 -5
- data/lib/fattureincloud_ruby_sdk/api_error.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/configuration.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/filter/operator.rb +4 -0
- data/lib/fattureincloud_ruby_sdk/models/archive_document.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/attachment_data.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/cashbook_entry.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_document.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_kind.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/city.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/client.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/client_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/company.rb +18 -7
- data/lib/fattureincloud_ruby_sdk/models/company_info.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/company_info_access_info.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_limits.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/company_plan_usage.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/company_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/controlled_company.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_archive_document_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_archive_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_client_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_client_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_f24_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_f24_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_issued_document_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_issued_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_payment_account_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_payment_account_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_payment_method_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_payment_method_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_product_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_product_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_receipt_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_receipt_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_received_document_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_received_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_supplier_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_supplier_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_vat_type_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_vat_type_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/currency.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/detailed_country.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/document_template.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/e_invoice_rejection_reason.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/email.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/email_attachment.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/email_data.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/email_data_default_sender_email.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/email_recipient_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/email_schedule.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/email_schedule_include.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/email_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/entity.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/entity_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/event_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/f24.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/f24_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/fatture_in_cloud_plan_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/function_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_archive_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_cashbook_entry_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_client_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_company_info_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_company_plan_usage_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_e_invoice_rejection_reason_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_email_data_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_f24_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_issued_document_pre_create_info_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_issued_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_payment_account_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_payment_method_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_product_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_receipt_pre_create_info_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_receipt_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_receipts_monthly_totals_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_received_document_pre_create_info_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_received_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_supplier_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_user_info_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_user_info_response_email_confirmation_state.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_user_info_response_info.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_vat_type_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/get_webhooks_subscription_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document.rb +3 -14
- data/lib/fattureincloud_ruby_sdk/models/issued_document_ei_data.rb +2 -4
- data/lib/fattureincloud_ruby_sdk/models/issued_document_extra_data.rb +3 -13
- data/lib/fattureincloud_ruby_sdk/models/issued_document_items_list_item.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_options.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item_payment_terms.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_default_values.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_extra_data_default_values.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_items_default_values.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_status.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_totals.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/issued_document_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/join_issued_documents_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/language.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_archive_categories_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response_page.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_cashbook_entries_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_cities_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_clients_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_clients_response_page.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_cost_centers_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_countries_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_currencies_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_delivery_notes_default_causals_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_detailed_countries_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_emails_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_emails_response_page.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregated_data.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregation.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response_page.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response_page.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_languages_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_payment_accounts_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_payment_methods_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_product_categories_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_products_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_products_response_page.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_receipts_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_receipts_response_page.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_received_document_categories_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_received_documents_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_received_documents_response_page.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_revenue_centers_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_suppliers_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_suppliers_response_page.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_templates_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_units_of_measure_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_user_companies_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_user_companies_response_data.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_vat_types_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/list_webhooks_subscriptions_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_archive_document_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_archive_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_client_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_client_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_f24_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_f24_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_issued_document_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_issued_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_account_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_account_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_method_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_method_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_product_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_product_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_receipt_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_receipt_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_received_document_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_received_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_supplier_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_supplier_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_vat_type_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_vat_type_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/monthly_total.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/original_document_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/pagination.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/payment_account.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/payment_account_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/payment_method.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/payment_method_details.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/payment_method_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/payment_terms_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/permission_level.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/permissions.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/permissions_fic_issued_documents_detailed.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/product.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/receipt.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/receipt_items_list_item.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/receipt_pre_create_info.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/receipt_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document_info.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document_info_default_values.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document_info_items_default_values.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document_items_list_item.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item_payment_terms.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document_totals.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/received_document_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/schedule_email_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_data.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_options.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response_data.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/sender_email.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/show_totals_mode.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/supplier.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/supplier_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/transform_issued_document_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/upload_archive_attachment_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/upload_f24_attachment_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/upload_issued_document_attachment_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/upload_received_document_attachment_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/user.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/user_company_role.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/vat_item.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/vat_kind.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/vat_type.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error_validation_result.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_extra.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response_data.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/webhooks_subscription.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_config.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_mapping.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/oauth2/oauth2.rb +126 -28
- data/lib/fattureincloud_ruby_sdk/version.rb +3 -3
- data/lib/fattureincloud_ruby_sdk.rb +2 -2
- data/sdk-version.yaml +1 -1
- data/spec/api/issued_documents_api_spec.rb +8 -8
- data/spec/filter/operator_spec.rb +2 -0
- data/spec/models/company_spec.rb +7 -0
- data/spec/models/create_issued_document_response_spec.rb +1 -2
- data/spec/models/get_issued_document_response_spec.rb +0 -1
- data/spec/models/get_new_issued_document_totals_request_spec.rb +0 -1
- data/spec/models/issued_document_extra_data_spec.rb +0 -6
- data/spec/models/issued_document_spec.rb +0 -7
- data/spec/models/list_issued_documents_response_page_spec.rb +0 -1
- data/spec/models/list_issued_documents_response_spec.rb +1 -2
- data/spec/models/modify_issued_document_request_spec.rb +0 -1
- data/spec/models/modify_issued_document_response_spec.rb +1 -2
- data/spec/oauth2/oauth2_spec.rb +53 -1
- data/spec/spec_helper.rb +2 -2
- metadata +220 -220
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0
|
6
|
+
The version of the OpenAPI document: 2.1.0
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0
|
6
|
+
The version of the OpenAPI document: 2.1.0
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0
|
6
|
+
The version of the OpenAPI document: 2.1.0
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0
|
6
|
+
The version of the OpenAPI document: 2.1.0
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0
|
6
|
+
The version of the OpenAPI document: 2.1.0
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0
|
6
|
+
The version of the OpenAPI document: 2.1.0
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0
|
6
|
+
The version of the OpenAPI document: 2.1.0
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -2,8 +2,40 @@ require 'uri'
|
|
2
2
|
require 'typhoeus'
|
3
3
|
|
4
4
|
module FattureInCloud_Ruby_Sdk
|
5
|
-
# The
|
6
|
-
class
|
5
|
+
# The OAuth2Manager class is used to manage the OAuth2 flow.
|
6
|
+
class OAuth2Manager
|
7
|
+
attr_accessor :client_id, :base_uri
|
8
|
+
|
9
|
+
# Initializes a new instance of the OAuth2Manager class.
|
10
|
+
# @param [String] client_id The client id.
|
11
|
+
# @param [String] base_uri The base uri.
|
12
|
+
def initialize(client_id, base_uri = 'https://api-v2.fattureincloud.it')
|
13
|
+
@client_id = client_id
|
14
|
+
@base_uri = base_uri
|
15
|
+
end
|
16
|
+
|
17
|
+
# Get the access token.
|
18
|
+
# @param [String] url The url.
|
19
|
+
# @param [Object] data The request data.
|
20
|
+
# @return [Object] The response body.
|
21
|
+
def execute_post(url, body)
|
22
|
+
res = Typhoeus.post(url, body: body)
|
23
|
+
if res.response_code != 200
|
24
|
+
raise "Error fetching token: #{res.response_body}"
|
25
|
+
end
|
26
|
+
JSON.parse(res.body)
|
27
|
+
end
|
28
|
+
|
29
|
+
# Build the scopes string.
|
30
|
+
# @param [Array<Scope>] scopes The scopes.
|
31
|
+
# @return [String] The scopes string.
|
32
|
+
def self.get_scope_string(scopes)
|
33
|
+
scopes.map { |scope| scope.to_s }.join(' ')
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# The OAuth2AuthorizationCodeManager class is used to manage the OAuth2 authorization code flow.
|
38
|
+
class OAuth2AuthorizationCodeManager < OAuth2Manager
|
7
39
|
attr_accessor :client_id, :client_secret, :redirect_uri, :base_uri
|
8
40
|
|
9
41
|
# Initializes a new instance of the OAuth2AuthorizationCodeManager class.
|
@@ -12,10 +44,9 @@ module FattureInCloud_Ruby_Sdk
|
|
12
44
|
# @param [String] redirect_uri The redirect uri.
|
13
45
|
# @param [String] base_uri The base uri.
|
14
46
|
def initialize(client_id, client_secret, redirect_uri, base_uri = 'https://api-v2.fattureincloud.it')
|
15
|
-
|
47
|
+
super client_id, base_uri
|
16
48
|
@client_secret = client_secret
|
17
49
|
@redirect_uri = redirect_uri
|
18
|
-
@base_uri = base_uri
|
19
50
|
end
|
20
51
|
|
21
52
|
# Get the authorization url.
|
@@ -24,8 +55,8 @@ module FattureInCloud_Ruby_Sdk
|
|
24
55
|
# @return [String] The authorization url.
|
25
56
|
def get_authorization_url(scopes, state)
|
26
57
|
authorization_uri = "#{@base_uri}/oauth/authorize"
|
27
|
-
scope_string =
|
28
|
-
|
58
|
+
scope_string = OAuth2Manager.get_scope_string(scopes)
|
59
|
+
|
29
60
|
params = {
|
30
61
|
'response_type': 'code',
|
31
62
|
'client_id': @client_id,
|
@@ -40,7 +71,7 @@ module FattureInCloud_Ruby_Sdk
|
|
40
71
|
|
41
72
|
# Get the access token.
|
42
73
|
# @param [String] code The code.
|
43
|
-
# @return [
|
74
|
+
# @return [OAuth2TokenResponse] The access token.
|
44
75
|
def fetch_token(code)
|
45
76
|
token_uri = "#{@base_uri}/oauth/token"
|
46
77
|
data = {
|
@@ -51,18 +82,14 @@ module FattureInCloud_Ruby_Sdk
|
|
51
82
|
'code': code,
|
52
83
|
}
|
53
84
|
|
54
|
-
|
55
|
-
if res.response_code != 200
|
56
|
-
raise "Error fetching token: #{res.response_body}"
|
57
|
-
end
|
58
|
-
json = JSON.parse(res.body)
|
85
|
+
json = execute_post(token_uri, data)
|
59
86
|
|
60
|
-
|
87
|
+
OAuth2TokenResponse.new(json["token_type"], json['access_token'], json['refresh_token'], json['expires_in'])
|
61
88
|
end
|
62
89
|
|
63
90
|
# Get the refresh token.
|
64
91
|
# @param [String] refresh_token The refresh token.
|
65
|
-
# @return [
|
92
|
+
# @return [OAuth2TokenResponse] The access token.
|
66
93
|
def refresh_token(refresh_token)
|
67
94
|
token_uri = "#{@base_uri}/oauth/token"
|
68
95
|
data = {
|
@@ -72,13 +99,9 @@ module FattureInCloud_Ruby_Sdk
|
|
72
99
|
'refresh_token': refresh_token,
|
73
100
|
}
|
74
101
|
|
75
|
-
|
76
|
-
if res.response_code != 200
|
77
|
-
raise "Error fetching token: #{res.response_body}"
|
78
|
-
end
|
79
|
-
json = JSON.parse(res.body)
|
102
|
+
json = execute_post(token_uri, data)
|
80
103
|
|
81
|
-
|
104
|
+
OAuth2TokenResponse.new(json["token_type"], json['access_token'], json['refresh_token'], json['expires_in'])
|
82
105
|
end
|
83
106
|
|
84
107
|
|
@@ -89,19 +112,73 @@ module FattureInCloud_Ruby_Sdk
|
|
89
112
|
url_obj = URI::decode_www_form(URI.parse(url).query).to_h
|
90
113
|
OAuth2AuthorizationCodeParams.new(url_obj['code'], url_obj['state'])
|
91
114
|
end
|
115
|
+
end
|
116
|
+
|
117
|
+
# The OAuth2DeviceCodeManager class is used to manage the OAuth2 device code flow.
|
118
|
+
class OAuth2DeviceCodeManager < OAuth2Manager
|
119
|
+
attr_accessor :client_id, :base_uri
|
92
120
|
|
93
|
-
#
|
121
|
+
# Initializes a new instance of the OAuth2DeviceCodeManager class.
|
122
|
+
# @param [String] client_id The client id.
|
123
|
+
# @param [String] base_uri The base uri.
|
124
|
+
def initialize(client_id, base_uri = 'https://api-v2.fattureincloud.it')
|
125
|
+
super client_id, base_uri
|
126
|
+
end
|
127
|
+
|
128
|
+
# Get the device code.
|
94
129
|
# @param [Array<Scope>] scopes The scopes.
|
95
|
-
# @return [
|
96
|
-
def
|
97
|
-
|
130
|
+
# @return [OAuth2DeviceCodeResponse] The device code.
|
131
|
+
def get_device_code(scopes)
|
132
|
+
device_uri = "#{@base_uri}/oauth/device"
|
133
|
+
scope_string = OAuth2Manager.get_scope_string(scopes)
|
134
|
+
|
135
|
+
data = {
|
136
|
+
'client_id': @client_id,
|
137
|
+
'scope': scope_string
|
138
|
+
}
|
139
|
+
|
140
|
+
json = execute_post(device_uri, data)["data"]
|
141
|
+
|
142
|
+
OAuth2DeviceCodeResponse.new(json["device_code"], json['user_code'], json['scope'], json['verification_uri'], json['interval'], json['expires_in'])
|
143
|
+
end
|
144
|
+
|
145
|
+
# Get the access token.
|
146
|
+
# @param [String] code The device code.
|
147
|
+
# @return [OAuth2TokenResponse] The access token.
|
148
|
+
def fetch_token(code)
|
149
|
+
token_uri = "#{@base_uri}/oauth/token"
|
150
|
+
data = {
|
151
|
+
'grant_type': 'urn:ietf:params:oauth:grant-type:device_code',
|
152
|
+
'client_id': @client_id,
|
153
|
+
'device_code': code,
|
154
|
+
}
|
155
|
+
|
156
|
+
json = execute_post(token_uri, data)
|
157
|
+
|
158
|
+
OAuth2TokenResponse.new(json["token_type"], json['access_token'], json['refresh_token'], json['expires_in'])
|
159
|
+
end
|
160
|
+
|
161
|
+
# Get the refresh token.
|
162
|
+
# @param [String] refresh_token The refresh token.
|
163
|
+
# @return [OAuth2TokenResponse] The access token.
|
164
|
+
def refresh_token(refresh_token)
|
165
|
+
token_uri = "#{@base_uri}/oauth/token"
|
166
|
+
data = {
|
167
|
+
'grant_type': 'refresh_token',
|
168
|
+
'client_id': @client_id,
|
169
|
+
'refresh_token': refresh_token,
|
170
|
+
}
|
171
|
+
|
172
|
+
json = execute_post(token_uri, data)
|
173
|
+
|
174
|
+
OAuth2TokenResponse.new(json["token_type"], json['access_token'], json['refresh_token'], json['expires_in'])
|
98
175
|
end
|
99
176
|
end
|
100
177
|
|
101
178
|
# The Oauth2AuthorizationCodeParams class is used to manage the OAuth2 redirect url query parameters.
|
102
179
|
class OAuth2AuthorizationCodeParams
|
103
180
|
attr_accessor :authorization_code, :state
|
104
|
-
|
181
|
+
|
105
182
|
# Initializes a new instance of the OAuth2AuthorizationCodeParams class.
|
106
183
|
# @param [String] authorization_code The authorization code.
|
107
184
|
# @param [String] state The state.
|
@@ -111,11 +188,11 @@ module FattureInCloud_Ruby_Sdk
|
|
111
188
|
end
|
112
189
|
end
|
113
190
|
|
114
|
-
# The
|
115
|
-
class
|
191
|
+
# The OAuth2TokenResponse class is used to manage the OAuth2 token response.
|
192
|
+
class OAuth2TokenResponse
|
116
193
|
attr_accessor :token_type, :access_token, :refresh_token, :expires_in
|
117
194
|
|
118
|
-
# Initializes a new instance of the
|
195
|
+
# Initializes a new instance of the OAuth2TokenResponse class.
|
119
196
|
# @param [String] token_type The token type.
|
120
197
|
# @param [String] access_token The access token.
|
121
198
|
# @param [String] refresh_token The refresh token.
|
@@ -127,4 +204,25 @@ module FattureInCloud_Ruby_Sdk
|
|
127
204
|
@expires_in = expires_in
|
128
205
|
end
|
129
206
|
end
|
207
|
+
|
208
|
+
# The OAuth2DeviceCodeResponse class is used to manage the OAuth2 device code response.
|
209
|
+
class OAuth2DeviceCodeResponse
|
210
|
+
attr_accessor :device_code, :user_code, :scope, :verification_uri, :interval, :expires_in
|
211
|
+
|
212
|
+
# Initializes a new instance of the OAuth2TokenResponse class.
|
213
|
+
# @param [String] device_code The token type.
|
214
|
+
# @param [String] user_code The access token.
|
215
|
+
# @param [Object] user_code The access token.
|
216
|
+
# @param [String] verification_uri The verification uri.
|
217
|
+
# @param [Number] interval The interval between two requests.
|
218
|
+
# @param [Number] expires_in The expire time.
|
219
|
+
def initialize(device_code, user_code, scope, verification_uri, interval, expires_in)
|
220
|
+
@device_code = device_code
|
221
|
+
@user_code = user_code
|
222
|
+
@scope = scope
|
223
|
+
@verification_uri = verification_uri
|
224
|
+
@interval = interval
|
225
|
+
@expires_in = expires_in
|
226
|
+
end
|
227
|
+
end
|
130
228
|
end
|
@@ -3,13 +3,13 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0
|
6
|
+
The version of the OpenAPI document: 2.1.0
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module FattureInCloud_Ruby_Sdk
|
14
|
-
VERSION = '2.0
|
14
|
+
VERSION = '2.1.0'
|
15
15
|
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0
|
6
|
+
The version of the OpenAPI document: 2.1.0
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
data/sdk-version.yaml
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
info:
|
2
|
-
version: 2.0
|
2
|
+
version: 2.1.0
|