fattureincloud_ruby_sdk 2.0.6 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/README.md +37 -37
- data/docs/Client.md +3 -0
- data/docs/Entity.md +3 -0
- data/fattureincloud_ruby_sdk.gemspec +1 -1
- data/lib/fattureincloud_ruby_sdk/api/archive_api.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/api/cashbook_api.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/api/clients_api.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/api/companies_api.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/api/info_api.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/api/issued_documents_api.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/api/issued_e_invoices_api.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/api/products_api.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/api/receipts_api.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/api/received_documents_api.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/api/settings_api.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/api/suppliers_api.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/api/taxes_api.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/api/user_api.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/api_client.rb +2 -2
- data/lib/fattureincloud_ruby_sdk/api_error.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/configuration.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/filter/condition.rb +55 -0
- data/lib/fattureincloud_ruby_sdk/filter/conjunction.rb +37 -0
- data/lib/fattureincloud_ruby_sdk/filter/disjunction.rb +37 -0
- data/lib/fattureincloud_ruby_sdk/filter/expression.rb +10 -0
- data/lib/fattureincloud_ruby_sdk/filter/filter.rb +144 -0
- data/lib/fattureincloud_ruby_sdk/filter/operator.rb +29 -0
- data/lib/fattureincloud_ruby_sdk/models/archive_document.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/attachment_data.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/cashbook_entry.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_document.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_kind.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/cashbook_entry_type.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/city.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/client.rb +34 -2
- data/lib/fattureincloud_ruby_sdk/models/client_type.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/company.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/company_info.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/company_info_access_info.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions_status.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_limits.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/company_type.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/controlled_company.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_archive_document_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_archive_document_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_client_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_client_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_f24_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_f24_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_issued_document_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_issued_document_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_payment_account_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_payment_account_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_payment_method_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_payment_method_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_product_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_product_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_receipt_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_receipt_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_received_document_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_received_document_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_supplier_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_supplier_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_vat_type_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/create_vat_type_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/currency.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/default_payment_terms_type.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/detailed_country.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/document_template.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/e_invoice_rejection_reason.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/email_data.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/email_data_default_sender_email.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/email_schedule.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/email_schedule_include.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/entity.rb +34 -2
- data/lib/fattureincloud_ruby_sdk/models/entity_type.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/f24.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/f24_status.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/function_status.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_archive_document_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_cashbook_entry_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_client_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_company_info_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_e_invoice_rejection_reason_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_email_data_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_f24_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_issued_document_pre_create_info_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_issued_document_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_payment_account_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_payment_method_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_product_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_receipt_pre_create_info_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_receipt_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_receipts_monthly_totals_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_received_document_pre_create_info_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_received_document_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_supplier_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_user_info_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_user_info_response_email_confirmation_state.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_user_info_response_info.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/get_vat_type_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/issued_document.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/issued_document_ei_data.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/issued_document_extra_data.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/issued_document_items_list_item.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/issued_document_options.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_default_values.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_extra_data_default_values.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_items_default_values.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/issued_document_status.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/issued_document_totals.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/issued_document_type.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/language.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_archive_categories_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response_page.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_cashbook_entries_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_cities_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_clients_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_clients_response_page.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_cost_centers_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_countries_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_currencies_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_delivery_notes_default_causals_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_detailed_countries_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregated_data.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregation.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_f24_response_page.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response_page.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_languages_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_payment_accounts_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_payment_methods_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_product_categories_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_products_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_products_response_page.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_receipts_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_receipts_response_page.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_received_document_categories_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_received_documents_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_received_documents_response_page.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_revenue_centers_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_suppliers_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_suppliers_response_page.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_templates_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_units_of_measure_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_user_companies_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_user_companies_response_data.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/list_vat_types_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_archive_document_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_archive_document_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_client_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_client_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_f24_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_f24_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_issued_document_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_issued_document_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_account_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_account_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_method_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_payment_method_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_product_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_product_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_receipt_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_receipt_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_received_document_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_received_document_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_supplier_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_supplier_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_vat_type_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/modify_vat_type_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/monthly_total.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/original_document_type.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/pagination.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/payment_account.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/payment_account_type.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/payment_method.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/payment_method_details.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/payment_method_type.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/permission_level.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/permissions.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/permissions_fic_issued_documents_detailed.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/product.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/receipt.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/receipt_items_list_item.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/receipt_pre_create_info.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/receipt_type.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/received_document.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/received_document_entity.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/received_document_info.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/received_document_info_default_values.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/received_document_info_items_default_values.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/received_document_items_list_item.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item_payment_terms.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/received_document_totals.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/received_document_type.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/schedule_email_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_data.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response_data.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/sender_email.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/show_totals_mode.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/supplier.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/supplier_type.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/upload_archive_attachment_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/upload_f24_attachment_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/upload_issued_document_attachment_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/upload_received_document_attachment_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/user.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/user_company_role.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/vat_item.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/vat_kind.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/vat_type.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_extra.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response_data.rb +1 -1
- data/lib/fattureincloud_ruby_sdk/version.rb +2 -2
- data/lib/fattureincloud_ruby_sdk.rb +9 -1
- data/sdk-version.yaml +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/filter/condition_spec.rb +65 -0
- data/spec/filter/conjunction_spec.rb +43 -0
- data/spec/filter/disjunction_spec.rb +43 -0
- data/spec/filter/filter_spec.rb +171 -0
- data/spec/filter/operator_spec.rb +26 -0
- data/spec/spec_helper.rb +1 -1
- metadata +211 -195
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13619901eca80adcc652664ee42b7503fe937c68c1ef7a122035d0f447605944
|
4
|
+
data.tar.gz: c5ec0617bc31e111810a2f2a3e8758139015e8026b2231982c972c0e950d0c4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b417f8d55822c0bfc8c472601a9a3c8e93414505d7d79770bfa4bb8631dab2f842dadc66b0aaeda74107870a127918b09ab058b39bf53e304c0b663e28eea5f
|
7
|
+
data.tar.gz: 2d7cb84699edd59aabc9e50e580a5b743d6dcb7971a37e746956846c375715de00d15a569bb3d015d793919718aa0967437cb750614f450109c1ffb621dee806
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -10,8 +10,8 @@ The Fatture in Cloud API is based on REST, and makes possible to interact with t
|
|
10
10
|
|
11
11
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
12
12
|
|
13
|
-
- API version: 2.0.
|
14
|
-
- Package version: 2.0.
|
13
|
+
- API version: 2.0.15
|
14
|
+
- Package version: 2.0.7
|
15
15
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
16
16
|
|
17
17
|
|
@@ -386,39 +386,39 @@ Class | Method | HTTP request | Description
|
|
386
386
|
- **Flow**: accessCode
|
387
387
|
- **Authorization URL**: https://api-v2.fattureincloud.it/oauth/authorize
|
388
388
|
- **Scopes**:
|
389
|
-
- **entity.clients:r**:
|
390
|
-
- **entity.clients:a**:
|
391
|
-
- **entity.suppliers:r**:
|
392
|
-
- **entity.suppliers:a**:
|
393
|
-
- **products:r**:
|
394
|
-
- **products:a**:
|
395
|
-
- **issued_documents.invoice:r**:
|
396
|
-
- **issued_documents.credit_note:r**:
|
397
|
-
- **issued_documents.receipt:r**:
|
398
|
-
- **issued_documents.order:r**:
|
399
|
-
- **issued_documents.quote:r**:
|
400
|
-
- **issued_documents.proforma:r**:
|
401
|
-
- **issued_documents.delivery_note:r**:
|
402
|
-
- **issued_documents.invoice:a**:
|
403
|
-
- **issued_documents.credit_note:a**:
|
404
|
-
- **issued_documents.receipt:a**:
|
405
|
-
- **issued_documents.order:a**:
|
406
|
-
- **issued_documents.quote:a**:
|
407
|
-
- **issued_documents.proforma:a**:
|
408
|
-
- **issued_documents.delivery_note:a**:
|
409
|
-
- **received_documents:r**:
|
410
|
-
- **received_documents:a**:
|
411
|
-
- **stock:r**:
|
412
|
-
- **stock:a**:
|
413
|
-
- **receipts:r**:
|
414
|
-
- **receipts:a**:
|
415
|
-
- **taxes:r**:
|
416
|
-
- **taxes:a**:
|
417
|
-
- **archive:r**:
|
418
|
-
- **archive:a**:
|
419
|
-
- **cashbook:r**:
|
420
|
-
- **cashbook:a**:
|
421
|
-
- **settings:r**:
|
422
|
-
- **settings:a**:
|
423
|
-
- **situation:r**:
|
389
|
+
- **entity.clients:r**: Read permission to the Clients registry
|
390
|
+
- **entity.clients:a**: Write permission to the Clients registry
|
391
|
+
- **entity.suppliers:r**: Read permission to the Suppliers registry
|
392
|
+
- **entity.suppliers:a**: Write permission to the Suppliers registry
|
393
|
+
- **products:r**: Read permission to the Products
|
394
|
+
- **products:a**: Write permission to the Products
|
395
|
+
- **issued_documents.invoice:r**: Read permission to the issued Invoices
|
396
|
+
- **issued_documents.credit_note:r**: Read permission to the issued Credit Notes
|
397
|
+
- **issued_documents.receipt:r**: Read permission to the issued Receipts
|
398
|
+
- **issued_documents.order:r**: Read permission to the issued Orders
|
399
|
+
- **issued_documents.quote:r**: Read permission to the issued Quotes
|
400
|
+
- **issued_documents.proforma:r**: Read permission to the issued Proformas
|
401
|
+
- **issued_documents.delivery_note:r**: Read permission to the issued Delivery Notes
|
402
|
+
- **issued_documents.invoice:a**: Write permission to the issued Invoices
|
403
|
+
- **issued_documents.credit_note:a**: Write permission to the issued Credit Notes
|
404
|
+
- **issued_documents.receipt:a**: Write permission to the issued issued Receipts
|
405
|
+
- **issued_documents.order:a**: Write permission to the issued Orders
|
406
|
+
- **issued_documents.quote:a**: Write permission to the issued Quotes
|
407
|
+
- **issued_documents.proforma:a**: Write permission to the issued Proformas
|
408
|
+
- **issued_documents.delivery_note:a**: Write permission to the issued Delivery Notes
|
409
|
+
- **received_documents:r**: Read permission to the issued Received Documents
|
410
|
+
- **received_documents:a**: Write permission to the issued Received Documents
|
411
|
+
- **stock:r**: Read permission to the Stock movements
|
412
|
+
- **stock:a**: Write permission to the Stock movements
|
413
|
+
- **receipts:r**: Read permission to the Receipts
|
414
|
+
- **receipts:a**: Write permission to the Receipts
|
415
|
+
- **taxes:r**: Read permission to the Taxes
|
416
|
+
- **taxes:a**: Write permission to the Taxes
|
417
|
+
- **archive:r**: Read permission to the Archive Documents
|
418
|
+
- **archive:a**: Read permission to the Archive Documents
|
419
|
+
- **cashbook:r**: Read permission to the Cashbook
|
420
|
+
- **cashbook:a**: Write permission to the Cashbook
|
421
|
+
- **settings:r**: Read permission to the Settings
|
422
|
+
- **settings:a**: Write permission to the Settings
|
423
|
+
- **situation:r**: Read permission to the company Situation
|
424
424
|
|
data/docs/Client.md
CHANGED
@@ -36,6 +36,9 @@
|
|
36
36
|
| **ei_code** | **String** | E-invoice code | [optional] |
|
37
37
|
| **discount_highlight** | **Boolean** | Discount Highlight. | [optional] |
|
38
38
|
| **default_discount** | **Float** | Default discount. | [optional] |
|
39
|
+
| **has_intent_declaration** | **Boolean** | Has intent declaration. | [optional] |
|
40
|
+
| **intent_declaration_protocol_number** | **Date** | Intent declaration protocol number. | [optional] |
|
41
|
+
| **intent_declaration_protocol_date** | **String** | Intent declaration protocol date. | [optional] |
|
39
42
|
| **created_at** | **String** | | [optional] |
|
40
43
|
| **updated_at** | **String** | | [optional] |
|
41
44
|
|
data/docs/Entity.md
CHANGED
@@ -34,6 +34,9 @@
|
|
34
34
|
| **shipping_address** | **String** | [Only for client] Shipping address. | [optional] |
|
35
35
|
| **e_invoice** | **Boolean** | [Only for client] Use e-invoices. | [optional] |
|
36
36
|
| **ei_code** | **String** | [Only for client] E-invoices code. | [optional] |
|
37
|
+
| **has_intent_declaration** | **Boolean** | [Only for client] Has intent declaration. | [optional] |
|
38
|
+
| **intent_declaration_protocol_number** | **Date** | [Only for client] Intent declaration protocol number. | [optional] |
|
39
|
+
| **intent_declaration_protocol_date** | **String** | [Only for client] Intent declaration protocol date. | [optional] |
|
37
40
|
| **created_at** | **String** | | [optional] |
|
38
41
|
| **updated_at** | **String** | | [optional] |
|
39
42
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: 2.0.
|
8
|
+
The version of the OpenAPI document: 2.0.15
|
9
9
|
Contact: info@fattureincloud.it
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
11
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.0.15
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.0.15
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.0.15
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.0.15
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.0.15
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.0.15
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.0.15
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.0.15
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.0.15
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.0.15
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.0.15
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.0.15
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.0.15
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.0.15
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.0.15
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -31,7 +31,7 @@ module FattureInCloud_Ruby_Sdk
|
|
31
31
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
32
32
|
def initialize(config = Configuration.default)
|
33
33
|
@config = config
|
34
|
-
@user_agent = "FattureInCloud/2.0.
|
34
|
+
@user_agent = "FattureInCloud/2.0.7/Ruby-SDK"
|
35
35
|
@default_headers = {
|
36
36
|
'Content-Type' => 'application/json',
|
37
37
|
'User-Agent' => @user_agent
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.0.15
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.0.15
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|
@@ -0,0 +1,55 @@
|
|
1
|
+
require_relative 'expression'
|
2
|
+
|
3
|
+
module FattureInCloud_Ruby_Sdk
|
4
|
+
# The Condition class represents a single condition in a filter.
|
5
|
+
class Condition < Expression
|
6
|
+
attr_accessor :field, :operator, :value
|
7
|
+
|
8
|
+
# Initializes a new instance of the Condition class.
|
9
|
+
# @param [String] field The field to compare.
|
10
|
+
# @param [Operator] operator The operator to use.
|
11
|
+
# @param [String][Numeric][Boolean][nil] value The value to compare.
|
12
|
+
def initialize(field, operator, value)
|
13
|
+
@field = field
|
14
|
+
@operator = operator
|
15
|
+
@value = value
|
16
|
+
end
|
17
|
+
|
18
|
+
# Builds the query from the condition.
|
19
|
+
# @return [String] The query.
|
20
|
+
def build_query
|
21
|
+
if @field.nil? || @field == ''
|
22
|
+
raise 'cannot build a query with an empty condition'
|
23
|
+
end
|
24
|
+
|
25
|
+
if @operator.nil? || @operator == ''
|
26
|
+
raise 'cannot build a query with an empty operator'
|
27
|
+
end
|
28
|
+
|
29
|
+
if @value.nil? || @value == 'null'
|
30
|
+
"#{@field} #{@operator} null"
|
31
|
+
elsif @value.instance_of? String
|
32
|
+
"#{@field} #{@operator} '#{@value}'"
|
33
|
+
else
|
34
|
+
"#{@field} #{@operator} #{@value}"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
# Builds the query from the condition.
|
39
|
+
# @return [String] The query.
|
40
|
+
def to_s
|
41
|
+
build_query
|
42
|
+
end
|
43
|
+
|
44
|
+
# Overrides the == operator.
|
45
|
+
# @param [Condition] other The condition to compare.
|
46
|
+
# @return [Boolean] True if the conditions are equal, false otherwise.
|
47
|
+
def ==(other)
|
48
|
+
if other.instance_of? Condition
|
49
|
+
@field == other.field && @operator == other.operator && @value == other.value
|
50
|
+
else
|
51
|
+
false
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module FattureInCloud_Ruby_Sdk
|
2
|
+
# The Conjunction class is used to build a conjunction of two expressions.
|
3
|
+
class Conjunction < Expression
|
4
|
+
attr_accessor :left, :right
|
5
|
+
|
6
|
+
# Initializes a new instance of the Conjunction class.
|
7
|
+
# @param [Expression] left The left expression.
|
8
|
+
# @param [Expression] right The right expression.
|
9
|
+
def initialize(left, right)
|
10
|
+
@left = left
|
11
|
+
@right = right
|
12
|
+
end
|
13
|
+
|
14
|
+
# Builds the query from the conjunction.
|
15
|
+
# @return [String] The query.
|
16
|
+
def build_query
|
17
|
+
"(#{@left.build_query} and #{@right.build_query})"
|
18
|
+
end
|
19
|
+
|
20
|
+
# Builds the query from the conjunction.
|
21
|
+
# @return [String] The query.
|
22
|
+
def to_s
|
23
|
+
build_query
|
24
|
+
end
|
25
|
+
|
26
|
+
# Overrides the == operator.
|
27
|
+
# @param [Conjunction] other The conjunction to compare.
|
28
|
+
# @return [Boolean] True if the conjunctions are equal, false otherwise.
|
29
|
+
def ==(other)
|
30
|
+
if other.instance_of? Conjunction
|
31
|
+
@left == other.left && @right == other.right
|
32
|
+
else
|
33
|
+
false
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module FattureInCloud_Ruby_Sdk
|
2
|
+
# The Conjunction class is used to build a conjunction of two expressions.
|
3
|
+
class Disjunction < Expression
|
4
|
+
attr_accessor :left, :right
|
5
|
+
|
6
|
+
# Initializes a new instance of the Conjunction class.
|
7
|
+
# @param [Expression] left The left expression.
|
8
|
+
# @param [Expression] right The right expression.
|
9
|
+
def initialize(left, right)
|
10
|
+
@left = left
|
11
|
+
@right = right
|
12
|
+
end
|
13
|
+
|
14
|
+
# Builds the query from the conjunction.
|
15
|
+
# @return [String] The query.
|
16
|
+
def build_query
|
17
|
+
"(#{@left.build_query} or #{@right.build_query})"
|
18
|
+
end
|
19
|
+
|
20
|
+
# Builds the query from the conjunction.
|
21
|
+
# @return [String] The query.
|
22
|
+
def to_s
|
23
|
+
build_query
|
24
|
+
end
|
25
|
+
|
26
|
+
# Overrides the == operator.
|
27
|
+
# @param [Conjunction] other The conjunction to compare.
|
28
|
+
# @return [Boolean] True if the conjunctions are equal, false otherwise.
|
29
|
+
def == (other)
|
30
|
+
if other.instance_of? Disjunction
|
31
|
+
@left == other.left && @right == other.right
|
32
|
+
else
|
33
|
+
false
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,144 @@
|
|
1
|
+
require 'cgi'
|
2
|
+
|
3
|
+
module FattureInCloud_Ruby_Sdk
|
4
|
+
# The Filter class is used to build a filter.
|
5
|
+
class Filter
|
6
|
+
attr_accessor :expression
|
7
|
+
|
8
|
+
# Initializes a new instance of the Filter class.
|
9
|
+
# @param [Expression] expression The expression.
|
10
|
+
def initialize(expression = nil)
|
11
|
+
@expression = expression
|
12
|
+
end
|
13
|
+
|
14
|
+
# Initializes a new instance of the Filter class with a Condition.
|
15
|
+
# @param [String] field The field to compare.
|
16
|
+
# @param [Operator] operator The operator to use.
|
17
|
+
# @param [String][Numeric][Boolean][nil] value The value to compare.
|
18
|
+
def where(field, operator, value)
|
19
|
+
@expression = Condition.new(field, operator, value)
|
20
|
+
self
|
21
|
+
end
|
22
|
+
|
23
|
+
# Initializes a new instance of the Filter class with an Expression.
|
24
|
+
# @param [Expression] expression The expression.
|
25
|
+
def where_expression(expression)
|
26
|
+
@expression = expression
|
27
|
+
self
|
28
|
+
end
|
29
|
+
|
30
|
+
# Adds an AND condition to the filter.
|
31
|
+
# @param [String] field The field to compare.
|
32
|
+
# @param [Operator] operator The operator to use.
|
33
|
+
# @param [String][Numeric][Boolean][nil] value The value to compare.
|
34
|
+
def and(field, operator, value)
|
35
|
+
if @expression.nil?
|
36
|
+
raise 'Cannot create a conjunction with an empty expression.'
|
37
|
+
end
|
38
|
+
|
39
|
+
left = @expression
|
40
|
+
right = Condition.new(field, operator, value)
|
41
|
+
@expression = Conjunction.new(left, right)
|
42
|
+
self
|
43
|
+
end
|
44
|
+
|
45
|
+
# Adds an AND expression to the filter.
|
46
|
+
# @param [Expression] expression The expression.
|
47
|
+
def and_expression(expression)
|
48
|
+
if @expression.nil? || expression.nil?
|
49
|
+
raise 'Cannot create a conjunction with an empty expression.'
|
50
|
+
end
|
51
|
+
|
52
|
+
left = @expression
|
53
|
+
right = expression
|
54
|
+
@expression = Conjunction.new(left, right)
|
55
|
+
self
|
56
|
+
end
|
57
|
+
|
58
|
+
# Adds an AND expression to the filter.
|
59
|
+
# @param [Filter] filter The filter.
|
60
|
+
def and_filter(filter)
|
61
|
+
if @expression.nil? || filter.nil? || filter.expression.nil?
|
62
|
+
raise 'Cannot create a conjunction with an empty expression.'
|
63
|
+
end
|
64
|
+
|
65
|
+
left = @expression
|
66
|
+
right = filter.expression
|
67
|
+
@expression = Conjunction.new(left, right)
|
68
|
+
end
|
69
|
+
|
70
|
+
# Adds an OR condition to the filter.
|
71
|
+
# @param [String] field The field to compare.
|
72
|
+
# @param [Operator] operator The operator to use.
|
73
|
+
# @param [String][Numeric][Boolean][nil] value The value to compare.
|
74
|
+
def or(field, operator, value)
|
75
|
+
if @expression.nil?
|
76
|
+
raise 'Cannot create a disjunction with an empty expression.'
|
77
|
+
end
|
78
|
+
|
79
|
+
left = @expression
|
80
|
+
right = Condition.new(field, operator, value)
|
81
|
+
@expression = Disjunction.new(left, right)
|
82
|
+
self
|
83
|
+
end
|
84
|
+
|
85
|
+
# Adds an OR expression to the filter.
|
86
|
+
# @param [Expression] expression The expression.
|
87
|
+
def or_expression(expression)
|
88
|
+
if @expression.nil? || expression.nil?
|
89
|
+
raise 'Cannot create a disjunction with an empty expression.'
|
90
|
+
end
|
91
|
+
|
92
|
+
left = @expression
|
93
|
+
right = expression
|
94
|
+
@expression = Disjunction.new(left, right)
|
95
|
+
self
|
96
|
+
end
|
97
|
+
|
98
|
+
# Adds an OR filter to the filter.
|
99
|
+
# @param [Filter] filter The filter.
|
100
|
+
def or_filter(filter)
|
101
|
+
if @expression.nil? || filter.nil? || filter.expression.nil?
|
102
|
+
raise 'Cannot create a disjunction with an empty expression.'
|
103
|
+
end
|
104
|
+
|
105
|
+
left = @expression
|
106
|
+
right = filter.expression
|
107
|
+
@expression = Disjunction.new(left, right)
|
108
|
+
self
|
109
|
+
end
|
110
|
+
|
111
|
+
# Builds the query from the filter.
|
112
|
+
# @return [String] The query.
|
113
|
+
def build_query
|
114
|
+
if @expression.nil?
|
115
|
+
''
|
116
|
+
else
|
117
|
+
@expression.build_query
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
# Builds the query from the filter.
|
122
|
+
# @return [String] The query.
|
123
|
+
def to_s
|
124
|
+
build_query
|
125
|
+
end
|
126
|
+
|
127
|
+
# Builds the url encoded query from the filter.
|
128
|
+
# @return [String] The url encoded query.
|
129
|
+
def build_url_encoded_query
|
130
|
+
CGI.escape(build_query)
|
131
|
+
end
|
132
|
+
|
133
|
+
# Overrides the == operator.
|
134
|
+
# @param [Filter] other The filter to compare.
|
135
|
+
# @return [Boolean] True if the filters are equal, false otherwise.
|
136
|
+
def ==(other)
|
137
|
+
if other.instance_of? Filter
|
138
|
+
@expression == other.expression
|
139
|
+
else
|
140
|
+
false
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module FattureInCloud_Ruby_Sdk
|
2
|
+
# The Operator class represents the operator enum.
|
3
|
+
class Operator
|
4
|
+
# Equal operator.
|
5
|
+
EQ = '='.freeze
|
6
|
+
# Greater Than operator.
|
7
|
+
GT = '>'.freeze
|
8
|
+
# Greater Than or Equal operator.
|
9
|
+
GTE = '>='.freeze
|
10
|
+
# Less Than operator.
|
11
|
+
LT = '<'.freeze
|
12
|
+
# Less Than or Equal operator.
|
13
|
+
LTE = '<='.freeze
|
14
|
+
# Not Equal operator.
|
15
|
+
NEQ = '<>'.freeze
|
16
|
+
# Is operator.
|
17
|
+
IS = 'is'.freeze
|
18
|
+
# Is Not operator.
|
19
|
+
IS_NOT = 'is not'.freeze
|
20
|
+
# Like operator.
|
21
|
+
LIKE = 'like'.freeze
|
22
|
+
# Contains operator.
|
23
|
+
CONTAINS = 'contains'.freeze
|
24
|
+
# Starts With operator.
|
25
|
+
STARTS_WITH = 'starts with'.freeze
|
26
|
+
# Ends With operator.
|
27
|
+
ENDS_WITH = 'ends with'.freeze
|
28
|
+
end
|
29
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.0.15
|
7
7
|
Contact: info@fattureincloud.it
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.4.0
|