diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index ee4623f5..bbc8aace 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -5,6 +5,7 @@ README.md Rakefile docs/ArchiveApi.md docs/ArchiveDocument.md +docs/Attachment.md docs/AttachmentData.md docs/CashbookApi.md docs/CashbookEntry.md @@ -96,6 +97,7 @@ docs/GetNewReceivedDocumentTotalsRequest.md docs/GetNewReceivedDocumentTotalsResponse.md docs/GetPaymentAccountResponse.md docs/GetPaymentMethodResponse.md +docs/GetPendingReceivedDocumentResponse.md docs/GetPriceListItemsResponse.md docs/GetProductResponse.md docs/GetReceiptPreCreateInfoResponse.md @@ -105,6 +107,7 @@ docs/GetReceivedDocumentPreCreateInfoResponse.md docs/GetReceivedDocumentResponse.md docs/GetSupplierResponse.md docs/GetTaxProfileResponse.md +docs/GetTemplatesResponse.md docs/GetUserInfoResponse.md docs/GetUserInfoResponseEmailConfirmationState.md docs/GetUserInfoResponseInfo.md @@ -154,6 +157,8 @@ docs/ListIssuedDocumentsResponsePage.md docs/ListLanguagesResponse.md docs/ListPaymentAccountsResponse.md docs/ListPaymentMethodsResponse.md +docs/ListPendingReceivedDocumentsResponse.md +docs/ListPendingReceivedDocumentsResponsePage.md docs/ListPriceListsResponse.md docs/ListProductCategoriesResponse.md docs/ListProductsResponse.md @@ -207,6 +212,12 @@ docs/PaymentMethod.md docs/PaymentMethodDetails.md docs/PaymentMethodType.md docs/PaymentTermsType.md +docs/PendingReceivedDocument.md +docs/PendingReceivedDocumentExtractedData.md +docs/PendingReceivedDocumentExtractedDataMining.md +docs/PendingReceivedDocumentPaymentsListItem.md +docs/PendingReceivedDocumentPaymentsListItemPaymentTerms.md +docs/PendingReceivedDocumentType.md docs/PermissionLevel.md docs/Permissions.md docs/PermissionsFicIssuedDocumentsDetailed.md @@ -246,6 +257,7 @@ docs/SupplierType.md docs/SuppliersApi.md docs/TaxProfile.md docs/TaxesApi.md +docs/TemplateType.md docs/TransformIssuedDocumentResponse.md docs/UploadArchiveAttachmentResponse.md docs/UploadF24AttachmentResponse.md @@ -291,8 +303,10 @@ lib/fattureincloud_ruby_sdk/api/user_api.rb lib/fattureincloud_ruby_sdk/api/webhooks_api.rb lib/fattureincloud_ruby_sdk/api_client.rb lib/fattureincloud_ruby_sdk/api_error.rb +lib/fattureincloud_ruby_sdk/api_model_base.rb lib/fattureincloud_ruby_sdk/configuration.rb lib/fattureincloud_ruby_sdk/models/archive_document.rb +lib/fattureincloud_ruby_sdk/models/attachment.rb lib/fattureincloud_ruby_sdk/models/attachment_data.rb lib/fattureincloud_ruby_sdk/models/cashbook_entry.rb lib/fattureincloud_ruby_sdk/models/cashbook_entry_document.rb @@ -380,6 +394,7 @@ lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_request.rb lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_response.rb lib/fattureincloud_ruby_sdk/models/get_payment_account_response.rb lib/fattureincloud_ruby_sdk/models/get_payment_method_response.rb +lib/fattureincloud_ruby_sdk/models/get_pending_received_document_response.rb lib/fattureincloud_ruby_sdk/models/get_price_list_items_response.rb lib/fattureincloud_ruby_sdk/models/get_product_response.rb lib/fattureincloud_ruby_sdk/models/get_receipt_pre_create_info_response.rb @@ -389,6 +404,7 @@ lib/fattureincloud_ruby_sdk/models/get_received_document_pre_create_info_respons lib/fattureincloud_ruby_sdk/models/get_received_document_response.rb lib/fattureincloud_ruby_sdk/models/get_supplier_response.rb lib/fattureincloud_ruby_sdk/models/get_tax_profile_response.rb +lib/fattureincloud_ruby_sdk/models/get_templates_response.rb lib/fattureincloud_ruby_sdk/models/get_user_info_response.rb lib/fattureincloud_ruby_sdk/models/get_user_info_response_email_confirmation_state.rb lib/fattureincloud_ruby_sdk/models/get_user_info_response_info.rb @@ -435,6 +451,8 @@ lib/fattureincloud_ruby_sdk/models/list_issued_documents_response_page.rb lib/fattureincloud_ruby_sdk/models/list_languages_response.rb lib/fattureincloud_ruby_sdk/models/list_payment_accounts_response.rb lib/fattureincloud_ruby_sdk/models/list_payment_methods_response.rb +lib/fattureincloud_ruby_sdk/models/list_pending_received_documents_response.rb +lib/fattureincloud_ruby_sdk/models/list_pending_received_documents_response_page.rb lib/fattureincloud_ruby_sdk/models/list_price_lists_response.rb lib/fattureincloud_ruby_sdk/models/list_product_categories_response.rb lib/fattureincloud_ruby_sdk/models/list_products_response.rb @@ -488,6 +506,12 @@ lib/fattureincloud_ruby_sdk/models/payment_method.rb lib/fattureincloud_ruby_sdk/models/payment_method_details.rb lib/fattureincloud_ruby_sdk/models/payment_method_type.rb lib/fattureincloud_ruby_sdk/models/payment_terms_type.rb +lib/fattureincloud_ruby_sdk/models/pending_received_document.rb +lib/fattureincloud_ruby_sdk/models/pending_received_document_extracted_data.rb +lib/fattureincloud_ruby_sdk/models/pending_received_document_extracted_data_mining.rb +lib/fattureincloud_ruby_sdk/models/pending_received_document_payments_list_item.rb +lib/fattureincloud_ruby_sdk/models/pending_received_document_payments_list_item_payment_terms.rb +lib/fattureincloud_ruby_sdk/models/pending_received_document_type.rb lib/fattureincloud_ruby_sdk/models/permission_level.rb lib/fattureincloud_ruby_sdk/models/permissions.rb lib/fattureincloud_ruby_sdk/models/permissions_fic_issued_documents_detailed.rb @@ -520,6 +544,7 @@ lib/fattureincloud_ruby_sdk/models/show_totals_mode.rb lib/fattureincloud_ruby_sdk/models/supplier.rb lib/fattureincloud_ruby_sdk/models/supplier_type.rb lib/fattureincloud_ruby_sdk/models/tax_profile.rb +lib/fattureincloud_ruby_sdk/models/template_type.rb lib/fattureincloud_ruby_sdk/models/transform_issued_document_response.rb lib/fattureincloud_ruby_sdk/models/upload_archive_attachment_response.rb lib/fattureincloud_ruby_sdk/models/upload_f24_attachment_response.rb @@ -543,20 +568,16 @@ lib/fattureincloud_ruby_sdk/models/webhooks_subscription_config.rb lib/fattureincloud_ruby_sdk/models/webhooks_subscription_mapping.rb lib/fattureincloud_ruby_sdk/models/webhooks_subscription_verification_method.rb lib/fattureincloud_ruby_sdk/version.rb -spec/api/price_lists_api_spec.rb -spec/models/entity_client_pre_create_info_spec.rb -spec/models/get_bin_issued_document_response_spec.rb -spec/models/get_bin_received_document_response_spec.rb -spec/models/get_entity_client_pre_create_info_response_spec.rb -spec/models/get_price_list_items_response_spec.rb -spec/models/list_bin_issued_documents_spec.rb -spec/models/list_bin_received_documents_spec.rb -spec/models/list_price_lists_response_spec.rb -spec/models/price_list_item_spec.rb -spec/models/price_list_prices_type_spec.rb -spec/models/price_list_spec.rb -spec/models/price_list_type_spec.rb -spec/models/verify_webhooks_subscription_request_spec.rb -spec/models/verify_webhooks_subscription_spec.rb -spec/models/webhooks_subscription_verification_method_spec.rb +spec/models/attachment_spec.rb +spec/models/get_pending_received_document_response_spec.rb +spec/models/get_templates_response_spec.rb +spec/models/list_pending_received_documents_response_page_spec.rb +spec/models/list_pending_received_documents_response_spec.rb +spec/models/pending_received_document_extracted_data_mining_spec.rb +spec/models/pending_received_document_extracted_data_spec.rb +spec/models/pending_received_document_payments_list_item_payment_terms_spec.rb +spec/models/pending_received_document_payments_list_item_spec.rb +spec/models/pending_received_document_spec.rb +spec/models/pending_received_document_type_spec.rb +spec/models/template_type_spec.rb spec/spec_helper.rb diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 5f84a81d..2540a3a5 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.12.0 +7.20.0 diff --git a/.travis.yml b/.travis.yml index 530fd08b..c13c38fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ script: - bundle install --path vendor/bundle - bundle exec rspec - gem build fattureincloud_ruby_sdk.gemspec - - gem install ./fattureincloud_ruby_sdk-2.1.2.gem + - gem install ./fattureincloud_ruby_sdk-2.1.3.gem diff --git a/README.md b/README.md index 9f22a282..066345cb 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ The Fatture in Cloud API is based on REST, and makes possible to interact with t This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 2.1.5 -- Package version: 2.1.2 +- API version: 2.1.8 +- Package version: 2.1.3 - Build package: org.openapitools.codegen.languages.RubyClientCodegen @@ -90,6 +90,7 @@ Class | Method | HTTP request | Description *FattureInCloud_Ruby_Sdk::InfoApi* | [**list_cost_centers**](docs/InfoApi.md#list_cost_centers) | **GET** /c/{company_id}/info/cost_centers | List Cost Centers *FattureInCloud_Ruby_Sdk::InfoApi* | [**list_countries**](docs/InfoApi.md#list_countries) | **GET** /info/countries | List Countries *FattureInCloud_Ruby_Sdk::InfoApi* | [**list_currencies**](docs/InfoApi.md#list_currencies) | **GET** /info/currencies | List Currencies +*FattureInCloud_Ruby_Sdk::InfoApi* | [**list_default_templates**](docs/InfoApi.md#list_default_templates) | **GET** /info/templates | List Default Templates *FattureInCloud_Ruby_Sdk::InfoApi* | [**list_delivery_notes_default_causals**](docs/InfoApi.md#list_delivery_notes_default_causals) | **GET** /info/dn_causals | List Delivery Notes Default Causals *FattureInCloud_Ruby_Sdk::InfoApi* | [**list_detailed_countries**](docs/InfoApi.md#list_detailed_countries) | **GET** /info/detailed_countries | List Detailed Countries *FattureInCloud_Ruby_Sdk::InfoApi* | [**list_languages**](docs/InfoApi.md#list_languages) | **GET** /info/languages | List Languages @@ -98,11 +99,10 @@ Class | Method | HTTP request | Description *FattureInCloud_Ruby_Sdk::InfoApi* | [**list_product_categories**](docs/InfoApi.md#list_product_categories) | **GET** /c/{company_id}/info/product_categories | List Product Categories *FattureInCloud_Ruby_Sdk::InfoApi* | [**list_received_document_categories**](docs/InfoApi.md#list_received_document_categories) | **GET** /c/{company_id}/info/received_document_categories | List Received Document Categories *FattureInCloud_Ruby_Sdk::InfoApi* | [**list_revenue_centers**](docs/InfoApi.md#list_revenue_centers) | **GET** /c/{company_id}/info/revenue_centers | List Revenue Centers -*FattureInCloud_Ruby_Sdk::InfoApi* | [**list_templates**](docs/InfoApi.md#list_templates) | **GET** /info/templates | List Templates *FattureInCloud_Ruby_Sdk::InfoApi* | [**list_units_of_measure**](docs/InfoApi.md#list_units_of_measure) | **GET** /info/measures | List Units of Measure *FattureInCloud_Ruby_Sdk::InfoApi* | [**list_vat_types**](docs/InfoApi.md#list_vat_types) | **GET** /c/{company_id}/info/vat_types | List Vat Types *FattureInCloud_Ruby_Sdk::IssuedDocumentsApi* | [**create_issued_document**](docs/IssuedDocumentsApi.md#create_issued_document) | **POST** /c/{company_id}/issued_documents | Create Issued Document -*FattureInCloud_Ruby_Sdk::IssuedDocumentsApi* | [**delete_bin_issued_document**](docs/IssuedDocumentsApi.md#delete_bin_issued_document) | **DELETE** /c/{company_id}/bin/issued_documents/{document_id} | +*FattureInCloud_Ruby_Sdk::IssuedDocumentsApi* | [**delete_bin_issued_document**](docs/IssuedDocumentsApi.md#delete_bin_issued_document) | **DELETE** /c/{company_id}/bin/issued_documents/{document_id} | Delete Bin Issued Document *FattureInCloud_Ruby_Sdk::IssuedDocumentsApi* | [**delete_issued_document**](docs/IssuedDocumentsApi.md#delete_issued_document) | **DELETE** /c/{company_id}/issued_documents/{document_id} | Delete Issued Document *FattureInCloud_Ruby_Sdk::IssuedDocumentsApi* | [**delete_issued_document_attachment**](docs/IssuedDocumentsApi.md#delete_issued_document_attachment) | **DELETE** /c/{company_id}/issued_documents/{document_id}/attachment | Delete Issued Document Attachment *FattureInCloud_Ruby_Sdk::IssuedDocumentsApi* | [**get_bin_issued_document**](docs/IssuedDocumentsApi.md#get_bin_issued_document) | **GET** /c/{company_id}/bin/issued_documents/{document_id} | Get Bin Issued Documents List @@ -115,7 +115,7 @@ Class | Method | HTTP request | Description *FattureInCloud_Ruby_Sdk::IssuedDocumentsApi* | [**list_bin_issued_documents**](docs/IssuedDocumentsApi.md#list_bin_issued_documents) | **GET** /c/{company_id}/bin/issued_documents | Get Bin Issued Documents List *FattureInCloud_Ruby_Sdk::IssuedDocumentsApi* | [**list_issued_documents**](docs/IssuedDocumentsApi.md#list_issued_documents) | **GET** /c/{company_id}/issued_documents | List Issued Documents *FattureInCloud_Ruby_Sdk::IssuedDocumentsApi* | [**modify_issued_document**](docs/IssuedDocumentsApi.md#modify_issued_document) | **PUT** /c/{company_id}/issued_documents/{document_id} | Modify Issued Document -*FattureInCloud_Ruby_Sdk::IssuedDocumentsApi* | [**recover_bin_issued_document**](docs/IssuedDocumentsApi.md#recover_bin_issued_document) | **POST** /c/{company_id}/bin/issued_documents/{document_id}/recover | +*FattureInCloud_Ruby_Sdk::IssuedDocumentsApi* | [**recover_bin_issued_document**](docs/IssuedDocumentsApi.md#recover_bin_issued_document) | **POST** /c/{company_id}/bin/issued_documents/{document_id}/recover | Recover Issued Document From The Bin *FattureInCloud_Ruby_Sdk::IssuedDocumentsApi* | [**schedule_email**](docs/IssuedDocumentsApi.md#schedule_email) | **POST** /c/{company_id}/issued_documents/{document_id}/email | Schedule Email *FattureInCloud_Ruby_Sdk::IssuedDocumentsApi* | [**transform_issued_document**](docs/IssuedDocumentsApi.md#transform_issued_document) | **GET** /c/{company_id}/issued_documents/transform | Transform Issued Document *FattureInCloud_Ruby_Sdk::IssuedDocumentsApi* | [**upload_issued_document_attachment**](docs/IssuedDocumentsApi.md#upload_issued_document_attachment) | **POST** /c/{company_id}/issued_documents/attachment | Upload Issued Document Attachment @@ -138,18 +138,20 @@ Class | Method | HTTP request | Description *FattureInCloud_Ruby_Sdk::ReceiptsApi* | [**list_receipts**](docs/ReceiptsApi.md#list_receipts) | **GET** /c/{company_id}/receipts | List Receipts *FattureInCloud_Ruby_Sdk::ReceiptsApi* | [**modify_receipt**](docs/ReceiptsApi.md#modify_receipt) | **PUT** /c/{company_id}/receipts/{document_id} | Modify Receipt *FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi* | [**create_received_document**](docs/ReceivedDocumentsApi.md#create_received_document) | **POST** /c/{company_id}/received_documents | Create Received Document -*FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi* | [**delete_bin_received_document**](docs/ReceivedDocumentsApi.md#delete_bin_received_document) | **DELETE** /c/{company_id}/bin/received_documents/{document_id} | +*FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi* | [**delete_bin_received_document**](docs/ReceivedDocumentsApi.md#delete_bin_received_document) | **DELETE** /c/{company_id}/bin/received_documents/{document_id} | Delete Bin Received Document *FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi* | [**delete_received_document**](docs/ReceivedDocumentsApi.md#delete_received_document) | **DELETE** /c/{company_id}/received_documents/{document_id} | Delete Received Document *FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi* | [**delete_received_document_attachment**](docs/ReceivedDocumentsApi.md#delete_received_document_attachment) | **DELETE** /c/{company_id}/received_documents/{document_id}/attachment | Delete Received Document Attachment *FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi* | [**get_bin_received_document**](docs/ReceivedDocumentsApi.md#get_bin_received_document) | **GET** /c/{company_id}/bin/received_documents/{document_id} | Get Bin Received Documents List *FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi* | [**get_existing_received_document_totals**](docs/ReceivedDocumentsApi.md#get_existing_received_document_totals) | **POST** /c/{company_id}/received_documents/{document_id}/totals | Get Existing Received Document Totals *FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi* | [**get_new_received_document_totals**](docs/ReceivedDocumentsApi.md#get_new_received_document_totals) | **POST** /c/{company_id}/received_documents/totals | Get New Received Document Totals +*FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi* | [**get_pending_received_document**](docs/ReceivedDocumentsApi.md#get_pending_received_document) | **GET** /c/{company_id}/received_documents/pending/{document_id} | Get Pending Received Document *FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi* | [**get_received_document**](docs/ReceivedDocumentsApi.md#get_received_document) | **GET** /c/{company_id}/received_documents/{document_id} | Get Received Document *FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi* | [**get_received_document_pre_create_info**](docs/ReceivedDocumentsApi.md#get_received_document_pre_create_info) | **GET** /c/{company_id}/received_documents/info | Get Received Document Pre-Create Info *FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi* | [**list_bin_received_documents**](docs/ReceivedDocumentsApi.md#list_bin_received_documents) | **GET** /c/{company_id}/bin/received_documents | Get Bin Received Documents List +*FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi* | [**list_pending_received_documents**](docs/ReceivedDocumentsApi.md#list_pending_received_documents) | **GET** /c/{company_id}/received_documents/pending | List Pending Received Documents *FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi* | [**list_received_documents**](docs/ReceivedDocumentsApi.md#list_received_documents) | **GET** /c/{company_id}/received_documents | List Received Documents *FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi* | [**modify_received_document**](docs/ReceivedDocumentsApi.md#modify_received_document) | **PUT** /c/{company_id}/received_documents/{document_id} | Modify Received Document -*FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi* | [**recover_bin_received_document**](docs/ReceivedDocumentsApi.md#recover_bin_received_document) | **POST** /c/{company_id}/bin/received_documents/{document_id}/recover | +*FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi* | [**recover_bin_received_document**](docs/ReceivedDocumentsApi.md#recover_bin_received_document) | **POST** /c/{company_id}/bin/received_documents/{document_id}/recover | Recover Received Document From The Bin *FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi* | [**upload_received_document_attachment**](docs/ReceivedDocumentsApi.md#upload_received_document_attachment) | **POST** /c/{company_id}/received_documents/attachment | Upload Received Document Attachment *FattureInCloud_Ruby_Sdk::SettingsApi* | [**create_payment_account**](docs/SettingsApi.md#create_payment_account) | **POST** /c/{company_id}/settings/payment_accounts | Create Payment Account *FattureInCloud_Ruby_Sdk::SettingsApi* | [**create_payment_method**](docs/SettingsApi.md#create_payment_method) | **POST** /c/{company_id}/settings/payment_methods | Create Payment Method @@ -160,7 +162,9 @@ Class | Method | HTTP request | Description *FattureInCloud_Ruby_Sdk::SettingsApi* | [**get_payment_account**](docs/SettingsApi.md#get_payment_account) | **GET** /c/{company_id}/settings/payment_accounts/{payment_account_id} | Get Payment Account *FattureInCloud_Ruby_Sdk::SettingsApi* | [**get_payment_method**](docs/SettingsApi.md#get_payment_method) | **GET** /c/{company_id}/settings/payment_methods/{payment_method_id} | Get Payment Method *FattureInCloud_Ruby_Sdk::SettingsApi* | [**get_tax_profile**](docs/SettingsApi.md#get_tax_profile) | **GET** /c/{company_id}/settings/tax_profile | Get Tax Profile +*FattureInCloud_Ruby_Sdk::SettingsApi* | [**get_template**](docs/SettingsApi.md#get_template) | **GET** /c/{company_id}/settings/templates/{template_id} | Get Template *FattureInCloud_Ruby_Sdk::SettingsApi* | [**get_vat_type**](docs/SettingsApi.md#get_vat_type) | **GET** /c/{company_id}/settings/vat_types/{vat_type_id} | Get Vat Type +*FattureInCloud_Ruby_Sdk::SettingsApi* | [**list_default_templates**](docs/SettingsApi.md#list_default_templates) | **GET** /c/{company_id}/settings/templates | List Templates *FattureInCloud_Ruby_Sdk::SettingsApi* | [**modify_payment_account**](docs/SettingsApi.md#modify_payment_account) | **PUT** /c/{company_id}/settings/payment_accounts/{payment_account_id} | Modify Payment Account *FattureInCloud_Ruby_Sdk::SettingsApi* | [**modify_payment_method**](docs/SettingsApi.md#modify_payment_method) | **PUT** /c/{company_id}/settings/payment_methods/{payment_method_id} | Modify Payment Method *FattureInCloud_Ruby_Sdk::SettingsApi* | [**modify_vat_type**](docs/SettingsApi.md#modify_vat_type) | **PUT** /c/{company_id}/settings/vat_types/{vat_type_id} | Modify Vat Type @@ -189,6 +193,7 @@ Class | Method | HTTP request | Description ## Documentation for Models - [FattureInCloud_Ruby_Sdk::ArchiveDocument](docs/ArchiveDocument.md) + - [FattureInCloud_Ruby_Sdk::Attachment](docs/Attachment.md) - [FattureInCloud_Ruby_Sdk::AttachmentData](docs/AttachmentData.md) - [FattureInCloud_Ruby_Sdk::CashbookEntry](docs/CashbookEntry.md) - [FattureInCloud_Ruby_Sdk::CashbookEntryDocument](docs/CashbookEntryDocument.md) @@ -276,6 +281,7 @@ Class | Method | HTTP request | Description - [FattureInCloud_Ruby_Sdk::GetNewReceivedDocumentTotalsResponse](docs/GetNewReceivedDocumentTotalsResponse.md) - [FattureInCloud_Ruby_Sdk::GetPaymentAccountResponse](docs/GetPaymentAccountResponse.md) - [FattureInCloud_Ruby_Sdk::GetPaymentMethodResponse](docs/GetPaymentMethodResponse.md) + - [FattureInCloud_Ruby_Sdk::GetPendingReceivedDocumentResponse](docs/GetPendingReceivedDocumentResponse.md) - [FattureInCloud_Ruby_Sdk::GetPriceListItemsResponse](docs/GetPriceListItemsResponse.md) - [FattureInCloud_Ruby_Sdk::GetProductResponse](docs/GetProductResponse.md) - [FattureInCloud_Ruby_Sdk::GetReceiptPreCreateInfoResponse](docs/GetReceiptPreCreateInfoResponse.md) @@ -285,6 +291,7 @@ Class | Method | HTTP request | Description - [FattureInCloud_Ruby_Sdk::GetReceivedDocumentResponse](docs/GetReceivedDocumentResponse.md) - [FattureInCloud_Ruby_Sdk::GetSupplierResponse](docs/GetSupplierResponse.md) - [FattureInCloud_Ruby_Sdk::GetTaxProfileResponse](docs/GetTaxProfileResponse.md) + - [FattureInCloud_Ruby_Sdk::GetTemplatesResponse](docs/GetTemplatesResponse.md) - [FattureInCloud_Ruby_Sdk::GetUserInfoResponse](docs/GetUserInfoResponse.md) - [FattureInCloud_Ruby_Sdk::GetUserInfoResponseEmailConfirmationState](docs/GetUserInfoResponseEmailConfirmationState.md) - [FattureInCloud_Ruby_Sdk::GetUserInfoResponseInfo](docs/GetUserInfoResponseInfo.md) @@ -331,6 +338,8 @@ Class | Method | HTTP request | Description - [FattureInCloud_Ruby_Sdk::ListLanguagesResponse](docs/ListLanguagesResponse.md) - [FattureInCloud_Ruby_Sdk::ListPaymentAccountsResponse](docs/ListPaymentAccountsResponse.md) - [FattureInCloud_Ruby_Sdk::ListPaymentMethodsResponse](docs/ListPaymentMethodsResponse.md) + - [FattureInCloud_Ruby_Sdk::ListPendingReceivedDocumentsResponse](docs/ListPendingReceivedDocumentsResponse.md) + - [FattureInCloud_Ruby_Sdk::ListPendingReceivedDocumentsResponsePage](docs/ListPendingReceivedDocumentsResponsePage.md) - [FattureInCloud_Ruby_Sdk::ListPriceListsResponse](docs/ListPriceListsResponse.md) - [FattureInCloud_Ruby_Sdk::ListProductCategoriesResponse](docs/ListProductCategoriesResponse.md) - [FattureInCloud_Ruby_Sdk::ListProductsResponse](docs/ListProductsResponse.md) @@ -384,6 +393,12 @@ Class | Method | HTTP request | Description - [FattureInCloud_Ruby_Sdk::PaymentMethodDetails](docs/PaymentMethodDetails.md) - [FattureInCloud_Ruby_Sdk::PaymentMethodType](docs/PaymentMethodType.md) - [FattureInCloud_Ruby_Sdk::PaymentTermsType](docs/PaymentTermsType.md) + - [FattureInCloud_Ruby_Sdk::PendingReceivedDocument](docs/PendingReceivedDocument.md) + - [FattureInCloud_Ruby_Sdk::PendingReceivedDocumentExtractedData](docs/PendingReceivedDocumentExtractedData.md) + - [FattureInCloud_Ruby_Sdk::PendingReceivedDocumentExtractedDataMining](docs/PendingReceivedDocumentExtractedDataMining.md) + - [FattureInCloud_Ruby_Sdk::PendingReceivedDocumentPaymentsListItem](docs/PendingReceivedDocumentPaymentsListItem.md) + - [FattureInCloud_Ruby_Sdk::PendingReceivedDocumentPaymentsListItemPaymentTerms](docs/PendingReceivedDocumentPaymentsListItemPaymentTerms.md) + - [FattureInCloud_Ruby_Sdk::PendingReceivedDocumentType](docs/PendingReceivedDocumentType.md) - [FattureInCloud_Ruby_Sdk::PermissionLevel](docs/PermissionLevel.md) - [FattureInCloud_Ruby_Sdk::Permissions](docs/Permissions.md) - [FattureInCloud_Ruby_Sdk::PermissionsFicIssuedDocumentsDetailed](docs/PermissionsFicIssuedDocumentsDetailed.md) @@ -416,6 +431,7 @@ Class | Method | HTTP request | Description - [FattureInCloud_Ruby_Sdk::Supplier](docs/Supplier.md) - [FattureInCloud_Ruby_Sdk::SupplierType](docs/SupplierType.md) - [FattureInCloud_Ruby_Sdk::TaxProfile](docs/TaxProfile.md) + - [FattureInCloud_Ruby_Sdk::TemplateType](docs/TemplateType.md) - [FattureInCloud_Ruby_Sdk::TransformIssuedDocumentResponse](docs/TransformIssuedDocumentResponse.md) - [FattureInCloud_Ruby_Sdk::UploadArchiveAttachmentResponse](docs/UploadArchiveAttachmentResponse.md) - [FattureInCloud_Ruby_Sdk::UploadF24AttachmentResponse](docs/UploadF24AttachmentResponse.md) diff --git a/docs/ArchiveApi.md b/docs/ArchiveApi.md index 5cf5cf82..f26b6c80 100644 --- a/docs/ArchiveApi.md +++ b/docs/ArchiveApi.md @@ -152,7 +152,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## get_archive_document diff --git a/docs/Attachment.md b/docs/Attachment.md new file mode 100644 index 00000000..7c5e24ad --- /dev/null +++ b/docs/Attachment.md @@ -0,0 +1,9 @@ +# FattureInCloud_Ruby_Sdk::Attachment + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **filename** | **String** | Attachment file name | [optional] | +| **attachment** | **File** | Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx] | [optional] | + diff --git a/docs/CashbookApi.md b/docs/CashbookApi.md index 4a599b5a..049127ae 100644 --- a/docs/CashbookApi.md +++ b/docs/CashbookApi.md @@ -151,7 +151,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## get_cashbook_entry diff --git a/docs/ClientsApi.md b/docs/ClientsApi.md index 72afcd3e..e063f4bc 100644 --- a/docs/ClientsApi.md +++ b/docs/ClientsApi.md @@ -152,7 +152,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## get_client diff --git a/docs/CompanyInfoPlanInfoFunctions.md b/docs/CompanyInfoPlanInfoFunctions.md index ebb79595..c90e084b 100644 --- a/docs/CompanyInfoPlanInfoFunctions.md +++ b/docs/CompanyInfoPlanInfoFunctions.md @@ -15,7 +15,6 @@ | **receipts** | **Boolean** | | [optional] | | **recurring** | **Boolean** | | [optional] | | **smtp** | **Boolean** | | [optional] | -| **sofort** | **Boolean** | | [optional] | | **stock** | **Boolean** | | [optional] | | **subaccounts** | **Boolean** | | [optional] | | **tessera_sanitaria** | **Boolean** | | [optional] | diff --git a/docs/DocumentTemplate.md b/docs/DocumentTemplate.md index 75d108e8..b23aba74 100644 --- a/docs/DocumentTemplate.md +++ b/docs/DocumentTemplate.md @@ -5,6 +5,11 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **id** | **Integer** | Template id | [optional] | +| **privacy** | **String** | Template privacy | [optional] | +| **type** | [**TemplateType**](TemplateType.md) | | [optional] | | **name** | **String** | Template name | [optional] | -| **type** | **String** | Template type | [optional] | +| **can_disable_watermark** | **Boolean** | Can disable watermark | [optional] | +| **author** | **String** | Template author | [optional] | +| **content** | **String** | Template definition content | [optional] | +| **supports_custom_taxable** | **Boolean** | Supports custom taxable | [optional] | diff --git a/docs/GetPendingReceivedDocumentResponse.md b/docs/GetPendingReceivedDocumentResponse.md new file mode 100644 index 00000000..41c7ee8d --- /dev/null +++ b/docs/GetPendingReceivedDocumentResponse.md @@ -0,0 +1,8 @@ +# FattureInCloud_Ruby_Sdk::GetPendingReceivedDocumentResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**PendingReceivedDocument**](PendingReceivedDocument.md) | | [optional] | + diff --git a/docs/GetTemplatesResponse.md b/docs/GetTemplatesResponse.md new file mode 100644 index 00000000..8efebb69 --- /dev/null +++ b/docs/GetTemplatesResponse.md @@ -0,0 +1,8 @@ +# FattureInCloud_Ruby_Sdk::GetTemplatesResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**DocumentTemplate**](DocumentTemplate.md) | | [optional] | + diff --git a/docs/InfoApi.md b/docs/InfoApi.md index 427c67d3..e2e3a8c5 100644 --- a/docs/InfoApi.md +++ b/docs/InfoApi.md @@ -9,6 +9,7 @@ All URIs are relative to *https://api-v2.fattureincloud.it* | [**list_cost_centers**](InfoApi.md#list_cost_centers) | **GET** /c/{company_id}/info/cost_centers | List Cost Centers | | [**list_countries**](InfoApi.md#list_countries) | **GET** /info/countries | List Countries | | [**list_currencies**](InfoApi.md#list_currencies) | **GET** /info/currencies | List Currencies | +| [**list_default_templates**](InfoApi.md#list_default_templates) | **GET** /info/templates | List Default Templates | | [**list_delivery_notes_default_causals**](InfoApi.md#list_delivery_notes_default_causals) | **GET** /info/dn_causals | List Delivery Notes Default Causals | | [**list_detailed_countries**](InfoApi.md#list_detailed_countries) | **GET** /info/detailed_countries | List Detailed Countries | | [**list_languages**](InfoApi.md#list_languages) | **GET** /info/languages | List Languages | @@ -17,7 +18,6 @@ All URIs are relative to *https://api-v2.fattureincloud.it* | [**list_product_categories**](InfoApi.md#list_product_categories) | **GET** /c/{company_id}/info/product_categories | List Product Categories | | [**list_received_document_categories**](InfoApi.md#list_received_document_categories) | **GET** /c/{company_id}/info/received_document_categories | List Received Document Categories | | [**list_revenue_centers**](InfoApi.md#list_revenue_centers) | **GET** /c/{company_id}/info/revenue_centers | List Revenue Centers | -| [**list_templates**](InfoApi.md#list_templates) | **GET** /info/templates | List Templates | | [**list_units_of_measure**](InfoApi.md#list_units_of_measure) | **GET** /info/measures | List Units of Measure | | [**list_vat_types**](InfoApi.md#list_vat_types) | **GET** /c/{company_id}/info/vat_types | List Vat Types | @@ -365,6 +365,79 @@ This endpoint does not need any parameter. - **Accept**: application/json +## list_default_templates + +> list_default_templates(opts) + +List Default Templates + +Lists the default available templates. + +### Examples + +```ruby +require 'time' +require 'fattureincloud_ruby_sdk' +# setup authorization +FattureInCloud_Ruby_Sdk.configure do |config| + # Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow + config.access_token = 'YOUR ACCESS TOKEN' +end + +api_instance = FattureInCloud_Ruby_Sdk::InfoApi.new +opts = { + type: 'all', # String | Type of the templates. + by_type: true # Boolean | [Only if type=all] If true, splits the list in objects, grouping templates by type. +} + +begin + # List Default Templates + result = api_instance.list_default_templates(opts) + p result +rescue FattureInCloud_Ruby_Sdk::ApiError => e + puts "Error when calling InfoApi->list_default_templates: #{e}" +end +``` + +#### Using the list_default_templates_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> list_default_templates_with_http_info(opts) + +```ruby +begin + # List Default Templates + data, status_code, headers = api_instance.list_default_templates_with_http_info(opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FattureInCloud_Ruby_Sdk::ApiError => e + puts "Error when calling InfoApi->list_default_templates_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **type** | **String** | Type of the templates. | [optional][default to 'all'] | +| **by_type** | **Boolean** | [Only if type=all] If true, splits the list in objects, grouping templates by type. | [optional][default to false] | + +### Return type + +[**ListTemplatesResponse**](ListTemplatesResponse.md) + +### Authorization + +[OAuth2AuthenticationCodeFlow](../README.md#OAuth2AuthenticationCodeFlow) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + ## list_delivery_notes_default_causals > list_delivery_notes_default_causals @@ -926,79 +999,6 @@ end - **Accept**: application/json -## list_templates - -> list_templates(opts) - -List Templates - -Lists the available templates. - -### Examples - -```ruby -require 'time' -require 'fattureincloud_ruby_sdk' -# setup authorization -FattureInCloud_Ruby_Sdk.configure do |config| - # Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow - config.access_token = 'YOUR ACCESS TOKEN' -end - -api_instance = FattureInCloud_Ruby_Sdk::InfoApi.new -opts = { - type: 'all', # String | Type of the templates. - by_type: true # Boolean | [Only if type=all] If true, splits the list in objects, grouping templates by type. -} - -begin - # List Templates - result = api_instance.list_templates(opts) - p result -rescue FattureInCloud_Ruby_Sdk::ApiError => e - puts "Error when calling InfoApi->list_templates: #{e}" -end -``` - -#### Using the list_templates_with_http_info variant - -This returns an Array which contains the response data, status code and headers. - -> , Integer, Hash)> list_templates_with_http_info(opts) - -```ruby -begin - # List Templates - data, status_code, headers = api_instance.list_templates_with_http_info(opts) - p status_code # => 2xx - p headers # => { ... } - p data # => -rescue FattureInCloud_Ruby_Sdk::ApiError => e - puts "Error when calling InfoApi->list_templates_with_http_info: #{e}" -end -``` - -### Parameters - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **type** | **String** | Type of the templates. | [optional][default to 'all'] | -| **by_type** | **Boolean** | [Only if type=all] If true, splits the list in objects, grouping templates by type. | [optional][default to false] | - -### Return type - -[**ListTemplatesResponse**](ListTemplatesResponse.md) - -### Authorization - -[OAuth2AuthenticationCodeFlow](../README.md#OAuth2AuthenticationCodeFlow) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - ## list_units_of_measure > list_units_of_measure diff --git a/docs/IssuedDocumentExtraData.md b/docs/IssuedDocumentExtraData.md index 0f2fef3e..63c40a75 100644 --- a/docs/IssuedDocumentExtraData.md +++ b/docs/IssuedDocumentExtraData.md @@ -15,4 +15,6 @@ | **ts_sent_date** | **Date** | Issued document ts sent date | [optional] | | **ts_full_amount** | **Boolean** | Issued document ts total amount | [optional] | | **imported_by** | **String** | Issued document imported by software | [optional] | +| **debt_vat_detect** | **Boolean** | Issued document debt VAT detect | [optional] | +| **revenue_detect** | **Boolean** | Issued document revenue detect | [optional] | diff --git a/docs/IssuedDocumentsApi.md b/docs/IssuedDocumentsApi.md index b57731ed..357a5f0e 100644 --- a/docs/IssuedDocumentsApi.md +++ b/docs/IssuedDocumentsApi.md @@ -5,7 +5,7 @@ All URIs are relative to *https://api-v2.fattureincloud.it* | Method | HTTP request | Description | | ------ | ------------ | ----------- | | [**create_issued_document**](IssuedDocumentsApi.md#create_issued_document) | **POST** /c/{company_id}/issued_documents | Create Issued Document | -| [**delete_bin_issued_document**](IssuedDocumentsApi.md#delete_bin_issued_document) | **DELETE** /c/{company_id}/bin/issued_documents/{document_id} | | +| [**delete_bin_issued_document**](IssuedDocumentsApi.md#delete_bin_issued_document) | **DELETE** /c/{company_id}/bin/issued_documents/{document_id} | Delete Bin Issued Document | | [**delete_issued_document**](IssuedDocumentsApi.md#delete_issued_document) | **DELETE** /c/{company_id}/issued_documents/{document_id} | Delete Issued Document | | [**delete_issued_document_attachment**](IssuedDocumentsApi.md#delete_issued_document_attachment) | **DELETE** /c/{company_id}/issued_documents/{document_id}/attachment | Delete Issued Document Attachment | | [**get_bin_issued_document**](IssuedDocumentsApi.md#get_bin_issued_document) | **GET** /c/{company_id}/bin/issued_documents/{document_id} | Get Bin Issued Documents List | @@ -18,7 +18,7 @@ All URIs are relative to *https://api-v2.fattureincloud.it* | [**list_bin_issued_documents**](IssuedDocumentsApi.md#list_bin_issued_documents) | **GET** /c/{company_id}/bin/issued_documents | Get Bin Issued Documents List | | [**list_issued_documents**](IssuedDocumentsApi.md#list_issued_documents) | **GET** /c/{company_id}/issued_documents | List Issued Documents | | [**modify_issued_document**](IssuedDocumentsApi.md#modify_issued_document) | **PUT** /c/{company_id}/issued_documents/{document_id} | Modify Issued Document | -| [**recover_bin_issued_document**](IssuedDocumentsApi.md#recover_bin_issued_document) | **POST** /c/{company_id}/bin/issued_documents/{document_id}/recover | | +| [**recover_bin_issued_document**](IssuedDocumentsApi.md#recover_bin_issued_document) | **POST** /c/{company_id}/bin/issued_documents/{document_id}/recover | Recover Issued Document From The Bin | | [**schedule_email**](IssuedDocumentsApi.md#schedule_email) | **POST** /c/{company_id}/issued_documents/{document_id}/email | Schedule Email | | [**transform_issued_document**](IssuedDocumentsApi.md#transform_issued_document) | **GET** /c/{company_id}/issued_documents/transform | Transform Issued Document | | [**upload_issued_document_attachment**](IssuedDocumentsApi.md#upload_issued_document_attachment) | **POST** /c/{company_id}/issued_documents/attachment | Upload Issued Document Attachment | @@ -101,7 +101,7 @@ end > delete_bin_issued_document(company_id, document_id) - +Delete Bin Issued Document Delete Bin Issued Document @@ -121,7 +121,7 @@ company_id = 12345 # Integer | The ID of the company. document_id = 56 # Integer | The ID of the document. begin - # + # Delete Bin Issued Document api_instance.delete_bin_issued_document(company_id, document_id) rescue FattureInCloud_Ruby_Sdk::ApiError => e puts "Error when calling IssuedDocumentsApi->delete_bin_issued_document: #{e}" @@ -136,7 +136,7 @@ This returns an Array which contains the response data (`nil` in this case), sta ```ruby begin - # + # Delete Bin Issued Document data, status_code, headers = api_instance.delete_bin_issued_document_with_http_info(company_id, document_id) p status_code # => 2xx p headers # => { ... } @@ -164,7 +164,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## delete_issued_document @@ -234,7 +234,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## delete_issued_document_attachment @@ -304,7 +304,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## get_bin_issued_document @@ -1057,7 +1057,7 @@ end > recover_bin_issued_document(company_id, document_id) - +Recover Issued Document From The Bin Recover Issued Document From The Bin @@ -1077,7 +1077,7 @@ company_id = 12345 # Integer | The ID of the company. document_id = 56 # Integer | The ID of the document. begin - # + # Recover Issued Document From The Bin api_instance.recover_bin_issued_document(company_id, document_id) rescue FattureInCloud_Ruby_Sdk::ApiError => e puts "Error when calling IssuedDocumentsApi->recover_bin_issued_document: #{e}" @@ -1092,7 +1092,7 @@ This returns an Array which contains the response data (`nil` in this case), sta ```ruby begin - # + # Recover Issued Document From The Bin data, status_code, headers = api_instance.recover_bin_issued_document_with_http_info(company_id, document_id) p status_code # => 2xx p headers # => { ... } @@ -1120,7 +1120,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## schedule_email @@ -1194,7 +1194,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: application/json -- **Accept**: Not defined +- **Accept**: application/json ## transform_issued_document diff --git a/docs/IssuedEInvoicesApi.md b/docs/IssuedEInvoicesApi.md index 0ccd5eb7..eccbe295 100644 --- a/docs/IssuedEInvoicesApi.md +++ b/docs/IssuedEInvoicesApi.md @@ -153,7 +153,7 @@ end ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: text/xml +- **Accept**: text/xml, application/json ## send_e_invoice diff --git a/docs/ListPendingReceivedDocumentsResponse.md b/docs/ListPendingReceivedDocumentsResponse.md new file mode 100644 index 00000000..4fce814f --- /dev/null +++ b/docs/ListPendingReceivedDocumentsResponse.md @@ -0,0 +1,19 @@ +# FattureInCloud_Ruby_Sdk::ListPendingReceivedDocumentsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **current_page** | **Integer** | Current page number. | [optional] | +| **first_page_url** | **String** | First page url. | [optional] | +| **from** | **Integer** | First result of the page. | [optional] | +| **last_page** | **Integer** | Last page number. | [optional] | +| **last_page_url** | **String** | Last page url. | [optional] | +| **next_page_url** | **String** | Next page url | [optional] | +| **path** | **String** | Request path. | [optional] | +| **per_page** | **Integer** | Number of result per page. | [optional] | +| **prev_page_url** | **String** | Previous page url. | [optional] | +| **to** | **Integer** | Last result of the page. | [optional] | +| **total** | **Integer** | Total number of results | [optional] | +| **data** | [**Array<PendingReceivedDocument>**](PendingReceivedDocument.md) | | [optional] | + diff --git a/docs/ListPendingReceivedDocumentsResponsePage.md b/docs/ListPendingReceivedDocumentsResponsePage.md new file mode 100644 index 00000000..739b0378 --- /dev/null +++ b/docs/ListPendingReceivedDocumentsResponsePage.md @@ -0,0 +1,8 @@ +# FattureInCloud_Ruby_Sdk::ListPendingReceivedDocumentsResponsePage + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **data** | [**Array<PendingReceivedDocument>**](PendingReceivedDocument.md) | | [optional] | + diff --git a/docs/PendingReceivedDocument.md b/docs/PendingReceivedDocument.md new file mode 100644 index 00000000..a64d9d5e --- /dev/null +++ b/docs/PendingReceivedDocument.md @@ -0,0 +1,26 @@ +# FattureInCloud_Ruby_Sdk::PendingReceivedDocument + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **id** | **Integer** | Pending received document id | [optional] | +| **date** | **Date** | Pending received document date | [optional] | +| **subject** | **String** | Pending received document subject | [optional] | +| **filename** | **String** | Pending received document filename | [optional] | +| **type** | [**PendingReceivedDocumentType**](PendingReceivedDocumentType.md) | | [optional][default to 'agyo'] | +| **attachment_url** | **String** | [Temporary] [Read Only] Pending received document url of the attached file | [optional][readonly] | +| **amount_gross** | **Float** | [Read Only] Pending received document total gross amount | [optional][readonly] | +| **currency** | [**Currency**](Currency.md) | | [optional] | +| **document_type** | [**ReceivedDocumentType**](ReceivedDocumentType.md) | | [optional][default to 'expense'] | +| **supplier_name** | **String** | Pending received document supplier name | [optional] | +| **cost_center** | **String** | Pending received document cost center | [optional] | +| **category** | **String** | Pending received document category | [optional] | +| **other_attachments** | [**Array<Attachment>**](Attachment.md) | Pending received document other attachments | [optional] | +| **emssion_date** | **Date** | Pending received document emission date | [optional] | +| **payments_list** | [**Array<PendingReceivedDocumentPaymentsListItem>**](PendingReceivedDocumentPaymentsListItem.md) | | [optional] | +| **amount_net** | **Float** | Pending received document total net amount | [optional] | +| **amount_vat** | **Float** | Pending received document total vat amount | [optional] | +| **import_error** | **String** | Pending received document import error | [optional] | +| **extracted_data** | [**PendingReceivedDocumentExtractedData**](PendingReceivedDocumentExtractedData.md) | | [optional] | + diff --git a/docs/PendingReceivedDocumentExtractedData.md b/docs/PendingReceivedDocumentExtractedData.md new file mode 100644 index 00000000..0a92135b --- /dev/null +++ b/docs/PendingReceivedDocumentExtractedData.md @@ -0,0 +1,8 @@ +# FattureInCloud_Ruby_Sdk::PendingReceivedDocumentExtractedData + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **mining** | [**PendingReceivedDocumentExtractedDataMining**](PendingReceivedDocumentExtractedDataMining.md) | | [optional] | + diff --git a/docs/PendingReceivedDocumentExtractedDataMining.md b/docs/PendingReceivedDocumentExtractedDataMining.md new file mode 100644 index 00000000..9fb823c6 --- /dev/null +++ b/docs/PendingReceivedDocumentExtractedDataMining.md @@ -0,0 +1,8 @@ +# FattureInCloud_Ruby_Sdk::PendingReceivedDocumentExtractedDataMining + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **save_entity** | **Boolean** | | [optional] | + diff --git a/docs/PendingReceivedDocumentPaymentsListItem.md b/docs/PendingReceivedDocumentPaymentsListItem.md new file mode 100644 index 00000000..00d0b252 --- /dev/null +++ b/docs/PendingReceivedDocumentPaymentsListItem.md @@ -0,0 +1,14 @@ +# FattureInCloud_Ruby_Sdk::PendingReceivedDocumentPaymentsListItem + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **amount** | **Float** | Pending received document payment total amount | [optional] | +| **due_date** | **Date** | Due date | [optional] | +| **paid_date** | **Date** | Pending received document payment paid date | [optional] | +| **payment_terms** | [**PendingReceivedDocumentPaymentsListItemPaymentTerms**](PendingReceivedDocumentPaymentsListItemPaymentTerms.md) | | [optional] | +| **status** | **String** | Pending received document payment status | [optional] | +| **paid_with_ts_pay** | **Boolean** | True if paid with TS Pay | [optional] | +| **payment_account** | [**PaymentAccount**](PaymentAccount.md) | | [optional] | + diff --git a/docs/PendingReceivedDocumentPaymentsListItemPaymentTerms.md b/docs/PendingReceivedDocumentPaymentsListItemPaymentTerms.md new file mode 100644 index 00000000..c8bb91af --- /dev/null +++ b/docs/PendingReceivedDocumentPaymentsListItemPaymentTerms.md @@ -0,0 +1,9 @@ +# FattureInCloud_Ruby_Sdk::PendingReceivedDocumentPaymentsListItemPaymentTerms + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **days** | **Integer** | Pending received document payment number of days by which the payment must be made | [optional] | +| **type** | [**PaymentTermsType**](PaymentTermsType.md) | | [optional][default to 'standard'] | + diff --git a/docs/PendingReceivedDocumentType.md b/docs/PendingReceivedDocumentType.md new file mode 100644 index 00000000..c0801683 --- /dev/null +++ b/docs/PendingReceivedDocumentType.md @@ -0,0 +1,7 @@ +# FattureInCloud_Ruby_Sdk::PendingReceivedDocumentType + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | + diff --git a/docs/PriceListsApi.md b/docs/PriceListsApi.md index 9749a705..9872b265 100644 --- a/docs/PriceListsApi.md +++ b/docs/PriceListsApi.md @@ -29,7 +29,7 @@ end api_instance = FattureInCloud_Ruby_Sdk::PriceListsApi.new company_id = 12345 # Integer | The ID of the company. -price_list_id = 'price_list_id_example' # String | +price_list_id = 'price_list_id_example' # String | The price list ID begin # Get PriceList Items List @@ -63,7 +63,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **company_id** | **Integer** | The ID of the company. | | -| **price_list_id** | **String** | | | +| **price_list_id** | **String** | The price list ID | | ### Return type diff --git a/docs/ProductsApi.md b/docs/ProductsApi.md index 142e64bf..736e31f8 100644 --- a/docs/ProductsApi.md +++ b/docs/ProductsApi.md @@ -151,7 +151,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## get_product diff --git a/docs/ReceiptsApi.md b/docs/ReceiptsApi.md index 8d00797b..81d02cf6 100644 --- a/docs/ReceiptsApi.md +++ b/docs/ReceiptsApi.md @@ -153,7 +153,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## get_receipt diff --git a/docs/ReceivedDocument.md b/docs/ReceivedDocument.md index c42b176c..c3b8a6fe 100644 --- a/docs/ReceivedDocument.md +++ b/docs/ReceivedDocument.md @@ -34,4 +34,6 @@ | **locked** | **Boolean** | Received Document can't be edited | [optional] | | **created_at** | **String** | Received document creation date | [optional] | | **updated_at** | **String** | Received document last update date | [optional] | +| **ei_reception_date** | **String** | [Read Only] Received document e-invoice reception date, needs fic_view fieldset | [optional][readonly] | +| **is_from_pending_expenses** | **Boolean** | [Read Only] True if received document is generated from pending expenses, needs fic_view fieldset | [optional][readonly] | diff --git a/docs/ReceivedDocumentItemsListItem.md b/docs/ReceivedDocumentItemsListItem.md index 245f7142..a8b9b496 100644 --- a/docs/ReceivedDocumentItemsListItem.md +++ b/docs/ReceivedDocumentItemsListItem.md @@ -14,4 +14,5 @@ | **qty** | **Float** | Received document item quantity | [optional] | | **vat** | [**VatType**](VatType.md) | | [optional] | | **stock** | **Float** | Received document item product number of items in stock | [optional] | +| **deductibility_vat_percentage** | **Float** | Received document item deductibility vat percentage | [optional] | diff --git a/docs/ReceivedDocumentsApi.md b/docs/ReceivedDocumentsApi.md index 11cbb8ad..8a0f721a 100644 --- a/docs/ReceivedDocumentsApi.md +++ b/docs/ReceivedDocumentsApi.md @@ -5,18 +5,20 @@ All URIs are relative to *https://api-v2.fattureincloud.it* | Method | HTTP request | Description | | ------ | ------------ | ----------- | | [**create_received_document**](ReceivedDocumentsApi.md#create_received_document) | **POST** /c/{company_id}/received_documents | Create Received Document | -| [**delete_bin_received_document**](ReceivedDocumentsApi.md#delete_bin_received_document) | **DELETE** /c/{company_id}/bin/received_documents/{document_id} | | +| [**delete_bin_received_document**](ReceivedDocumentsApi.md#delete_bin_received_document) | **DELETE** /c/{company_id}/bin/received_documents/{document_id} | Delete Bin Received Document | | [**delete_received_document**](ReceivedDocumentsApi.md#delete_received_document) | **DELETE** /c/{company_id}/received_documents/{document_id} | Delete Received Document | | [**delete_received_document_attachment**](ReceivedDocumentsApi.md#delete_received_document_attachment) | **DELETE** /c/{company_id}/received_documents/{document_id}/attachment | Delete Received Document Attachment | | [**get_bin_received_document**](ReceivedDocumentsApi.md#get_bin_received_document) | **GET** /c/{company_id}/bin/received_documents/{document_id} | Get Bin Received Documents List | | [**get_existing_received_document_totals**](ReceivedDocumentsApi.md#get_existing_received_document_totals) | **POST** /c/{company_id}/received_documents/{document_id}/totals | Get Existing Received Document Totals | | [**get_new_received_document_totals**](ReceivedDocumentsApi.md#get_new_received_document_totals) | **POST** /c/{company_id}/received_documents/totals | Get New Received Document Totals | +| [**get_pending_received_document**](ReceivedDocumentsApi.md#get_pending_received_document) | **GET** /c/{company_id}/received_documents/pending/{document_id} | Get Pending Received Document | | [**get_received_document**](ReceivedDocumentsApi.md#get_received_document) | **GET** /c/{company_id}/received_documents/{document_id} | Get Received Document | | [**get_received_document_pre_create_info**](ReceivedDocumentsApi.md#get_received_document_pre_create_info) | **GET** /c/{company_id}/received_documents/info | Get Received Document Pre-Create Info | | [**list_bin_received_documents**](ReceivedDocumentsApi.md#list_bin_received_documents) | **GET** /c/{company_id}/bin/received_documents | Get Bin Received Documents List | +| [**list_pending_received_documents**](ReceivedDocumentsApi.md#list_pending_received_documents) | **GET** /c/{company_id}/received_documents/pending | List Pending Received Documents | | [**list_received_documents**](ReceivedDocumentsApi.md#list_received_documents) | **GET** /c/{company_id}/received_documents | List Received Documents | | [**modify_received_document**](ReceivedDocumentsApi.md#modify_received_document) | **PUT** /c/{company_id}/received_documents/{document_id} | Modify Received Document | -| [**recover_bin_received_document**](ReceivedDocumentsApi.md#recover_bin_received_document) | **POST** /c/{company_id}/bin/received_documents/{document_id}/recover | | +| [**recover_bin_received_document**](ReceivedDocumentsApi.md#recover_bin_received_document) | **POST** /c/{company_id}/bin/received_documents/{document_id}/recover | Recover Received Document From The Bin | | [**upload_received_document_attachment**](ReceivedDocumentsApi.md#upload_received_document_attachment) | **POST** /c/{company_id}/received_documents/attachment | Upload Received Document Attachment | @@ -97,7 +99,7 @@ end > delete_bin_received_document(company_id, document_id) - +Delete Bin Received Document Delete Bin Received Document @@ -117,7 +119,7 @@ company_id = 12345 # Integer | The ID of the company. document_id = 56 # Integer | The ID of the document. begin - # + # Delete Bin Received Document api_instance.delete_bin_received_document(company_id, document_id) rescue FattureInCloud_Ruby_Sdk::ApiError => e puts "Error when calling ReceivedDocumentsApi->delete_bin_received_document: #{e}" @@ -132,7 +134,7 @@ This returns an Array which contains the response data (`nil` in this case), sta ```ruby begin - # + # Delete Bin Received Document data, status_code, headers = api_instance.delete_bin_received_document_with_http_info(company_id, document_id) p status_code # => 2xx p headers # => { ... } @@ -160,7 +162,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## delete_received_document @@ -230,7 +232,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## delete_received_document_attachment @@ -300,12 +302,12 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## get_bin_received_document -> get_bin_received_document(company_id, document_id) +> get_bin_received_document(company_id, document_id) Get Bin Received Documents List @@ -339,7 +341,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_bin_received_document_with_http_info(company_id, document_id) +> , Integer, Hash)> get_bin_received_document_with_http_info(company_id, document_id) ```ruby begin @@ -347,7 +349,7 @@ begin data, status_code, headers = api_instance.get_bin_received_document_with_http_info(company_id, document_id) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue FattureInCloud_Ruby_Sdk::ApiError => e puts "Error when calling ReceivedDocumentsApi->get_bin_received_document_with_http_info: #{e}" end @@ -362,7 +364,7 @@ end ### Return type -[**GetBinIssuedDocumentResponse**](GetBinIssuedDocumentResponse.md) +[**GetBinReceivedDocumentResponse**](GetBinReceivedDocumentResponse.md) ### Authorization @@ -522,6 +524,83 @@ end - **Accept**: application/json +## get_pending_received_document + +> get_pending_received_document(company_id, document_id, opts) + +Get Pending Received Document + +Gets the specified pending received document. + +### Examples + +```ruby +require 'time' +require 'fattureincloud_ruby_sdk' +# setup authorization +FattureInCloud_Ruby_Sdk.configure do |config| + # Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow + config.access_token = 'YOUR ACCESS TOKEN' +end + +api_instance = FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi.new +company_id = 12345 # Integer | The ID of the company. +document_id = 56 # Integer | The ID of the document. +opts = { + fields: 'fields_example', # String | List of comma-separated fields. + fieldset: 'basic' # String | Name of the fieldset. +} + +begin + # Get Pending Received Document + result = api_instance.get_pending_received_document(company_id, document_id, opts) + p result +rescue FattureInCloud_Ruby_Sdk::ApiError => e + puts "Error when calling ReceivedDocumentsApi->get_pending_received_document: #{e}" +end +``` + +#### Using the get_pending_received_document_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> get_pending_received_document_with_http_info(company_id, document_id, opts) + +```ruby +begin + # Get Pending Received Document + data, status_code, headers = api_instance.get_pending_received_document_with_http_info(company_id, document_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FattureInCloud_Ruby_Sdk::ApiError => e + puts "Error when calling ReceivedDocumentsApi->get_pending_received_document_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **company_id** | **Integer** | The ID of the company. | | +| **document_id** | **Integer** | The ID of the document. | | +| **fields** | **String** | List of comma-separated fields. | [optional] | +| **fieldset** | **String** | Name of the fieldset. | [optional] | + +### Return type + +[**GetPendingReceivedDocumentResponse**](GetPendingReceivedDocumentResponse.md) + +### Authorization + +[OAuth2AuthenticationCodeFlow](../README.md#OAuth2AuthenticationCodeFlow) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + ## get_received_document > get_received_document(company_id, document_id, opts) @@ -739,6 +818,91 @@ end - **Accept**: application/json +## list_pending_received_documents + +> list_pending_received_documents(company_id, type, opts) + +List Pending Received Documents + +Lists the pending received documents. + +### Examples + +```ruby +require 'time' +require 'fattureincloud_ruby_sdk' +# setup authorization +FattureInCloud_Ruby_Sdk.configure do |config| + # Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow + config.access_token = 'YOUR ACCESS TOKEN' +end + +api_instance = FattureInCloud_Ruby_Sdk::ReceivedDocumentsApi.new +company_id = 12345 # Integer | The ID of the company. +type = 'agyo' # String | The type of the pending received document. +opts = { + fields: 'fields_example', # String | List of comma-separated fields. + fieldset: 'basic', # String | Name of the fieldset. + sort: 'sort_example', # String | List of comma-separated fields for result sorting (minus for desc sorting). + page: 56, # Integer | The page to retrieve. + per_page: 56, # Integer | The size of the page. + q: 'q_example' # String | Query for filtering the results. +} + +begin + # List Pending Received Documents + result = api_instance.list_pending_received_documents(company_id, type, opts) + p result +rescue FattureInCloud_Ruby_Sdk::ApiError => e + puts "Error when calling ReceivedDocumentsApi->list_pending_received_documents: #{e}" +end +``` + +#### Using the list_pending_received_documents_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> list_pending_received_documents_with_http_info(company_id, type, opts) + +```ruby +begin + # List Pending Received Documents + data, status_code, headers = api_instance.list_pending_received_documents_with_http_info(company_id, type, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FattureInCloud_Ruby_Sdk::ApiError => e + puts "Error when calling ReceivedDocumentsApi->list_pending_received_documents_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **company_id** | **Integer** | The ID of the company. | | +| **type** | **String** | The type of the pending received document. | | +| **fields** | **String** | List of comma-separated fields. | [optional] | +| **fieldset** | **String** | Name of the fieldset. | [optional] | +| **sort** | **String** | List of comma-separated fields for result sorting (minus for desc sorting). | [optional] | +| **page** | **Integer** | The page to retrieve. | [optional][default to 1] | +| **per_page** | **Integer** | The size of the page. | [optional][default to 5] | +| **q** | **String** | Query for filtering the results. | [optional] | + +### Return type + +[**ListPendingReceivedDocumentsResponse**](ListPendingReceivedDocumentsResponse.md) + +### Authorization + +[OAuth2AuthenticationCodeFlow](../README.md#OAuth2AuthenticationCodeFlow) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + ## list_received_documents > list_received_documents(company_id, type, opts) @@ -903,7 +1067,7 @@ end > recover_bin_received_document(company_id, document_id) - +Recover Received Document From The Bin Recover Received Document From The Bin @@ -923,7 +1087,7 @@ company_id = 12345 # Integer | The ID of the company. document_id = 56 # Integer | The ID of the document. begin - # + # Recover Received Document From The Bin api_instance.recover_bin_received_document(company_id, document_id) rescue FattureInCloud_Ruby_Sdk::ApiError => e puts "Error when calling ReceivedDocumentsApi->recover_bin_received_document: #{e}" @@ -938,7 +1102,7 @@ This returns an Array which contains the response data (`nil` in this case), sta ```ruby begin - # + # Recover Received Document From The Bin data, status_code, headers = api_instance.recover_bin_received_document_with_http_info(company_id, document_id) p status_code # => 2xx p headers # => { ... } @@ -966,7 +1130,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## upload_received_document_attachment diff --git a/docs/SettingsApi.md b/docs/SettingsApi.md index 504cca89..d9c706dd 100644 --- a/docs/SettingsApi.md +++ b/docs/SettingsApi.md @@ -13,7 +13,9 @@ All URIs are relative to *https://api-v2.fattureincloud.it* | [**get_payment_account**](SettingsApi.md#get_payment_account) | **GET** /c/{company_id}/settings/payment_accounts/{payment_account_id} | Get Payment Account | | [**get_payment_method**](SettingsApi.md#get_payment_method) | **GET** /c/{company_id}/settings/payment_methods/{payment_method_id} | Get Payment Method | | [**get_tax_profile**](SettingsApi.md#get_tax_profile) | **GET** /c/{company_id}/settings/tax_profile | Get Tax Profile | +| [**get_template**](SettingsApi.md#get_template) | **GET** /c/{company_id}/settings/templates/{template_id} | Get Template | | [**get_vat_type**](SettingsApi.md#get_vat_type) | **GET** /c/{company_id}/settings/vat_types/{vat_type_id} | Get Vat Type | +| [**list_default_templates**](SettingsApi.md#list_default_templates) | **GET** /c/{company_id}/settings/templates | List Templates | | [**modify_payment_account**](SettingsApi.md#modify_payment_account) | **PUT** /c/{company_id}/settings/payment_accounts/{payment_account_id} | Modify Payment Account | | [**modify_payment_method**](SettingsApi.md#modify_payment_method) | **PUT** /c/{company_id}/settings/payment_methods/{payment_method_id} | Modify Payment Method | | [**modify_vat_type**](SettingsApi.md#modify_vat_type) | **PUT** /c/{company_id}/settings/vat_types/{vat_type_id} | Modify Vat Type | @@ -305,7 +307,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## delete_payment_method @@ -375,7 +377,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## delete_vat_type @@ -445,7 +447,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## get_payment_account @@ -671,6 +673,83 @@ end - **Accept**: application/json +## get_template + +> get_template(company_id, template_id, opts) + +Get Template + +Gets a specified template. + +### Examples + +```ruby +require 'time' +require 'fattureincloud_ruby_sdk' +# setup authorization +FattureInCloud_Ruby_Sdk.configure do |config| + # Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow + config.access_token = 'YOUR ACCESS TOKEN' +end + +api_instance = FattureInCloud_Ruby_Sdk::SettingsApi.new +company_id = 12345 # Integer | The ID of the company. +template_id = 56 # Integer | The Referred Template Id. +opts = { + fields: 'fields_example', # String | List of comma-separated fields. + fieldset: 'basic' # String | Name of the fieldset. +} + +begin + # Get Template + result = api_instance.get_template(company_id, template_id, opts) + p result +rescue FattureInCloud_Ruby_Sdk::ApiError => e + puts "Error when calling SettingsApi->get_template: #{e}" +end +``` + +#### Using the get_template_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> get_template_with_http_info(company_id, template_id, opts) + +```ruby +begin + # Get Template + data, status_code, headers = api_instance.get_template_with_http_info(company_id, template_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FattureInCloud_Ruby_Sdk::ApiError => e + puts "Error when calling SettingsApi->get_template_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **company_id** | **Integer** | The ID of the company. | | +| **template_id** | **Integer** | The Referred Template Id. | | +| **fields** | **String** | List of comma-separated fields. | [optional] | +| **fieldset** | **String** | Name of the fieldset. | [optional] | + +### Return type + +[**GetTemplatesResponse**](GetTemplatesResponse.md) + +### Authorization + +[OAuth2AuthenticationCodeFlow](../README.md#OAuth2AuthenticationCodeFlow) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + ## get_vat_type > get_vat_type(company_id, vat_type_id) @@ -742,6 +821,81 @@ end - **Accept**: application/json +## list_default_templates + +> list_default_templates(company_id, opts) + +List Templates + +Gets all the standard and private templates. + +### Examples + +```ruby +require 'time' +require 'fattureincloud_ruby_sdk' +# setup authorization +FattureInCloud_Ruby_Sdk.configure do |config| + # Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow + config.access_token = 'YOUR ACCESS TOKEN' +end + +api_instance = FattureInCloud_Ruby_Sdk::SettingsApi.new +company_id = 12345 # Integer | The ID of the company. +opts = { + fields: 'fields_example', # String | List of comma-separated fields. + fieldset: 'basic' # String | Name of the fieldset. +} + +begin + # List Templates + result = api_instance.list_default_templates(company_id, opts) + p result +rescue FattureInCloud_Ruby_Sdk::ApiError => e + puts "Error when calling SettingsApi->list_default_templates: #{e}" +end +``` + +#### Using the list_default_templates_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> , Integer, Hash)> list_default_templates_with_http_info(company_id, opts) + +```ruby +begin + # List Templates + data, status_code, headers = api_instance.list_default_templates_with_http_info(company_id, opts) + p status_code # => 2xx + p headers # => { ... } + p data # => +rescue FattureInCloud_Ruby_Sdk::ApiError => e + puts "Error when calling SettingsApi->list_default_templates_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **company_id** | **Integer** | The ID of the company. | | +| **fields** | **String** | List of comma-separated fields. | [optional] | +| **fieldset** | **String** | Name of the fieldset. | [optional] | + +### Return type + +[**ListTemplatesResponse**](ListTemplatesResponse.md) + +### Authorization + +[OAuth2AuthenticationCodeFlow](../README.md#OAuth2AuthenticationCodeFlow) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + ## modify_payment_account > modify_payment_account(company_id, payment_account_id, opts) diff --git a/docs/SuppliersApi.md b/docs/SuppliersApi.md index adbe287e..bf0b16e1 100644 --- a/docs/SuppliersApi.md +++ b/docs/SuppliersApi.md @@ -151,7 +151,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## get_supplier diff --git a/docs/TaxesApi.md b/docs/TaxesApi.md index 323e6fe6..28144b93 100644 --- a/docs/TaxesApi.md +++ b/docs/TaxesApi.md @@ -153,7 +153,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## delete_f24_attachment @@ -223,7 +223,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## get_f24 diff --git a/docs/TemplateType.md b/docs/TemplateType.md new file mode 100644 index 00000000..75495523 --- /dev/null +++ b/docs/TemplateType.md @@ -0,0 +1,7 @@ +# FattureInCloud_Ruby_Sdk::TemplateType + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | + diff --git a/docs/WebhooksApi.md b/docs/WebhooksApi.md index 74c44d6a..9273e93f 100644 --- a/docs/WebhooksApi.md +++ b/docs/WebhooksApi.md @@ -152,7 +152,7 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## get_webhooks_subscription @@ -441,5 +441,5 @@ nil (empty response body) ### HTTP request headers - **Content-Type**: application/json -- **Accept**: Not defined +- **Accept**: application/json diff --git a/fattureincloud_ruby_sdk.gemspec b/fattureincloud_ruby_sdk.gemspec index 67c6abd3..d9555f11 100644 --- a/fattureincloud_ruby_sdk.gemspec +++ b/fattureincloud_ruby_sdk.gemspec @@ -5,11 +5,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 - +Generator version: 7.20.0 =end $:.push File.expand_path("../lib", __FILE__) diff --git a/lib/fattureincloud_ruby_sdk.rb b/lib/fattureincloud_ruby_sdk.rb index 4027d3fe..44d73b9f 100644 --- a/lib/fattureincloud_ruby_sdk.rb +++ b/lib/fattureincloud_ruby_sdk.rb @@ -3,11 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 - +Generator version: 7.20.0 =end # Common files @@ -15,9 +14,11 @@ require 'fattureincloud_ruby_sdk/api_error' require 'fattureincloud_ruby_sdk/version' require 'fattureincloud_ruby_sdk/configuration' +require 'fattureincloud_ruby_sdk/api_model_base' # Models require 'fattureincloud_ruby_sdk/models/archive_document' +require 'fattureincloud_ruby_sdk/models/attachment' require 'fattureincloud_ruby_sdk/models/attachment_data' require 'fattureincloud_ruby_sdk/models/cashbook_entry' require 'fattureincloud_ruby_sdk/models/cashbook_entry_document' @@ -105,6 +106,7 @@ require 'fattureincloud_ruby_sdk/models/get_new_received_document_totals_response' require 'fattureincloud_ruby_sdk/models/get_payment_account_response' require 'fattureincloud_ruby_sdk/models/get_payment_method_response' +require 'fattureincloud_ruby_sdk/models/get_pending_received_document_response' require 'fattureincloud_ruby_sdk/models/get_price_list_items_response' require 'fattureincloud_ruby_sdk/models/get_product_response' require 'fattureincloud_ruby_sdk/models/get_receipt_pre_create_info_response' @@ -114,6 +116,7 @@ require 'fattureincloud_ruby_sdk/models/get_received_document_response' require 'fattureincloud_ruby_sdk/models/get_supplier_response' require 'fattureincloud_ruby_sdk/models/get_tax_profile_response' +require 'fattureincloud_ruby_sdk/models/get_templates_response' require 'fattureincloud_ruby_sdk/models/get_user_info_response' require 'fattureincloud_ruby_sdk/models/get_user_info_response_email_confirmation_state' require 'fattureincloud_ruby_sdk/models/get_user_info_response_info' @@ -160,6 +163,8 @@ require 'fattureincloud_ruby_sdk/models/list_languages_response' require 'fattureincloud_ruby_sdk/models/list_payment_accounts_response' require 'fattureincloud_ruby_sdk/models/list_payment_methods_response' +require 'fattureincloud_ruby_sdk/models/list_pending_received_documents_response' +require 'fattureincloud_ruby_sdk/models/list_pending_received_documents_response_page' require 'fattureincloud_ruby_sdk/models/list_price_lists_response' require 'fattureincloud_ruby_sdk/models/list_product_categories_response' require 'fattureincloud_ruby_sdk/models/list_products_response' @@ -213,6 +218,12 @@ require 'fattureincloud_ruby_sdk/models/payment_method_details' require 'fattureincloud_ruby_sdk/models/payment_method_type' require 'fattureincloud_ruby_sdk/models/payment_terms_type' +require 'fattureincloud_ruby_sdk/models/pending_received_document' +require 'fattureincloud_ruby_sdk/models/pending_received_document_extracted_data' +require 'fattureincloud_ruby_sdk/models/pending_received_document_extracted_data_mining' +require 'fattureincloud_ruby_sdk/models/pending_received_document_payments_list_item' +require 'fattureincloud_ruby_sdk/models/pending_received_document_payments_list_item_payment_terms' +require 'fattureincloud_ruby_sdk/models/pending_received_document_type' require 'fattureincloud_ruby_sdk/models/permission_level' require 'fattureincloud_ruby_sdk/models/permissions' require 'fattureincloud_ruby_sdk/models/permissions_fic_issued_documents_detailed' @@ -245,6 +256,7 @@ require 'fattureincloud_ruby_sdk/models/supplier' require 'fattureincloud_ruby_sdk/models/supplier_type' require 'fattureincloud_ruby_sdk/models/tax_profile' +require 'fattureincloud_ruby_sdk/models/template_type' require 'fattureincloud_ruby_sdk/models/transform_issued_document_response' require 'fattureincloud_ruby_sdk/models/upload_archive_attachment_response' require 'fattureincloud_ruby_sdk/models/upload_f24_attachment_response' diff --git a/lib/fattureincloud_ruby_sdk/api/archive_api.rb b/lib/fattureincloud_ruby_sdk/api/archive_api.rb index 59ccbb0a..fc2aba67 100644 --- a/lib/fattureincloud_ruby_sdk/api/archive_api.rb +++ b/lib/fattureincloud_ruby_sdk/api/archive_api.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -126,6 +126,8 @@ def delete_archive_document_with_http_info(company_id, document_id, opts = {}) # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -189,7 +191,7 @@ def get_archive_document_with_http_info(company_id, document_id, opts = {}) if @api_client.config.client_side_validation && document_id.nil? fail ArgumentError, "Missing the required parameter 'document_id' when calling ArchiveApi.get_archive_document" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end @@ -270,7 +272,7 @@ def list_archive_documents_with_http_info(company_id, opts = {}) if @api_client.config.client_side_validation && company_id.nil? fail ArgumentError, "Missing the required parameter 'company_id' when calling ArchiveApi.list_archive_documents" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end diff --git a/lib/fattureincloud_ruby_sdk/api/cashbook_api.rb b/lib/fattureincloud_ruby_sdk/api/cashbook_api.rb index 729b2508..3ab1434c 100644 --- a/lib/fattureincloud_ruby_sdk/api/cashbook_api.rb +++ b/lib/fattureincloud_ruby_sdk/api/cashbook_api.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -126,6 +126,8 @@ def delete_cashbook_entry_with_http_info(company_id, document_id, opts = {}) # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -189,7 +191,7 @@ def get_cashbook_entry_with_http_info(company_id, document_id, opts = {}) if @api_client.config.client_side_validation && document_id.nil? fail ArgumentError, "Missing the required parameter 'document_id' when calling CashbookApi.get_cashbook_entry" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end diff --git a/lib/fattureincloud_ruby_sdk/api/clients_api.rb b/lib/fattureincloud_ruby_sdk/api/clients_api.rb index 6207c050..b0c3e494 100644 --- a/lib/fattureincloud_ruby_sdk/api/clients_api.rb +++ b/lib/fattureincloud_ruby_sdk/api/clients_api.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -126,6 +126,8 @@ def delete_client_with_http_info(company_id, client_id, opts = {}) # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -189,7 +191,7 @@ def get_client_with_http_info(company_id, client_id, opts = {}) if @api_client.config.client_side_validation && client_id.nil? fail ArgumentError, "Missing the required parameter 'client_id' when calling ClientsApi.get_client" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end @@ -333,7 +335,7 @@ def list_clients_with_http_info(company_id, opts = {}) if @api_client.config.client_side_validation && company_id.nil? fail ArgumentError, "Missing the required parameter 'company_id' when calling ClientsApi.list_clients" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end diff --git a/lib/fattureincloud_ruby_sdk/api/companies_api.rb b/lib/fattureincloud_ruby_sdk/api/companies_api.rb index 6d014d98..cc29ece8 100644 --- a/lib/fattureincloud_ruby_sdk/api/companies_api.rb +++ b/lib/fattureincloud_ruby_sdk/api/companies_api.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/api/emails_api.rb b/lib/fattureincloud_ruby_sdk/api/emails_api.rb index 7852b2fe..11bf111d 100644 --- a/lib/fattureincloud_ruby_sdk/api/emails_api.rb +++ b/lib/fattureincloud_ruby_sdk/api/emails_api.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -54,7 +54,7 @@ def list_emails_with_http_info(company_id, opts = {}) if @api_client.config.client_side_validation && company_id.nil? fail ArgumentError, "Missing the required parameter 'company_id' when calling EmailsApi.list_emails" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end diff --git a/lib/fattureincloud_ruby_sdk/api/info_api.rb b/lib/fattureincloud_ruby_sdk/api/info_api.rb index 6ef706a9..a25cf5f2 100644 --- a/lib/fattureincloud_ruby_sdk/api/info_api.rb +++ b/lib/fattureincloud_ruby_sdk/api/info_api.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -322,6 +322,73 @@ def list_currencies_with_http_info(opts = {}) return data, status_code, headers end + # List Default Templates + # Lists the default available templates. + # @param [Hash] opts the optional parameters + # @option opts [String] :type Type of the templates. (default to 'all') + # @option opts [Boolean] :by_type [Only if type=all] If true, splits the list in objects, grouping templates by type. (default to false) + # @return [ListTemplatesResponse] + def list_default_templates(opts = {}) + data, _status_code, _headers = list_default_templates_with_http_info(opts) + data + end + + # List Default Templates + # Lists the default available templates. + # @param [Hash] opts the optional parameters + # @option opts [String] :type Type of the templates. (default to 'all') + # @option opts [Boolean] :by_type [Only if type=all] If true, splits the list in objects, grouping templates by type. (default to false) + # @return [Array<(ListTemplatesResponse, Integer, Hash)>] ListTemplatesResponse data, response status code and response headers + def list_default_templates_with_http_info(opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: InfoApi.list_default_templates ...' + end + allowable_values = ["all", "standard", "delivery_note", "accompanying_invoice"] + if @api_client.config.client_side_validation && opts[:'type'] && !allowable_values.include?(opts[:'type']) + fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}" + end + # resource path + local_var_path = '/info/templates' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil? + query_params[:'by_type'] = opts[:'by_type'] if !opts[:'by_type'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'ListTemplatesResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['OAuth2AuthenticationCodeFlow'] + + new_options = opts.merge( + :operation => :"InfoApi.list_default_templates", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: InfoApi#list_default_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # List Delivery Notes Default Causals # Lists the delivery note default causals. # @param [Hash] opts the optional parameters @@ -522,7 +589,7 @@ def list_payment_accounts_with_http_info(company_id, opts = {}) if @api_client.config.client_side_validation && company_id.nil? fail ArgumentError, "Missing the required parameter 'company_id' when calling InfoApi.list_payment_accounts" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end @@ -598,7 +665,7 @@ def list_payment_methods_with_http_info(company_id, opts = {}) if @api_client.config.client_side_validation && company_id.nil? fail ArgumentError, "Missing the required parameter 'company_id' when calling InfoApi.list_payment_methods" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end @@ -846,73 +913,6 @@ def list_revenue_centers_with_http_info(company_id, opts = {}) return data, status_code, headers end - # List Templates - # Lists the available templates. - # @param [Hash] opts the optional parameters - # @option opts [String] :type Type of the templates. (default to 'all') - # @option opts [Boolean] :by_type [Only if type=all] If true, splits the list in objects, grouping templates by type. (default to false) - # @return [ListTemplatesResponse] - def list_templates(opts = {}) - data, _status_code, _headers = list_templates_with_http_info(opts) - data - end - - # List Templates - # Lists the available templates. - # @param [Hash] opts the optional parameters - # @option opts [String] :type Type of the templates. (default to 'all') - # @option opts [Boolean] :by_type [Only if type=all] If true, splits the list in objects, grouping templates by type. (default to false) - # @return [Array<(ListTemplatesResponse, Integer, Hash)>] ListTemplatesResponse data, response status code and response headers - def list_templates_with_http_info(opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: InfoApi.list_templates ...' - end - allowable_values = ["all", "standard", "delivery_note", "accompanying_invoice"] - if @api_client.config.client_side_validation && opts[:'type'] && !allowable_values.include?(opts[:'type']) - fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}" - end - # resource path - local_var_path = '/info/templates' - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil? - query_params[:'by_type'] = opts[:'by_type'] if !opts[:'by_type'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] - - # return_type - return_type = opts[:debug_return_type] || 'ListTemplatesResponse' - - # auth_names - auth_names = opts[:debug_auth_names] || ['OAuth2AuthenticationCodeFlow'] - - new_options = opts.merge( - :operation => :"InfoApi.list_templates", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: InfoApi#list_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - # List Units of Measure # Lists the units of measure. # @param [Hash] opts the optional parameters @@ -995,7 +995,7 @@ def list_vat_types_with_http_info(company_id, opts = {}) if @api_client.config.client_side_validation && company_id.nil? fail ArgumentError, "Missing the required parameter 'company_id' when calling InfoApi.list_vat_types" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end diff --git a/lib/fattureincloud_ruby_sdk/api/issued_documents_api.rb b/lib/fattureincloud_ruby_sdk/api/issued_documents_api.rb index 9fb98f97..c3d262bd 100644 --- a/lib/fattureincloud_ruby_sdk/api/issued_documents_api.rb +++ b/lib/fattureincloud_ruby_sdk/api/issued_documents_api.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -89,7 +89,7 @@ def create_issued_document_with_http_info(company_id, opts = {}) return data, status_code, headers end - # + # Delete Bin Issued Document # Delete Bin Issued Document # @param company_id [Integer] The ID of the company. # @param document_id [Integer] The ID of the document. @@ -100,7 +100,7 @@ def delete_bin_issued_document(company_id, document_id, opts = {}) nil end - # + # Delete Bin Issued Document # Delete Bin Issued Document # @param company_id [Integer] The ID of the company. # @param document_id [Integer] The ID of the document. @@ -126,6 +126,8 @@ def delete_bin_issued_document_with_http_info(company_id, document_id, opts = {} # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -193,6 +195,8 @@ def delete_issued_document_with_http_info(company_id, document_id, opts = {}) # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -260,6 +264,8 @@ def delete_issued_document_attachment_with_http_info(company_id, document_id, op # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -537,7 +543,7 @@ def get_issued_document_with_http_info(company_id, document_id, opts = {}) if @api_client.config.client_side_validation && document_id.nil? fail ArgumentError, "Missing the required parameter 'document_id' when calling IssuedDocumentsApi.get_issued_document" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end @@ -613,7 +619,7 @@ def get_issued_document_pre_create_info_with_http_info(company_id, type, opts = fail ArgumentError, "Missing the required parameter 'type' when calling IssuedDocumentsApi.get_issued_document_pre_create_info" end # verify enum value - allowable_values = ["invoice", "quote", "proforma", "receipt", "delivery_note", "credit_note", "order", "work_report", "supplier_order", "self_own_invoice", "self_supplier_invoice"] + allowable_values = ["invoice", "quote", "proforma", "receipt", "delivery_note", "credit_note", "order", "work_report", "supplier_order", "self_invoice"] if @api_client.config.client_side_validation && !allowable_values.include?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}" end @@ -919,11 +925,11 @@ def list_issued_documents_with_http_info(company_id, type, opts = {}) fail ArgumentError, "Missing the required parameter 'type' when calling IssuedDocumentsApi.list_issued_documents" end # verify enum value - allowable_values = ["invoice", "quote", "proforma", "receipt", "delivery_note", "credit_note", "order", "work_report", "supplier_order", "self_own_invoice", "self_supplier_invoice"] + allowable_values = ["invoice", "quote", "proforma", "receipt", "delivery_note", "credit_note", "order", "work_report", "supplier_order", "self_invoice"] if @api_client.config.client_side_validation && !allowable_values.include?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end @@ -1063,7 +1069,7 @@ def modify_issued_document_with_http_info(company_id, document_id, opts = {}) return data, status_code, headers end - # + # Recover Issued Document From The Bin # Recover Issued Document From The Bin # @param company_id [Integer] The ID of the company. # @param document_id [Integer] The ID of the document. @@ -1074,7 +1080,7 @@ def recover_bin_issued_document(company_id, document_id, opts = {}) nil end - # + # Recover Issued Document From The Bin # Recover Issued Document From The Bin # @param company_id [Integer] The ID of the company. # @param document_id [Integer] The ID of the document. @@ -1100,6 +1106,8 @@ def recover_bin_issued_document_with_http_info(company_id, document_id, opts = { # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -1169,6 +1177,8 @@ def schedule_email_with_http_info(company_id, document_id, opts = {}) # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? diff --git a/lib/fattureincloud_ruby_sdk/api/issued_e_invoices_api.rb b/lib/fattureincloud_ruby_sdk/api/issued_e_invoices_api.rb index 281f8f81..64d5f9b5 100644 --- a/lib/fattureincloud_ruby_sdk/api/issued_e_invoices_api.rb +++ b/lib/fattureincloud_ruby_sdk/api/issued_e_invoices_api.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -129,7 +129,7 @@ def get_e_invoice_xml_with_http_info(company_id, document_id, opts = {}) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['text/xml']) unless header_params['Accept'] + header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} diff --git a/lib/fattureincloud_ruby_sdk/api/price_lists_api.rb b/lib/fattureincloud_ruby_sdk/api/price_lists_api.rb index d6d327e9..340f74d9 100644 --- a/lib/fattureincloud_ruby_sdk/api/price_lists_api.rb +++ b/lib/fattureincloud_ruby_sdk/api/price_lists_api.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -22,7 +22,7 @@ def initialize(api_client = ApiClient.default) # Get PriceList Items List # Retrieves all the Items of a PriceList # @param company_id [Integer] The ID of the company. - # @param price_list_id [String] + # @param price_list_id [String] The price list ID # @param [Hash] opts the optional parameters # @return [GetPriceListItemsResponse] def get_price_list_items(company_id, price_list_id, opts = {}) @@ -33,7 +33,7 @@ def get_price_list_items(company_id, price_list_id, opts = {}) # Get PriceList Items List # Retrieves all the Items of a PriceList # @param company_id [Integer] The ID of the company. - # @param price_list_id [String] + # @param price_list_id [String] The price list ID # @param [Hash] opts the optional parameters # @return [Array<(GetPriceListItemsResponse, Integer, Hash)>] GetPriceListItemsResponse data, response status code and response headers def get_price_list_items_with_http_info(company_id, price_list_id, opts = {}) diff --git a/lib/fattureincloud_ruby_sdk/api/products_api.rb b/lib/fattureincloud_ruby_sdk/api/products_api.rb index 02e868d3..adc59b7b 100644 --- a/lib/fattureincloud_ruby_sdk/api/products_api.rb +++ b/lib/fattureincloud_ruby_sdk/api/products_api.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -126,6 +126,8 @@ def delete_product_with_http_info(company_id, product_id, opts = {}) # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -189,7 +191,7 @@ def get_product_with_http_info(company_id, product_id, opts = {}) if @api_client.config.client_side_validation && product_id.nil? fail ArgumentError, "Missing the required parameter 'product_id' when calling ProductsApi.get_product" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end @@ -270,7 +272,7 @@ def list_products_with_http_info(company_id, opts = {}) if @api_client.config.client_side_validation && company_id.nil? fail ArgumentError, "Missing the required parameter 'company_id' when calling ProductsApi.list_products" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end diff --git a/lib/fattureincloud_ruby_sdk/api/receipts_api.rb b/lib/fattureincloud_ruby_sdk/api/receipts_api.rb index 444d1854..c4597357 100644 --- a/lib/fattureincloud_ruby_sdk/api/receipts_api.rb +++ b/lib/fattureincloud_ruby_sdk/api/receipts_api.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -126,6 +126,8 @@ def delete_receipt_with_http_info(company_id, document_id, opts = {}) # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -189,7 +191,7 @@ def get_receipt_with_http_info(company_id, document_id, opts = {}) if @api_client.config.client_side_validation && document_id.nil? fail ArgumentError, "Missing the required parameter 'document_id' when calling ReceiptsApi.get_receipt" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end @@ -415,7 +417,7 @@ def list_receipts_with_http_info(company_id, opts = {}) if @api_client.config.client_side_validation && company_id.nil? fail ArgumentError, "Missing the required parameter 'company_id' when calling ReceiptsApi.list_receipts" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end diff --git a/lib/fattureincloud_ruby_sdk/api/received_documents_api.rb b/lib/fattureincloud_ruby_sdk/api/received_documents_api.rb index f14229bd..a291ec28 100644 --- a/lib/fattureincloud_ruby_sdk/api/received_documents_api.rb +++ b/lib/fattureincloud_ruby_sdk/api/received_documents_api.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -89,7 +89,7 @@ def create_received_document_with_http_info(company_id, opts = {}) return data, status_code, headers end - # + # Delete Bin Received Document # Delete Bin Received Document # @param company_id [Integer] The ID of the company. # @param document_id [Integer] The ID of the document. @@ -100,7 +100,7 @@ def delete_bin_received_document(company_id, document_id, opts = {}) nil end - # + # Delete Bin Received Document # Delete Bin Received Document # @param company_id [Integer] The ID of the company. # @param document_id [Integer] The ID of the document. @@ -126,6 +126,8 @@ def delete_bin_received_document_with_http_info(company_id, document_id, opts = # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -193,6 +195,8 @@ def delete_received_document_with_http_info(company_id, document_id, opts = {}) # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -260,6 +264,8 @@ def delete_received_document_attachment_with_http_info(company_id, document_id, # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -295,7 +301,7 @@ def delete_received_document_attachment_with_http_info(company_id, document_id, # @param company_id [Integer] The ID of the company. # @param document_id [Integer] The ID of the document. # @param [Hash] opts the optional parameters - # @return [GetBinIssuedDocumentResponse] + # @return [GetBinReceivedDocumentResponse] def get_bin_received_document(company_id, document_id, opts = {}) data, _status_code, _headers = get_bin_received_document_with_http_info(company_id, document_id, opts) data @@ -306,7 +312,7 @@ def get_bin_received_document(company_id, document_id, opts = {}) # @param company_id [Integer] The ID of the company. # @param document_id [Integer] The ID of the document. # @param [Hash] opts the optional parameters - # @return [Array<(GetBinIssuedDocumentResponse, Integer, Hash)>] GetBinIssuedDocumentResponse data, response status code and response headers + # @return [Array<(GetBinReceivedDocumentResponse, Integer, Hash)>] GetBinReceivedDocumentResponse data, response status code and response headers def get_bin_received_document_with_http_info(company_id, document_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ReceivedDocumentsApi.get_bin_received_document ...' @@ -337,7 +343,7 @@ def get_bin_received_document_with_http_info(company_id, document_id, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'GetBinIssuedDocumentResponse' + return_type = opts[:debug_return_type] || 'GetBinReceivedDocumentResponse' # auth_names auth_names = opts[:debug_auth_names] || ['OAuth2AuthenticationCodeFlow'] @@ -505,6 +511,85 @@ def get_new_received_document_totals_with_http_info(company_id, opts = {}) return data, status_code, headers end + # Get Pending Received Document + # Gets the specified pending received document. + # @param company_id [Integer] The ID of the company. + # @param document_id [Integer] The ID of the document. + # @param [Hash] opts the optional parameters + # @option opts [String] :fields List of comma-separated fields. + # @option opts [String] :fieldset Name of the fieldset. + # @return [GetPendingReceivedDocumentResponse] + def get_pending_received_document(company_id, document_id, opts = {}) + data, _status_code, _headers = get_pending_received_document_with_http_info(company_id, document_id, opts) + data + end + + # Get Pending Received Document + # Gets the specified pending received document. + # @param company_id [Integer] The ID of the company. + # @param document_id [Integer] The ID of the document. + # @param [Hash] opts the optional parameters + # @option opts [String] :fields List of comma-separated fields. + # @option opts [String] :fieldset Name of the fieldset. + # @return [Array<(GetPendingReceivedDocumentResponse, Integer, Hash)>] GetPendingReceivedDocumentResponse data, response status code and response headers + def get_pending_received_document_with_http_info(company_id, document_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReceivedDocumentsApi.get_pending_received_document ...' + end + # verify the required parameter 'company_id' is set + if @api_client.config.client_side_validation && company_id.nil? + fail ArgumentError, "Missing the required parameter 'company_id' when calling ReceivedDocumentsApi.get_pending_received_document" + end + # verify the required parameter 'document_id' is set + if @api_client.config.client_side_validation && document_id.nil? + fail ArgumentError, "Missing the required parameter 'document_id' when calling ReceivedDocumentsApi.get_pending_received_document" + end + allowable_values = ["basic", "detailed", "fic_view"] + if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) + fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" + end + # resource path + local_var_path = '/c/{company_id}/received_documents/pending/{document_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'document_id' + '}', CGI.escape(document_id.to_s)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? + query_params[:'fieldset'] = opts[:'fieldset'] if !opts[:'fieldset'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetPendingReceivedDocumentResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['OAuth2AuthenticationCodeFlow'] + + new_options = opts.merge( + :operation => :"ReceivedDocumentsApi.get_pending_received_document", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReceivedDocumentsApi#get_pending_received_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Get Received Document # Gets the specified document. # @param company_id [Integer] The ID of the company. @@ -538,7 +623,7 @@ def get_received_document_with_http_info(company_id, document_id, opts = {}) if @api_client.config.client_side_validation && document_id.nil? fail ArgumentError, "Missing the required parameter 'document_id' when calling ReceivedDocumentsApi.get_received_document" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end @@ -722,6 +807,111 @@ def list_bin_received_documents_with_http_info(company_id, opts = {}) return data, status_code, headers end + # List Pending Received Documents + # Lists the pending received documents. + # @param company_id [Integer] The ID of the company. + # @param type [String] The type of the pending received document. + # @param [Hash] opts the optional parameters + # @option opts [String] :fields List of comma-separated fields. + # @option opts [String] :fieldset Name of the fieldset. + # @option opts [String] :sort List of comma-separated fields for result sorting (minus for desc sorting). + # @option opts [Integer] :page The page to retrieve. (default to 1) + # @option opts [Integer] :per_page The size of the page. (default to 5) + # @option opts [String] :q Query for filtering the results. + # @return [ListPendingReceivedDocumentsResponse] + def list_pending_received_documents(company_id, type, opts = {}) + data, _status_code, _headers = list_pending_received_documents_with_http_info(company_id, type, opts) + data + end + + # List Pending Received Documents + # Lists the pending received documents. + # @param company_id [Integer] The ID of the company. + # @param type [String] The type of the pending received document. + # @param [Hash] opts the optional parameters + # @option opts [String] :fields List of comma-separated fields. + # @option opts [String] :fieldset Name of the fieldset. + # @option opts [String] :sort List of comma-separated fields for result sorting (minus for desc sorting). + # @option opts [Integer] :page The page to retrieve. (default to 1) + # @option opts [Integer] :per_page The size of the page. (default to 5) + # @option opts [String] :q Query for filtering the results. + # @return [Array<(ListPendingReceivedDocumentsResponse, Integer, Hash)>] ListPendingReceivedDocumentsResponse data, response status code and response headers + def list_pending_received_documents_with_http_info(company_id, type, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReceivedDocumentsApi.list_pending_received_documents ...' + end + # verify the required parameter 'company_id' is set + if @api_client.config.client_side_validation && company_id.nil? + fail ArgumentError, "Missing the required parameter 'company_id' when calling ReceivedDocumentsApi.list_pending_received_documents" + end + # verify the required parameter 'type' is set + if @api_client.config.client_side_validation && type.nil? + fail ArgumentError, "Missing the required parameter 'type' when calling ReceivedDocumentsApi.list_pending_received_documents" + end + # verify enum value + allowable_values = ["agyo", "mail", "browser"] + if @api_client.config.client_side_validation && !allowable_values.include?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}" + end + allowable_values = ["basic", "detailed", "fic_view"] + if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) + fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" + end + if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] > 100 + fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling ReceivedDocumentsApi.list_pending_received_documents, must be smaller than or equal to 100.' + end + + if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] < 1 + fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling ReceivedDocumentsApi.list_pending_received_documents, must be greater than or equal to 1.' + end + + # resource path + local_var_path = '/c/{company_id}/received_documents/pending'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'type'] = type + query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? + query_params[:'fieldset'] = opts[:'fieldset'] if !opts[:'fieldset'].nil? + query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? + query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? + query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil? + query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'ListPendingReceivedDocumentsResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['OAuth2AuthenticationCodeFlow'] + + new_options = opts.merge( + :operation => :"ReceivedDocumentsApi.list_pending_received_documents", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReceivedDocumentsApi#list_pending_received_documents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # List Received Documents # Lists the received documents. # @param company_id [Integer] The ID of the company. @@ -768,7 +958,7 @@ def list_received_documents_with_http_info(company_id, type, opts = {}) if @api_client.config.client_side_validation && !allowable_values.include?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end @@ -903,7 +1093,7 @@ def modify_received_document_with_http_info(company_id, document_id, opts = {}) return data, status_code, headers end - # + # Recover Received Document From The Bin # Recover Received Document From The Bin # @param company_id [Integer] The ID of the company. # @param document_id [Integer] The ID of the document. @@ -914,7 +1104,7 @@ def recover_bin_received_document(company_id, document_id, opts = {}) nil end - # + # Recover Received Document From The Bin # Recover Received Document From The Bin # @param company_id [Integer] The ID of the company. # @param document_id [Integer] The ID of the document. @@ -940,6 +1130,8 @@ def recover_bin_received_document_with_http_info(company_id, document_id, opts = # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} diff --git a/lib/fattureincloud_ruby_sdk/api/settings_api.rb b/lib/fattureincloud_ruby_sdk/api/settings_api.rb index d36081cf..a3c02539 100644 --- a/lib/fattureincloud_ruby_sdk/api/settings_api.rb +++ b/lib/fattureincloud_ruby_sdk/api/settings_api.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -266,6 +266,8 @@ def delete_payment_account_with_http_info(company_id, payment_account_id, opts = # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -333,6 +335,8 @@ def delete_payment_method_with_http_info(company_id, payment_method_id, opts = { # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -400,6 +404,8 @@ def delete_vat_type_with_http_info(company_id, vat_type_id, opts = {}) # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -463,7 +469,7 @@ def get_payment_account_with_http_info(company_id, payment_account_id, opts = {} if @api_client.config.client_side_validation && payment_account_id.nil? fail ArgumentError, "Missing the required parameter 'payment_account_id' when calling SettingsApi.get_payment_account" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end @@ -542,7 +548,7 @@ def get_payment_method_with_http_info(company_id, payment_method_id, opts = {}) if @api_client.config.client_side_validation && payment_method_id.nil? fail ArgumentError, "Missing the required parameter 'payment_method_id' when calling SettingsApi.get_payment_method" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end @@ -651,6 +657,85 @@ def get_tax_profile_with_http_info(company_id, opts = {}) return data, status_code, headers end + # Get Template + # Gets a specified template. + # @param company_id [Integer] The ID of the company. + # @param template_id [Integer] The Referred Template Id. + # @param [Hash] opts the optional parameters + # @option opts [String] :fields List of comma-separated fields. + # @option opts [String] :fieldset Name of the fieldset. + # @return [GetTemplatesResponse] + def get_template(company_id, template_id, opts = {}) + data, _status_code, _headers = get_template_with_http_info(company_id, template_id, opts) + data + end + + # Get Template + # Gets a specified template. + # @param company_id [Integer] The ID of the company. + # @param template_id [Integer] The Referred Template Id. + # @param [Hash] opts the optional parameters + # @option opts [String] :fields List of comma-separated fields. + # @option opts [String] :fieldset Name of the fieldset. + # @return [Array<(GetTemplatesResponse, Integer, Hash)>] GetTemplatesResponse data, response status code and response headers + def get_template_with_http_info(company_id, template_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: SettingsApi.get_template ...' + end + # verify the required parameter 'company_id' is set + if @api_client.config.client_side_validation && company_id.nil? + fail ArgumentError, "Missing the required parameter 'company_id' when calling SettingsApi.get_template" + end + # verify the required parameter 'template_id' is set + if @api_client.config.client_side_validation && template_id.nil? + fail ArgumentError, "Missing the required parameter 'template_id' when calling SettingsApi.get_template" + end + allowable_values = ["basic", "detailed", "fic_view"] + if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) + fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" + end + # resource path + local_var_path = '/c/{company_id}/settings/templates/{template_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'template_id' + '}', CGI.escape(template_id.to_s)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? + query_params[:'fieldset'] = opts[:'fieldset'] if !opts[:'fieldset'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'GetTemplatesResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['OAuth2AuthenticationCodeFlow'] + + new_options = opts.merge( + :operation => :"SettingsApi.get_template", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: SettingsApi#get_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Get Vat Type # Gets the specified vat type. # @param company_id [Integer] The ID of the company. @@ -720,6 +805,79 @@ def get_vat_type_with_http_info(company_id, vat_type_id, opts = {}) return data, status_code, headers end + # List Default Templates + # Gets all the standard and private templates. + # @param company_id [Integer] The ID of the company. + # @param [Hash] opts the optional parameters + # @option opts [String] :fields List of comma-separated fields. + # @option opts [String] :fieldset Name of the fieldset. + # @return [ListTemplatesResponse] + def list_default_templates(company_id, opts = {}) + data, _status_code, _headers = list_default_templates_with_http_info(company_id, opts) + data + end + + # List Default Templates + # Gets all the standard and private templates. + # @param company_id [Integer] The ID of the company. + # @param [Hash] opts the optional parameters + # @option opts [String] :fields List of comma-separated fields. + # @option opts [String] :fieldset Name of the fieldset. + # @return [Array<(ListTemplatesResponse, Integer, Hash)>] ListTemplatesResponse data, response status code and response headers + def list_default_templates_with_http_info(company_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: SettingsApi.list_default_templates ...' + end + # verify the required parameter 'company_id' is set + if @api_client.config.client_side_validation && company_id.nil? + fail ArgumentError, "Missing the required parameter 'company_id' when calling SettingsApi.list_default_templates" + end + allowable_values = ["basic", "detailed", "fic_view"] + if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) + fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" + end + # resource path + local_var_path = '/c/{company_id}/settings/templates'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? + query_params[:'fieldset'] = opts[:'fieldset'] if !opts[:'fieldset'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'ListTemplatesResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || ['OAuth2AuthenticationCodeFlow'] + + new_options = opts.merge( + :operation => :"SettingsApi.list_default_templates", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: SettingsApi#list_default_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Modify Payment Account # Modifies the specified payment account. # @param company_id [Integer] The ID of the company. diff --git a/lib/fattureincloud_ruby_sdk/api/suppliers_api.rb b/lib/fattureincloud_ruby_sdk/api/suppliers_api.rb index 63a73a5a..a195a8cf 100644 --- a/lib/fattureincloud_ruby_sdk/api/suppliers_api.rb +++ b/lib/fattureincloud_ruby_sdk/api/suppliers_api.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -126,6 +126,8 @@ def delete_supplier_with_http_info(company_id, supplier_id, opts = {}) # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -189,7 +191,7 @@ def get_supplier_with_http_info(company_id, supplier_id, opts = {}) if @api_client.config.client_side_validation && supplier_id.nil? fail ArgumentError, "Missing the required parameter 'supplier_id' when calling SuppliersApi.get_supplier" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end @@ -270,7 +272,7 @@ def list_suppliers_with_http_info(company_id, opts = {}) if @api_client.config.client_side_validation && company_id.nil? fail ArgumentError, "Missing the required parameter 'company_id' when calling SuppliersApi.list_suppliers" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end diff --git a/lib/fattureincloud_ruby_sdk/api/taxes_api.rb b/lib/fattureincloud_ruby_sdk/api/taxes_api.rb index 6ecb0abb..0aa38e6c 100644 --- a/lib/fattureincloud_ruby_sdk/api/taxes_api.rb +++ b/lib/fattureincloud_ruby_sdk/api/taxes_api.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -126,6 +126,8 @@ def delete_f24_with_http_info(company_id, document_id, opts = {}) # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -193,6 +195,8 @@ def delete_f24_attachment_with_http_info(company_id, document_id, opts = {}) # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -256,7 +260,7 @@ def get_f24_with_http_info(company_id, document_id, opts = {}) if @api_client.config.client_side_validation && document_id.nil? fail ArgumentError, "Missing the required parameter 'document_id' when calling TaxesApi.get_f24" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end @@ -337,7 +341,7 @@ def list_f24_with_http_info(company_id, opts = {}) if @api_client.config.client_side_validation && company_id.nil? fail ArgumentError, "Missing the required parameter 'company_id' when calling TaxesApi.list_f24" end - allowable_values = ["basic", "detailed"] + allowable_values = ["basic", "detailed", "fic_view"] if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset']) fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}" end diff --git a/lib/fattureincloud_ruby_sdk/api/user_api.rb b/lib/fattureincloud_ruby_sdk/api/user_api.rb index dac94baa..d1089aa7 100644 --- a/lib/fattureincloud_ruby_sdk/api/user_api.rb +++ b/lib/fattureincloud_ruby_sdk/api/user_api.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/api/webhooks_api.rb b/lib/fattureincloud_ruby_sdk/api/webhooks_api.rb index 92f25192..7bed067b 100644 --- a/lib/fattureincloud_ruby_sdk/api/webhooks_api.rb +++ b/lib/fattureincloud_ruby_sdk/api/webhooks_api.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -126,6 +126,8 @@ def delete_webhooks_subscription_with_http_info(company_id, subscription_id, opt # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} @@ -403,6 +405,8 @@ def verify_webhooks_subscription_with_http_info(company_id, subscription_id, opt # header parameters header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? diff --git a/lib/fattureincloud_ruby_sdk/api_client.rb b/lib/fattureincloud_ruby_sdk/api_client.rb index d0c688f2..ed61d719 100644 --- a/lib/fattureincloud_ruby_sdk/api_client.rb +++ b/lib/fattureincloud_ruby_sdk/api_client.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -32,7 +32,7 @@ class ApiClient # @option config [Configuration] Configuration for initializing the object, default to Configuration.default def initialize(config = Configuration.default) @config = config - @user_agent = "FattureInCloud/2.1.2/Ruby-SDK" + @user_agent = "FattureInCloud/2.1.3/Ruby-SDK" @default_headers = { 'Content-Type' => 'application/json', 'User-Agent' => @user_agent @@ -278,9 +278,13 @@ def convert_to_type(data, return_type) data.each { |k, v| hash[k] = convert_to_type(v, sub_type) } end else - # models (e.g. Pet) or oneOf + # models (e.g. Pet) or oneOf/anyOf klass = FattureInCloud_Ruby_Sdk.const_get(return_type) - klass.respond_to?(:openapi_one_of) ? klass.build(data) : klass.build_from_hash(data) + if klass.respond_to?(:openapi_one_of) || klass.respond_to?(:openapi_any_of) + klass.build(data) + else + klass.build_from_hash(data) + end end end diff --git a/lib/fattureincloud_ruby_sdk/api_error.rb b/lib/fattureincloud_ruby_sdk/api_error.rb index f20586be..141eeabe 100644 --- a/lib/fattureincloud_ruby_sdk/api_error.rb +++ b/lib/fattureincloud_ruby_sdk/api_error.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/api_model_base.rb b/lib/fattureincloud_ruby_sdk/api_model_base.rb new file mode 100644 index 00000000..0af05264 --- /dev/null +++ b/lib/fattureincloud_ruby_sdk/api_model_base.rb @@ -0,0 +1,88 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +module FattureInCloud_Ruby_Sdk + class ApiModelBase + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = FattureInCloud_Ruby_Sdk.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/fattureincloud_ruby_sdk/configuration.rb b/lib/fattureincloud_ruby_sdk/configuration.rb index dcd2c877..ed735a84 100644 --- a/lib/fattureincloud_ruby_sdk/configuration.rb +++ b/lib/fattureincloud_ruby_sdk/configuration.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/archive_document.rb b/lib/fattureincloud_ruby_sdk/models/archive_document.rb index 510e9aa5..ab9ccb4b 100644 --- a/lib/fattureincloud_ruby_sdk/models/archive_document.rb +++ b/lib/fattureincloud_ruby_sdk/models/archive_document.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ArchiveDocument + class ArchiveDocument < ApiModelBase # Archive document id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/attachment.rb b/lib/fattureincloud_ruby_sdk/models/attachment.rb new file mode 100644 index 00000000..5d74ba2b --- /dev/null +++ b/lib/fattureincloud_ruby_sdk/models/attachment.rb @@ -0,0 +1,232 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'date' +require 'time' + +module FattureInCloud_Ruby_Sdk + class Attachment < ApiModelBase + # Attachment file name + attr_accessor :filename + + # Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx] + attr_accessor :attachment + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'filename' => :'filename', + :'attachment' => :'attachment' + } + end + + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + acceptable_attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'filename' => :'String', + :'attachment' => :'File' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'filename', + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `FattureInCloud_Ruby_Sdk::Attachment` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `FattureInCloud_Ruby_Sdk::Attachment`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'filename') + self.filename = attributes[:'filename'] + end + + if attributes.key?(:'attachment') + self.attachment = attributes[:'attachment'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + filename == o.filename && + attachment == o.attachment + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [filename, attachment].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + when :Hash + value + else # model + # models (e.g. Pet) or oneOf + klass = FattureInCloud_Ruby_Sdk.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/fattureincloud_ruby_sdk/models/attachment_data.rb b/lib/fattureincloud_ruby_sdk/models/attachment_data.rb index 11c93390..ed1c7d61 100644 --- a/lib/fattureincloud_ruby_sdk/models/attachment_data.rb +++ b/lib/fattureincloud_ruby_sdk/models/attachment_data.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class AttachmentData + class AttachmentData < ApiModelBase # Uploaded attachment token. attr_accessor :attachment_token diff --git a/lib/fattureincloud_ruby_sdk/models/cashbook_entry.rb b/lib/fattureincloud_ruby_sdk/models/cashbook_entry.rb index 1654ae17..320f41f3 100644 --- a/lib/fattureincloud_ruby_sdk/models/cashbook_entry.rb +++ b/lib/fattureincloud_ruby_sdk/models/cashbook_entry.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CashbookEntry + class CashbookEntry < ApiModelBase # Cashbook id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/cashbook_entry_document.rb b/lib/fattureincloud_ruby_sdk/models/cashbook_entry_document.rb index 9b166254..f5cbeeeb 100644 --- a/lib/fattureincloud_ruby_sdk/models/cashbook_entry_document.rb +++ b/lib/fattureincloud_ruby_sdk/models/cashbook_entry_document.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CashbookEntryDocument + class CashbookEntryDocument < ApiModelBase # Cashbook related document id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/cashbook_entry_kind.rb b/lib/fattureincloud_ruby_sdk/models/cashbook_entry_kind.rb index 8f2bc0fb..e16d5e17 100644 --- a/lib/fattureincloud_ruby_sdk/models/cashbook_entry_kind.rb +++ b/lib/fattureincloud_ruby_sdk/models/cashbook_entry_kind.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -20,9 +20,10 @@ class CashbookEntryKind RECEIVED_DOCUMENT = "received_document".freeze TAX = "tax".freeze RECEIPT = "receipt".freeze + TS_PAY = "ts_pay".freeze def self.all_vars - @all_vars ||= [CASHBOOK, ISSUED_DOCUMENT, RECEIVED_DOCUMENT, TAX, RECEIPT].freeze + @all_vars ||= [CASHBOOK, ISSUED_DOCUMENT, RECEIVED_DOCUMENT, TAX, RECEIPT, TS_PAY].freeze end # Builds the enum from string diff --git a/lib/fattureincloud_ruby_sdk/models/cashbook_entry_type.rb b/lib/fattureincloud_ruby_sdk/models/cashbook_entry_type.rb index 5d437df9..cc418446 100644 --- a/lib/fattureincloud_ruby_sdk/models/cashbook_entry_type.rb +++ b/lib/fattureincloud_ruby_sdk/models/cashbook_entry_type.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/city.rb b/lib/fattureincloud_ruby_sdk/models/city.rb index 00bfb2af..9256364a 100644 --- a/lib/fattureincloud_ruby_sdk/models/city.rb +++ b/lib/fattureincloud_ruby_sdk/models/city.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class City + class City < ApiModelBase # City postal code attr_accessor :postal_code diff --git a/lib/fattureincloud_ruby_sdk/models/client.rb b/lib/fattureincloud_ruby_sdk/models/client.rb index 3e11d87a..d62d2507 100644 --- a/lib/fattureincloud_ruby_sdk/models/client.rb +++ b/lib/fattureincloud_ruby_sdk/models/client.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class Client + class Client < ApiModelBase # Client id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/client_type.rb b/lib/fattureincloud_ruby_sdk/models/client_type.rb index ade8c2ee..f5808902 100644 --- a/lib/fattureincloud_ruby_sdk/models/client_type.rb +++ b/lib/fattureincloud_ruby_sdk/models/client_type.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/company.rb b/lib/fattureincloud_ruby_sdk/models/company.rb index 4e4ca5f5..07cba1d4 100644 --- a/lib/fattureincloud_ruby_sdk/models/company.rb +++ b/lib/fattureincloud_ruby_sdk/models/company.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class Company + class Company < ApiModelBase # Company id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/company_info.rb b/lib/fattureincloud_ruby_sdk/models/company_info.rb index 5d4f6fad..28bc1ea0 100644 --- a/lib/fattureincloud_ruby_sdk/models/company_info.rb +++ b/lib/fattureincloud_ruby_sdk/models/company_info.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CompanyInfo + class CompanyInfo < ApiModelBase # Company id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/company_info_access_info.rb b/lib/fattureincloud_ruby_sdk/models/company_info_access_info.rb index 4f5f45e3..72438fce 100644 --- a/lib/fattureincloud_ruby_sdk/models/company_info_access_info.rb +++ b/lib/fattureincloud_ruby_sdk/models/company_info_access_info.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CompanyInfoAccessInfo + class CompanyInfoAccessInfo < ApiModelBase attr_accessor :role attr_accessor :permissions diff --git a/lib/fattureincloud_ruby_sdk/models/company_info_plan_info.rb b/lib/fattureincloud_ruby_sdk/models/company_info_plan_info.rb index 285d5318..d59ef0c0 100644 --- a/lib/fattureincloud_ruby_sdk/models/company_info_plan_info.rb +++ b/lib/fattureincloud_ruby_sdk/models/company_info_plan_info.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # Company plan info - class CompanyInfoPlanInfo + class CompanyInfoPlanInfo < ApiModelBase attr_accessor :limits attr_accessor :functions diff --git a/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions.rb b/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions.rb index 8be7c469..2f366950 100644 --- a/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions.rb +++ b/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # Access to functions for this company. - class CompanyInfoPlanInfoFunctions + class CompanyInfoPlanInfoFunctions < ApiModelBase attr_accessor :archive attr_accessor :cerved @@ -38,8 +38,6 @@ class CompanyInfoPlanInfoFunctions attr_accessor :smtp - attr_accessor :sofort - attr_accessor :stock attr_accessor :subaccounts @@ -66,7 +64,6 @@ def self.attribute_map :'receipts' => :'receipts', :'recurring' => :'recurring', :'smtp' => :'smtp', - :'sofort' => :'sofort', :'stock' => :'stock', :'subaccounts' => :'subaccounts', :'tessera_sanitaria' => :'tessera_sanitaria', @@ -100,7 +97,6 @@ def self.openapi_types :'receipts' => :'Boolean', :'recurring' => :'Boolean', :'smtp' => :'Boolean', - :'sofort' => :'Boolean', :'stock' => :'Boolean', :'subaccounts' => :'Boolean', :'tessera_sanitaria' => :'Boolean', @@ -124,7 +120,6 @@ def self.openapi_nullable :'receipts', :'recurring', :'smtp', - :'sofort', :'stock', :'subaccounts', :'tessera_sanitaria', @@ -194,10 +189,6 @@ def initialize(attributes = {}) self.smtp = attributes[:'smtp'] end - if attributes.key?(:'sofort') - self.sofort = attributes[:'sofort'] - end - if attributes.key?(:'stock') self.stock = attributes[:'stock'] end @@ -254,7 +245,6 @@ def ==(o) receipts == o.receipts && recurring == o.recurring && smtp == o.smtp && - sofort == o.sofort && stock == o.stock && subaccounts == o.subaccounts && tessera_sanitaria == o.tessera_sanitaria && @@ -272,7 +262,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [archive, cerved, document_attachments, e_invoice, genius, mail_tracking, payment_notifications, paypal, receipts, recurring, smtp, sofort, stock, subaccounts, tessera_sanitaria, ts_digital, ts_invoice_trading, ts_pay].hash + [archive, cerved, document_attachments, e_invoice, genius, mail_tracking, payment_notifications, paypal, receipts, recurring, smtp, stock, subaccounts, tessera_sanitaria, ts_digital, ts_invoice_trading, ts_pay].hash end # Builds the object from hash diff --git a/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions_status.rb b/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions_status.rb index a4dbe095..c931dcf9 100644 --- a/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions_status.rb +++ b/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_functions_status.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CompanyInfoPlanInfoFunctionsStatus + class CompanyInfoPlanInfoFunctionsStatus < ApiModelBase attr_accessor :ts_digital attr_accessor :ts_pay diff --git a/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_limits.rb b/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_limits.rb index c322f1b4..28c589b0 100644 --- a/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_limits.rb +++ b/lib/fattureincloud_ruby_sdk/models/company_info_plan_info_limits.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # Company plan limits - class CompanyInfoPlanInfoLimits + class CompanyInfoPlanInfoLimits < ApiModelBase # Company plan clients limits attr_accessor :clients diff --git a/lib/fattureincloud_ruby_sdk/models/company_plan_usage.rb b/lib/fattureincloud_ruby_sdk/models/company_plan_usage.rb index dab703fa..a6efa431 100644 --- a/lib/fattureincloud_ruby_sdk/models/company_plan_usage.rb +++ b/lib/fattureincloud_ruby_sdk/models/company_plan_usage.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CompanyPlanUsage + class CompanyPlanUsage < ApiModelBase # Plan limit attr_accessor :limit diff --git a/lib/fattureincloud_ruby_sdk/models/company_type.rb b/lib/fattureincloud_ruby_sdk/models/company_type.rb index 3afb275e..57965d9a 100644 --- a/lib/fattureincloud_ruby_sdk/models/company_type.rb +++ b/lib/fattureincloud_ruby_sdk/models/company_type.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/controlled_company.rb b/lib/fattureincloud_ruby_sdk/models/controlled_company.rb index 996bc25e..fe0c471d 100644 --- a/lib/fattureincloud_ruby_sdk/models/controlled_company.rb +++ b/lib/fattureincloud_ruby_sdk/models/controlled_company.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ControlledCompany + class ControlledCompany < ApiModelBase # Controlled company id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/create_archive_document_request.rb b/lib/fattureincloud_ruby_sdk/models/create_archive_document_request.rb index b3474eaa..0abf4328 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_archive_document_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_archive_document_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class CreateArchiveDocumentRequest + class CreateArchiveDocumentRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_archive_document_response.rb b/lib/fattureincloud_ruby_sdk/models/create_archive_document_response.rb index 0f7ed956..a6a287f0 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_archive_document_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_archive_document_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class CreateArchiveDocumentResponse + class CreateArchiveDocumentResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_request.rb b/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_request.rb index 228b064d..79f663b8 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class CreateCashbookEntryRequest + class CreateCashbookEntryRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_response.rb b/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_response.rb index fcac518d..a219a7d1 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_cashbook_entry_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class CreateCashbookEntryResponse + class CreateCashbookEntryResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_client_request.rb b/lib/fattureincloud_ruby_sdk/models/create_client_request.rb index 192da06c..e94af4fa 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_client_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_client_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CreateClientRequest + class CreateClientRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_client_response.rb b/lib/fattureincloud_ruby_sdk/models/create_client_response.rb index ff0381d3..4cb8d0f9 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_client_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_client_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CreateClientResponse + class CreateClientResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_f24_request.rb b/lib/fattureincloud_ruby_sdk/models/create_f24_request.rb index 8734f277..322f3840 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_f24_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_f24_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class CreateF24Request + class CreateF24Request < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_f24_response.rb b/lib/fattureincloud_ruby_sdk/models/create_f24_response.rb index 3e595194..4bce8383 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_f24_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_f24_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class CreateF24Response + class CreateF24Response < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_issued_document_request.rb b/lib/fattureincloud_ruby_sdk/models/create_issued_document_request.rb index a80abc7f..5a15aa5b 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_issued_document_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_issued_document_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CreateIssuedDocumentRequest + class CreateIssuedDocumentRequest < ApiModelBase attr_accessor :data attr_accessor :options diff --git a/lib/fattureincloud_ruby_sdk/models/create_issued_document_response.rb b/lib/fattureincloud_ruby_sdk/models/create_issued_document_response.rb index 51f8d48c..ac6be65f 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_issued_document_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_issued_document_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CreateIssuedDocumentResponse + class CreateIssuedDocumentResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_payment_account_request.rb b/lib/fattureincloud_ruby_sdk/models/create_payment_account_request.rb index bbd74356..cfdaa72d 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_payment_account_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_payment_account_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CreatePaymentAccountRequest + class CreatePaymentAccountRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_payment_account_response.rb b/lib/fattureincloud_ruby_sdk/models/create_payment_account_response.rb index 5694393f..7a57ccdd 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_payment_account_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_payment_account_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CreatePaymentAccountResponse + class CreatePaymentAccountResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_payment_method_request.rb b/lib/fattureincloud_ruby_sdk/models/create_payment_method_request.rb index 468b254b..54c52aab 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_payment_method_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_payment_method_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CreatePaymentMethodRequest + class CreatePaymentMethodRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_payment_method_response.rb b/lib/fattureincloud_ruby_sdk/models/create_payment_method_response.rb index 9cb1fa08..9289661d 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_payment_method_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_payment_method_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CreatePaymentMethodResponse + class CreatePaymentMethodResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_product_request.rb b/lib/fattureincloud_ruby_sdk/models/create_product_request.rb index 47029cef..d75b0627 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_product_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_product_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CreateProductRequest + class CreateProductRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_product_response.rb b/lib/fattureincloud_ruby_sdk/models/create_product_response.rb index 4f2e72bc..a965135a 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_product_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_product_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CreateProductResponse + class CreateProductResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_receipt_request.rb b/lib/fattureincloud_ruby_sdk/models/create_receipt_request.rb index 7588f5c9..8c27abdf 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_receipt_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_receipt_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class CreateReceiptRequest + class CreateReceiptRequest < ApiModelBase attr_accessor :data # If true, the number is autocompleted progressively. diff --git a/lib/fattureincloud_ruby_sdk/models/create_receipt_response.rb b/lib/fattureincloud_ruby_sdk/models/create_receipt_response.rb index 35e64383..ba7625b9 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_receipt_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_receipt_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class CreateReceiptResponse + class CreateReceiptResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_received_document_request.rb b/lib/fattureincloud_ruby_sdk/models/create_received_document_request.rb index 420e3bbc..ff575e34 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_received_document_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_received_document_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class CreateReceivedDocumentRequest + class CreateReceivedDocumentRequest < ApiModelBase # Pending received document id of the document from which the new document is created. attr_accessor :pending_id diff --git a/lib/fattureincloud_ruby_sdk/models/create_received_document_response.rb b/lib/fattureincloud_ruby_sdk/models/create_received_document_response.rb index 11db0d2d..174ffdd8 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_received_document_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_received_document_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class CreateReceivedDocumentResponse + class CreateReceivedDocumentResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_supplier_request.rb b/lib/fattureincloud_ruby_sdk/models/create_supplier_request.rb index c9024fbe..042e8deb 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_supplier_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_supplier_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CreateSupplierRequest + class CreateSupplierRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_supplier_response.rb b/lib/fattureincloud_ruby_sdk/models/create_supplier_response.rb index 11ea6669..82d15cc8 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_supplier_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_supplier_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CreateSupplierResponse + class CreateSupplierResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_vat_type_request.rb b/lib/fattureincloud_ruby_sdk/models/create_vat_type_request.rb index 3e24b828..0d38c583 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_vat_type_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_vat_type_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CreateVatTypeRequest + class CreateVatTypeRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_vat_type_response.rb b/lib/fattureincloud_ruby_sdk/models/create_vat_type_response.rb index 853e3030..049b790e 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_vat_type_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_vat_type_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CreateVatTypeResponse + class CreateVatTypeResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_request.rb b/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_request.rb index eea4efb4..fa7177d7 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CreateWebhooksSubscriptionRequest + class CreateWebhooksSubscriptionRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_response.rb b/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_response.rb index 76c929bb..345b5101 100644 --- a/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/create_webhooks_subscription_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class CreateWebhooksSubscriptionResponse + class CreateWebhooksSubscriptionResponse < ApiModelBase attr_accessor :data # Webhooks registration warnings diff --git a/lib/fattureincloud_ruby_sdk/models/currency.rb b/lib/fattureincloud_ruby_sdk/models/currency.rb index 21209219..58c78067 100644 --- a/lib/fattureincloud_ruby_sdk/models/currency.rb +++ b/lib/fattureincloud_ruby_sdk/models/currency.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class Currency + class Currency < ApiModelBase # Currency code attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/detailed_country.rb b/lib/fattureincloud_ruby_sdk/models/detailed_country.rb index a80aa6e9..b0643ab7 100644 --- a/lib/fattureincloud_ruby_sdk/models/detailed_country.rb +++ b/lib/fattureincloud_ruby_sdk/models/detailed_country.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class DetailedCountry + class DetailedCountry < ApiModelBase # Country name attr_accessor :name diff --git a/lib/fattureincloud_ruby_sdk/models/document_template.rb b/lib/fattureincloud_ruby_sdk/models/document_template.rb index 50198f51..ed596e75 100644 --- a/lib/fattureincloud_ruby_sdk/models/document_template.rb +++ b/lib/fattureincloud_ruby_sdk/models/document_template.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,22 +14,63 @@ require 'time' module FattureInCloud_Ruby_Sdk - class DocumentTemplate + class DocumentTemplate < ApiModelBase # Template id attr_accessor :id + # Template privacy + attr_accessor :privacy + + attr_accessor :type + # Template name attr_accessor :name - # Template type - attr_accessor :type + # Can disable watermark + attr_accessor :can_disable_watermark + + # Template author + attr_accessor :author + + # Template definition content + attr_accessor :content + + # Supports custom taxable + attr_accessor :supports_custom_taxable + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', + :'privacy' => :'privacy', + :'type' => :'type', :'name' => :'name', - :'type' => :'type' + :'can_disable_watermark' => :'can_disable_watermark', + :'author' => :'author', + :'content' => :'content', + :'supports_custom_taxable' => :'supports_custom_taxable' } end @@ -47,17 +88,19 @@ def self.acceptable_attributes def self.openapi_types { :'id' => :'Integer', + :'privacy' => :'String', + :'type' => :'TemplateType', :'name' => :'String', - :'type' => :'String' + :'can_disable_watermark' => :'Boolean', + :'author' => :'String', + :'content' => :'String', + :'supports_custom_taxable' => :'Boolean' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'id', - :'name', - :'type' ]) end @@ -81,13 +124,33 @@ def initialize(attributes = {}) self.id = attributes[:'id'] end - if attributes.key?(:'name') - self.name = attributes[:'name'] + if attributes.key?(:'privacy') + self.privacy = attributes[:'privacy'] end if attributes.key?(:'type') self.type = attributes[:'type'] end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.key?(:'can_disable_watermark') + self.can_disable_watermark = attributes[:'can_disable_watermark'] + end + + if attributes.key?(:'author') + self.author = attributes[:'author'] + end + + if attributes.key?(:'content') + self.content = attributes[:'content'] + end + + if attributes.key?(:'supports_custom_taxable') + self.supports_custom_taxable = attributes[:'supports_custom_taxable'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -111,8 +174,13 @@ def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && + privacy == o.privacy && + type == o.type && name == o.name && - type == o.type + can_disable_watermark == o.can_disable_watermark && + author == o.author && + content == o.content && + supports_custom_taxable == o.supports_custom_taxable end # @see the `==` method @@ -124,7 +192,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, name, type].hash + [id, privacy, type, name, can_disable_watermark, author, content, supports_custom_taxable].hash end # Builds the object from hash diff --git a/lib/fattureincloud_ruby_sdk/models/e_invoice_rejection_reason.rb b/lib/fattureincloud_ruby_sdk/models/e_invoice_rejection_reason.rb index 5bb3df03..68f9ef8c 100644 --- a/lib/fattureincloud_ruby_sdk/models/e_invoice_rejection_reason.rb +++ b/lib/fattureincloud_ruby_sdk/models/e_invoice_rejection_reason.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class EInvoiceRejectionReason + class EInvoiceRejectionReason < ApiModelBase # E-invoice rejection reason attr_accessor :reason diff --git a/lib/fattureincloud_ruby_sdk/models/email.rb b/lib/fattureincloud_ruby_sdk/models/email.rb index 529b2698..8bf00968 100644 --- a/lib/fattureincloud_ruby_sdk/models/email.rb +++ b/lib/fattureincloud_ruby_sdk/models/email.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class Email + class Email < ApiModelBase # Email id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/email_attachment.rb b/lib/fattureincloud_ruby_sdk/models/email_attachment.rb index b65f9364..6986f719 100644 --- a/lib/fattureincloud_ruby_sdk/models/email_attachment.rb +++ b/lib/fattureincloud_ruby_sdk/models/email_attachment.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class EmailAttachment + class EmailAttachment < ApiModelBase # Email attachment filename attr_accessor :filename diff --git a/lib/fattureincloud_ruby_sdk/models/email_data.rb b/lib/fattureincloud_ruby_sdk/models/email_data.rb index a5d0c0aa..0130e910 100644 --- a/lib/fattureincloud_ruby_sdk/models/email_data.rb +++ b/lib/fattureincloud_ruby_sdk/models/email_data.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class EmailData + class EmailData < ApiModelBase # Email recipient attr_accessor :recipient_email diff --git a/lib/fattureincloud_ruby_sdk/models/email_data_default_sender_email.rb b/lib/fattureincloud_ruby_sdk/models/email_data_default_sender_email.rb index c310ce3e..e906cae3 100644 --- a/lib/fattureincloud_ruby_sdk/models/email_data_default_sender_email.rb +++ b/lib/fattureincloud_ruby_sdk/models/email_data_default_sender_email.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # Default sender email. (Other emails can be found in **sender_emails_list**) - class EmailDataDefaultSenderEmail + class EmailDataDefaultSenderEmail < ApiModelBase # Default sender email id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/email_recipient_status.rb b/lib/fattureincloud_ruby_sdk/models/email_recipient_status.rb index a037803f..e71fcbc5 100644 --- a/lib/fattureincloud_ruby_sdk/models/email_recipient_status.rb +++ b/lib/fattureincloud_ruby_sdk/models/email_recipient_status.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/email_schedule.rb b/lib/fattureincloud_ruby_sdk/models/email_schedule.rb index 39ecd357..f3e9ca60 100644 --- a/lib/fattureincloud_ruby_sdk/models/email_schedule.rb +++ b/lib/fattureincloud_ruby_sdk/models/email_schedule.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class EmailSchedule + class EmailSchedule < ApiModelBase # Email sender id [required if **sender_email** is not specified] attr_accessor :sender_id diff --git a/lib/fattureincloud_ruby_sdk/models/email_schedule_include.rb b/lib/fattureincloud_ruby_sdk/models/email_schedule_include.rb index dd9cd8ea..2c23bb3b 100644 --- a/lib/fattureincloud_ruby_sdk/models/email_schedule_include.rb +++ b/lib/fattureincloud_ruby_sdk/models/email_schedule_include.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class EmailScheduleInclude + class EmailScheduleInclude < ApiModelBase # Include a button to view the document attr_accessor :document diff --git a/lib/fattureincloud_ruby_sdk/models/email_status.rb b/lib/fattureincloud_ruby_sdk/models/email_status.rb index d829de8a..75df5555 100644 --- a/lib/fattureincloud_ruby_sdk/models/email_status.rb +++ b/lib/fattureincloud_ruby_sdk/models/email_status.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/entity.rb b/lib/fattureincloud_ruby_sdk/models/entity.rb index 4ca3f444..f7c2423c 100644 --- a/lib/fattureincloud_ruby_sdk/models/entity.rb +++ b/lib/fattureincloud_ruby_sdk/models/entity.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class Entity + class Entity < ApiModelBase # Entity id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/entity_client_pre_create_info.rb b/lib/fattureincloud_ruby_sdk/models/entity_client_pre_create_info.rb index 4b483ab2..2e538dfa 100644 --- a/lib/fattureincloud_ruby_sdk/models/entity_client_pre_create_info.rb +++ b/lib/fattureincloud_ruby_sdk/models/entity_client_pre_create_info.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class EntityClientPreCreateInfo + class EntityClientPreCreateInfo < ApiModelBase # Countries list attr_accessor :countries_list diff --git a/lib/fattureincloud_ruby_sdk/models/entity_type.rb b/lib/fattureincloud_ruby_sdk/models/entity_type.rb index f4814e0f..25c7f691 100644 --- a/lib/fattureincloud_ruby_sdk/models/entity_type.rb +++ b/lib/fattureincloud_ruby_sdk/models/entity_type.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/event_type.rb b/lib/fattureincloud_ruby_sdk/models/event_type.rb index d55f42a8..de3d1f39 100644 --- a/lib/fattureincloud_ruby_sdk/models/event_type.rb +++ b/lib/fattureincloud_ruby_sdk/models/event_type.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -42,9 +42,12 @@ class EventType IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SUPPLIER_ORDERS_CREATE = "it.fattureincloud.webhooks.issued_documents.supplier_orders.create".freeze IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SUPPLIER_ORDERS_UPDATE = "it.fattureincloud.webhooks.issued_documents.supplier_orders.update".freeze IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SUPPLIER_ORDERS_DELETE = "it.fattureincloud.webhooks.issued_documents.supplier_orders.delete".freeze - IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_INVOICES_CREATE = "it.fattureincloud.webhooks.issued_documents.self_invoices.create".freeze - IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_INVOICES_UPDATE = "it.fattureincloud.webhooks.issued_documents.self_invoices.update".freeze - IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_INVOICES_DELETE = "it.fattureincloud.webhooks.issued_documents.self_invoices.delete".freeze + IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_SUPPLIER_INVOICES_CREATE = "it.fattureincloud.webhooks.issued_documents.self_supplier_invoices.create".freeze + IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_SUPPLIER_INVOICES_UPDATE = "it.fattureincloud.webhooks.issued_documents.self_supplier_invoices.update".freeze + IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_SUPPLIER_INVOICES_DELETE = "it.fattureincloud.webhooks.issued_documents.self_supplier_invoices.delete".freeze + IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_OWN_INVOICES_CREATE = "it.fattureincloud.webhooks.issued_documents.self_own_invoices.create".freeze + IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_OWN_INVOICES_UPDATE = "it.fattureincloud.webhooks.issued_documents.self_own_invoices.update".freeze + IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_OWN_INVOICES_DELETE = "it.fattureincloud.webhooks.issued_documents.self_own_invoices.delete".freeze IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ALL_CREATE = "it.fattureincloud.webhooks.issued_documents.all.create".freeze IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ALL_UPDATE = "it.fattureincloud.webhooks.issued_documents.all.update".freeze IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ALL_DELETE = "it.fattureincloud.webhooks.issued_documents.all.delete".freeze @@ -87,11 +90,12 @@ class EventType IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ORDERS_EMAIL_SENT = "it.fattureincloud.webhooks.issued_documents.orders.email_sent".freeze IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_WORK_REPORTS_EMAIL_SENT = "it.fattureincloud.webhooks.issued_documents.work_reports.email_sent".freeze IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SUPPLIER_ORDERS_EMAIL_SENT = "it.fattureincloud.webhooks.issued_documents.supplier_orders.email_sent".freeze - IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_INVOICES_EMAIL_SENT = "it.fattureincloud.webhooks.issued_documents.self_invoices.email_sent".freeze + IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_SUPPLIER_INVOICES_EMAIL_SENT = "it.fattureincloud.webhooks.issued_documents.self_supplier_invoices.email_sent".freeze + IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_OWN_INVOICES_EMAIL_SENT = "it.fattureincloud.webhooks.issued_documents.self_own_invoices.email_sent".freeze IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ALL_EMAIL_SENT = "it.fattureincloud.webhooks.issued_documents.all.email_sent".freeze def self.all_vars - @all_vars ||= [IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_INVOICES_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_INVOICES_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_INVOICES_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_QUOTES_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_QUOTES_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_QUOTES_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_PROFORMAS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_PROFORMAS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_PROFORMAS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_RECEIPTS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_RECEIPTS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_RECEIPTS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_DELIVERY_NOTES_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_DELIVERY_NOTES_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_DELIVERY_NOTES_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_CREDIT_NOTES_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_CREDIT_NOTES_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_CREDIT_NOTES_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ORDERS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ORDERS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ORDERS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_WORK_REPORTS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_WORK_REPORTS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_WORK_REPORTS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SUPPLIER_ORDERS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SUPPLIER_ORDERS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SUPPLIER_ORDERS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_INVOICES_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_INVOICES_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_INVOICES_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ALL_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ALL_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ALL_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_RECEIVED_DOCUMENTS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_RECEIVED_DOCUMENTS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_RECEIVED_DOCUMENTS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_RECEIPTS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_RECEIPTS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_RECEIPTS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_TAXES_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_TAXES_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_TAXES_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ARCHIVE_DOCUMENTS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ARCHIVE_DOCUMENTS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ARCHIVE_DOCUMENTS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_CASHBOOK_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_CASHBOOK_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_CASHBOOK_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_PRODUCTS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_PRODUCTS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_PRODUCTS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_PRODUCTS_STOCK_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ENTITIES_CLIENTS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ENTITIES_CLIENTS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ENTITIES_CLIENTS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ENTITIES_SUPPLIERS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ENTITIES_SUPPLIERS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ENTITIES_SUPPLIERS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ENTITIES_ALL_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ENTITIES_ALL_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ENTITIES_ALL_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_E_INVOICES_STATUS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_RECEIVED_DOCUMENTS_E_INVOICES_RECEIVE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_INVOICES_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_QUOTES_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_PROFORMAS_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_RECEIPTS_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_DELIVERY_NOTES_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_CREDIT_NOTES_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ORDERS_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_WORK_REPORTS_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SUPPLIER_ORDERS_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_INVOICES_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ALL_EMAIL_SENT].freeze + @all_vars ||= [IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_INVOICES_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_INVOICES_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_INVOICES_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_QUOTES_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_QUOTES_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_QUOTES_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_PROFORMAS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_PROFORMAS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_PROFORMAS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_RECEIPTS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_RECEIPTS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_RECEIPTS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_DELIVERY_NOTES_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_DELIVERY_NOTES_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_DELIVERY_NOTES_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_CREDIT_NOTES_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_CREDIT_NOTES_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_CREDIT_NOTES_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ORDERS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ORDERS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ORDERS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_WORK_REPORTS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_WORK_REPORTS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_WORK_REPORTS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SUPPLIER_ORDERS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SUPPLIER_ORDERS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SUPPLIER_ORDERS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_SUPPLIER_INVOICES_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_SUPPLIER_INVOICES_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_SUPPLIER_INVOICES_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_OWN_INVOICES_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_OWN_INVOICES_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_OWN_INVOICES_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ALL_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ALL_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ALL_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_RECEIVED_DOCUMENTS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_RECEIVED_DOCUMENTS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_RECEIVED_DOCUMENTS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_RECEIPTS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_RECEIPTS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_RECEIPTS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_TAXES_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_TAXES_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_TAXES_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ARCHIVE_DOCUMENTS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ARCHIVE_DOCUMENTS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ARCHIVE_DOCUMENTS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_CASHBOOK_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_CASHBOOK_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_CASHBOOK_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_PRODUCTS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_PRODUCTS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_PRODUCTS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_PRODUCTS_STOCK_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ENTITIES_CLIENTS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ENTITIES_CLIENTS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ENTITIES_CLIENTS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ENTITIES_SUPPLIERS_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ENTITIES_SUPPLIERS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ENTITIES_SUPPLIERS_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ENTITIES_ALL_CREATE, IT_FATTUREINCLOUD_WEBHOOKS_ENTITIES_ALL_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_ENTITIES_ALL_DELETE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_E_INVOICES_STATUS_UPDATE, IT_FATTUREINCLOUD_WEBHOOKS_RECEIVED_DOCUMENTS_E_INVOICES_RECEIVE, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_INVOICES_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_QUOTES_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_PROFORMAS_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_RECEIPTS_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_DELIVERY_NOTES_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_CREDIT_NOTES_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ORDERS_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_WORK_REPORTS_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SUPPLIER_ORDERS_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_SUPPLIER_INVOICES_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_SELF_OWN_INVOICES_EMAIL_SENT, IT_FATTUREINCLOUD_WEBHOOKS_ISSUED_DOCUMENTS_ALL_EMAIL_SENT].freeze end # Builds the enum from string diff --git a/lib/fattureincloud_ruby_sdk/models/f24.rb b/lib/fattureincloud_ruby_sdk/models/f24.rb index c1fdf048..fcddd128 100644 --- a/lib/fattureincloud_ruby_sdk/models/f24.rb +++ b/lib/fattureincloud_ruby_sdk/models/f24.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class F24 + class F24 < ApiModelBase # F24 id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/f24_status.rb b/lib/fattureincloud_ruby_sdk/models/f24_status.rb index 13120d20..6b941ffb 100644 --- a/lib/fattureincloud_ruby_sdk/models/f24_status.rb +++ b/lib/fattureincloud_ruby_sdk/models/f24_status.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/fatture_in_cloud_plan_type.rb b/lib/fattureincloud_ruby_sdk/models/fatture_in_cloud_plan_type.rb index a935262c..13c766f8 100644 --- a/lib/fattureincloud_ruby_sdk/models/fatture_in_cloud_plan_type.rb +++ b/lib/fattureincloud_ruby_sdk/models/fatture_in_cloud_plan_type.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/function_status.rb b/lib/fattureincloud_ruby_sdk/models/function_status.rb index 9ee6d870..82334ad6 100644 --- a/lib/fattureincloud_ruby_sdk/models/function_status.rb +++ b/lib/fattureincloud_ruby_sdk/models/function_status.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class FunctionStatus + class FunctionStatus < ApiModelBase attr_accessor :active # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_archive_document_response.rb b/lib/fattureincloud_ruby_sdk/models/get_archive_document_response.rb index 2a787c63..490c7141 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_archive_document_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_archive_document_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class GetArchiveDocumentResponse + class GetArchiveDocumentResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_bin_issued_document_response.rb b/lib/fattureincloud_ruby_sdk/models/get_bin_issued_document_response.rb index 40f5629d..6943503d 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_bin_issued_document_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_bin_issued_document_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetBinIssuedDocumentResponse + class GetBinIssuedDocumentResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_bin_received_document_response.rb b/lib/fattureincloud_ruby_sdk/models/get_bin_received_document_response.rb index 982aa547..6c5181cb 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_bin_received_document_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_bin_received_document_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetBinReceivedDocumentResponse + class GetBinReceivedDocumentResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_cashbook_entry_response.rb b/lib/fattureincloud_ruby_sdk/models/get_cashbook_entry_response.rb index 1fbfd04b..a161e7b0 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_cashbook_entry_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_cashbook_entry_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class GetCashbookEntryResponse + class GetCashbookEntryResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_client_response.rb b/lib/fattureincloud_ruby_sdk/models/get_client_response.rb index 6cd3ee1c..05820fd4 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_client_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_client_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetClientResponse + class GetClientResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_company_info_response.rb b/lib/fattureincloud_ruby_sdk/models/get_company_info_response.rb index e1a45417..b34c87bc 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_company_info_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_company_info_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class GetCompanyInfoResponse + class GetCompanyInfoResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_company_plan_usage_response.rb b/lib/fattureincloud_ruby_sdk/models/get_company_plan_usage_response.rb index 6a88bf51..af779482 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_company_plan_usage_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_company_plan_usage_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class GetCompanyPlanUsageResponse + class GetCompanyPlanUsageResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_e_invoice_rejection_reason_response.rb b/lib/fattureincloud_ruby_sdk/models/get_e_invoice_rejection_reason_response.rb index 9029cbf5..e1082272 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_e_invoice_rejection_reason_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_e_invoice_rejection_reason_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetEInvoiceRejectionReasonResponse + class GetEInvoiceRejectionReasonResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_email_data_response.rb b/lib/fattureincloud_ruby_sdk/models/get_email_data_response.rb index 9a98e0ad..2018ae50 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_email_data_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_email_data_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetEmailDataResponse + class GetEmailDataResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_entity_client_pre_create_info_response.rb b/lib/fattureincloud_ruby_sdk/models/get_entity_client_pre_create_info_response.rb index 11bfdc8e..9c64d320 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_entity_client_pre_create_info_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_entity_client_pre_create_info_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetEntityClientPreCreateInfoResponse + class GetEntityClientPreCreateInfoResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_request.rb b/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_request.rb index 349b46e9..bd6a5278 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetExistingIssuedDocumentTotalsRequest + class GetExistingIssuedDocumentTotalsRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_response.rb b/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_response.rb index 1c188bae..6257adc7 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_existing_issued_document_totals_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class GetExistingIssuedDocumentTotalsResponse + class GetExistingIssuedDocumentTotalsResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_request.rb b/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_request.rb index c05b2249..6f01e1f3 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class GetExistingReceivedDocumentTotalsRequest + class GetExistingReceivedDocumentTotalsRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_response.rb b/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_response.rb index 155ef6ee..d0681cd5 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_existing_received_document_totals_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class GetExistingReceivedDocumentTotalsResponse + class GetExistingReceivedDocumentTotalsResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_f24_response.rb b/lib/fattureincloud_ruby_sdk/models/get_f24_response.rb index fbad053b..a5dfae12 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_f24_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_f24_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetF24Response + class GetF24Response < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_issued_document_pre_create_info_response.rb b/lib/fattureincloud_ruby_sdk/models/get_issued_document_pre_create_info_response.rb index f2c97cf2..1fd0fbe1 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_issued_document_pre_create_info_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_issued_document_pre_create_info_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetIssuedDocumentPreCreateInfoResponse + class GetIssuedDocumentPreCreateInfoResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_issued_document_response.rb b/lib/fattureincloud_ruby_sdk/models/get_issued_document_response.rb index 77c97ca4..868e3fa7 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_issued_document_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_issued_document_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetIssuedDocumentResponse + class GetIssuedDocumentResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_request.rb b/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_request.rb index 941c6f8b..bce672af 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetNewIssuedDocumentTotalsRequest + class GetNewIssuedDocumentTotalsRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_response.rb b/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_response.rb index 0b3ae5ad..b45dd335 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_new_issued_document_totals_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class GetNewIssuedDocumentTotalsResponse + class GetNewIssuedDocumentTotalsResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_request.rb b/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_request.rb index a94b66cb..d2693b30 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class GetNewReceivedDocumentTotalsRequest + class GetNewReceivedDocumentTotalsRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_response.rb b/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_response.rb index 0d9ec310..662e9137 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_new_received_document_totals_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class GetNewReceivedDocumentTotalsResponse + class GetNewReceivedDocumentTotalsResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_payment_account_response.rb b/lib/fattureincloud_ruby_sdk/models/get_payment_account_response.rb index 57878f88..6a3d0678 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_payment_account_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_payment_account_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetPaymentAccountResponse + class GetPaymentAccountResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_payment_method_response.rb b/lib/fattureincloud_ruby_sdk/models/get_payment_method_response.rb index bc2d659f..dc899eb8 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_payment_method_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_payment_method_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetPaymentMethodResponse + class GetPaymentMethodResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_pending_received_document_response.rb b/lib/fattureincloud_ruby_sdk/models/get_pending_received_document_response.rb new file mode 100644 index 00000000..f56f1e9f --- /dev/null +++ b/lib/fattureincloud_ruby_sdk/models/get_pending_received_document_response.rb @@ -0,0 +1,221 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'date' +require 'time' + +module FattureInCloud_Ruby_Sdk + # + class GetPendingReceivedDocumentResponse < ApiModelBase + attr_accessor :data + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'data' => :'data' + } + end + + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + acceptable_attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'data' => :'PendingReceivedDocument' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `FattureInCloud_Ruby_Sdk::GetPendingReceivedDocumentResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `FattureInCloud_Ruby_Sdk::GetPendingReceivedDocumentResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'data') + self.data = attributes[:'data'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + data == o.data + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [data].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + when :Hash + value + else # model + # models (e.g. Pet) or oneOf + klass = FattureInCloud_Ruby_Sdk.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/fattureincloud_ruby_sdk/models/get_price_list_items_response.rb b/lib/fattureincloud_ruby_sdk/models/get_price_list_items_response.rb index 171e4548..799af20a 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_price_list_items_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_price_list_items_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetPriceListItemsResponse + class GetPriceListItemsResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_product_response.rb b/lib/fattureincloud_ruby_sdk/models/get_product_response.rb index 5240ea8e..c6f5a5a5 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_product_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_product_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetProductResponse + class GetProductResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_receipt_pre_create_info_response.rb b/lib/fattureincloud_ruby_sdk/models/get_receipt_pre_create_info_response.rb index 2a04b78c..6134aacc 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_receipt_pre_create_info_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_receipt_pre_create_info_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class GetReceiptPreCreateInfoResponse + class GetReceiptPreCreateInfoResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_receipt_response.rb b/lib/fattureincloud_ruby_sdk/models/get_receipt_response.rb index cf041361..9ce2021f 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_receipt_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_receipt_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class GetReceiptResponse + class GetReceiptResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_receipts_monthly_totals_response.rb b/lib/fattureincloud_ruby_sdk/models/get_receipts_monthly_totals_response.rb index 787c7fff..3f48e0fd 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_receipts_monthly_totals_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_receipts_monthly_totals_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class GetReceiptsMonthlyTotalsResponse + class GetReceiptsMonthlyTotalsResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_received_document_pre_create_info_response.rb b/lib/fattureincloud_ruby_sdk/models/get_received_document_pre_create_info_response.rb index 342bad2e..d49e2789 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_received_document_pre_create_info_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_received_document_pre_create_info_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class GetReceivedDocumentPreCreateInfoResponse + class GetReceivedDocumentPreCreateInfoResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_received_document_response.rb b/lib/fattureincloud_ruby_sdk/models/get_received_document_response.rb index 9e661675..4aa6ba81 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_received_document_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_received_document_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class GetReceivedDocumentResponse + class GetReceivedDocumentResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_supplier_response.rb b/lib/fattureincloud_ruby_sdk/models/get_supplier_response.rb index 44e64212..e901ba00 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_supplier_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_supplier_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetSupplierResponse + class GetSupplierResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_tax_profile_response.rb b/lib/fattureincloud_ruby_sdk/models/get_tax_profile_response.rb index 2c741406..ef99ccca 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_tax_profile_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_tax_profile_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetTaxProfileResponse + class GetTaxProfileResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_templates_response.rb b/lib/fattureincloud_ruby_sdk/models/get_templates_response.rb new file mode 100644 index 00000000..30b6c50b --- /dev/null +++ b/lib/fattureincloud_ruby_sdk/models/get_templates_response.rb @@ -0,0 +1,220 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'date' +require 'time' + +module FattureInCloud_Ruby_Sdk + class GetTemplatesResponse < ApiModelBase + attr_accessor :data + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'data' => :'data' + } + end + + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + acceptable_attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'data' => :'DocumentTemplate' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `FattureInCloud_Ruby_Sdk::GetTemplatesResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `FattureInCloud_Ruby_Sdk::GetTemplatesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'data') + self.data = attributes[:'data'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + data == o.data + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [data].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + when :Hash + value + else # model + # models (e.g. Pet) or oneOf + klass = FattureInCloud_Ruby_Sdk.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/fattureincloud_ruby_sdk/models/get_user_info_response.rb b/lib/fattureincloud_ruby_sdk/models/get_user_info_response.rb index 193cfef0..c46c13ce 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_user_info_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_user_info_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class GetUserInfoResponse + class GetUserInfoResponse < ApiModelBase attr_accessor :data attr_accessor :info diff --git a/lib/fattureincloud_ruby_sdk/models/get_user_info_response_email_confirmation_state.rb b/lib/fattureincloud_ruby_sdk/models/get_user_info_response_email_confirmation_state.rb index 4f55553d..9951f49e 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_user_info_response_email_confirmation_state.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_user_info_response_email_confirmation_state.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetUserInfoResponseEmailConfirmationState + class GetUserInfoResponseEmailConfirmationState < ApiModelBase attr_accessor :need_confirmation # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_user_info_response_info.rb b/lib/fattureincloud_ruby_sdk/models/get_user_info_response_info.rb index 79ac2892..5f96f20f 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_user_info_response_info.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_user_info_response_info.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetUserInfoResponseInfo + class GetUserInfoResponseInfo < ApiModelBase attr_accessor :need_marketing_consents_confirmation attr_accessor :need_password_change diff --git a/lib/fattureincloud_ruby_sdk/models/get_vat_type_response.rb b/lib/fattureincloud_ruby_sdk/models/get_vat_type_response.rb index 37738630..f101ac6f 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_vat_type_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_vat_type_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetVatTypeResponse + class GetVatTypeResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/get_webhooks_subscription_response.rb b/lib/fattureincloud_ruby_sdk/models/get_webhooks_subscription_response.rb index 9c80dc7e..559747ca 100644 --- a/lib/fattureincloud_ruby_sdk/models/get_webhooks_subscription_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/get_webhooks_subscription_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class GetWebhooksSubscriptionResponse + class GetWebhooksSubscriptionResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/issued_document.rb b/lib/fattureincloud_ruby_sdk/models/issued_document.rb index ff605450..edffb25d 100644 --- a/lib/fattureincloud_ruby_sdk/models/issued_document.rb +++ b/lib/fattureincloud_ruby_sdk/models/issued_document.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class IssuedDocument + class IssuedDocument < ApiModelBase # Issued document id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/issued_document_ei_data.rb b/lib/fattureincloud_ruby_sdk/models/issued_document_ei_data.rb index 59cf1df3..c2a787be 100644 --- a/lib/fattureincloud_ruby_sdk/models/issued_document_ei_data.rb +++ b/lib/fattureincloud_ruby_sdk/models/issued_document_ei_data.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # Issued document e-invoice data [Only if e_invoice=true] - class IssuedDocumentEiData + class IssuedDocumentEiData < ApiModelBase attr_accessor :vat_kind attr_accessor :original_document_type diff --git a/lib/fattureincloud_ruby_sdk/models/issued_document_extra_data.rb b/lib/fattureincloud_ruby_sdk/models/issued_document_extra_data.rb index 8c36da61..3d5fe437 100644 --- a/lib/fattureincloud_ruby_sdk/models/issued_document_extra_data.rb +++ b/lib/fattureincloud_ruby_sdk/models/issued_document_extra_data.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # Issued document extra data [TS fields follow the technical specifications provided by \"Sistema Tessera Sanitaria\"] - class IssuedDocumentExtraData + class IssuedDocumentExtraData < ApiModelBase attr_accessor :multifatture_sent # Send issued document to \"Sistema Tessera Sanitaria\" @@ -48,6 +48,12 @@ class IssuedDocumentExtraData # Issued document imported by software attr_accessor :imported_by + # Issued document debt VAT detect + attr_accessor :debt_vat_detect + + # Issued document revenue detect + attr_accessor :revenue_detect + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -61,7 +67,9 @@ def self.attribute_map :'ts_file_id' => :'ts_file_id', :'ts_sent_date' => :'ts_sent_date', :'ts_full_amount' => :'ts_full_amount', - :'imported_by' => :'imported_by' + :'imported_by' => :'imported_by', + :'debt_vat_detect' => :'debt_vat_detect', + :'revenue_detect' => :'revenue_detect' } end @@ -88,7 +96,9 @@ def self.openapi_types :'ts_file_id' => :'String', :'ts_sent_date' => :'Date', :'ts_full_amount' => :'Boolean', - :'imported_by' => :'String' + :'imported_by' => :'String', + :'debt_vat_detect' => :'Boolean', + :'revenue_detect' => :'Boolean' } end @@ -105,7 +115,9 @@ def self.openapi_nullable :'ts_file_id', :'ts_sent_date', :'ts_full_amount', - :'imported_by' + :'imported_by', + :'debt_vat_detect', + :'revenue_detect' ]) end @@ -168,6 +180,14 @@ def initialize(attributes = {}) if attributes.key?(:'imported_by') self.imported_by = attributes[:'imported_by'] end + + if attributes.key?(:'debt_vat_detect') + self.debt_vat_detect = attributes[:'debt_vat_detect'] + end + + if attributes.key?(:'revenue_detect') + self.revenue_detect = attributes[:'revenue_detect'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -200,7 +220,9 @@ def ==(o) ts_file_id == o.ts_file_id && ts_sent_date == o.ts_sent_date && ts_full_amount == o.ts_full_amount && - imported_by == o.imported_by + imported_by == o.imported_by && + debt_vat_detect == o.debt_vat_detect && + revenue_detect == o.revenue_detect end # @see the `==` method @@ -212,7 +234,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [multifatture_sent, ts_communication, ts_flag_tipo_spesa, ts_pagamento_tracciato, ts_tipo_spesa, ts_opposizione, ts_status, ts_file_id, ts_sent_date, ts_full_amount, imported_by].hash + [multifatture_sent, ts_communication, ts_flag_tipo_spesa, ts_pagamento_tracciato, ts_tipo_spesa, ts_opposizione, ts_status, ts_file_id, ts_sent_date, ts_full_amount, imported_by, debt_vat_detect, revenue_detect].hash end # Builds the object from hash diff --git a/lib/fattureincloud_ruby_sdk/models/issued_document_items_list_item.rb b/lib/fattureincloud_ruby_sdk/models/issued_document_items_list_item.rb index ee9c21ba..67f1a5b1 100644 --- a/lib/fattureincloud_ruby_sdk/models/issued_document_items_list_item.rb +++ b/lib/fattureincloud_ruby_sdk/models/issued_document_items_list_item.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class IssuedDocumentItemsListItem + class IssuedDocumentItemsListItem < ApiModelBase # Issued document item id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/issued_document_options.rb b/lib/fattureincloud_ruby_sdk/models/issued_document_options.rb index 353e0f90..f512a356 100644 --- a/lib/fattureincloud_ruby_sdk/models/issued_document_options.rb +++ b/lib/fattureincloud_ruby_sdk/models/issued_document_options.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class IssuedDocumentOptions + class IssuedDocumentOptions < ApiModelBase # Fixes your last payment amount to match your document total attr_accessor :fix_payments diff --git a/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item.rb b/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item.rb index 52f83168..267a6e66 100644 --- a/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item.rb +++ b/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class IssuedDocumentPaymentsListItem + class IssuedDocumentPaymentsListItem < ApiModelBase # Issued document payment item id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item_payment_terms.rb b/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item_payment_terms.rb index 77b75498..167d488a 100644 --- a/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item_payment_terms.rb +++ b/lib/fattureincloud_ruby_sdk/models/issued_document_payments_list_item_payment_terms.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class IssuedDocumentPaymentsListItemPaymentTerms + class IssuedDocumentPaymentsListItemPaymentTerms < ApiModelBase # Issued document payment number of days by which the payment must be made attr_accessor :days diff --git a/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info.rb b/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info.rb index d69b785a..0202a471 100644 --- a/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info.rb +++ b/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class IssuedDocumentPreCreateInfo + class IssuedDocumentPreCreateInfo < ApiModelBase attr_accessor :numerations attr_accessor :dn_numerations diff --git a/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_default_values.rb b/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_default_values.rb index 18ace2af..b94e0185 100644 --- a/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_default_values.rb +++ b/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_default_values.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # Issued document default values - class IssuedDocumentPreCreateInfoDefaultValues + class IssuedDocumentPreCreateInfoDefaultValues < ApiModelBase attr_accessor :default_template attr_accessor :dn_template diff --git a/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_extra_data_default_values.rb b/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_extra_data_default_values.rb index 44762784..eef2b4d1 100644 --- a/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_extra_data_default_values.rb +++ b/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_extra_data_default_values.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # Issued document extra data default values - class IssuedDocumentPreCreateInfoExtraDataDefaultValues + class IssuedDocumentPreCreateInfoExtraDataDefaultValues < ApiModelBase attr_accessor :ts_communication attr_accessor :ts_tipo_spesa diff --git a/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_items_default_values.rb b/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_items_default_values.rb index c25d4a2f..4e7d3656 100644 --- a/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_items_default_values.rb +++ b/lib/fattureincloud_ruby_sdk/models/issued_document_pre_create_info_items_default_values.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # Issued document items default values - class IssuedDocumentPreCreateInfoItemsDefaultValues + class IssuedDocumentPreCreateInfoItemsDefaultValues < ApiModelBase attr_accessor :vat # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/issued_document_status.rb b/lib/fattureincloud_ruby_sdk/models/issued_document_status.rb index 361fcc60..9ca97b15 100644 --- a/lib/fattureincloud_ruby_sdk/models/issued_document_status.rb +++ b/lib/fattureincloud_ruby_sdk/models/issued_document_status.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/issued_document_totals.rb b/lib/fattureincloud_ruby_sdk/models/issued_document_totals.rb index 51530e27..538f5f4c 100644 --- a/lib/fattureincloud_ruby_sdk/models/issued_document_totals.rb +++ b/lib/fattureincloud_ruby_sdk/models/issued_document_totals.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class IssuedDocumentTotals + class IssuedDocumentTotals < ApiModelBase # Issued document total net amount attr_accessor :amount_net diff --git a/lib/fattureincloud_ruby_sdk/models/issued_document_type.rb b/lib/fattureincloud_ruby_sdk/models/issued_document_type.rb index 360ed04a..7db331ba 100644 --- a/lib/fattureincloud_ruby_sdk/models/issued_document_type.rb +++ b/lib/fattureincloud_ruby_sdk/models/issued_document_type.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -24,11 +24,10 @@ class IssuedDocumentType ORDER = "order".freeze WORK_REPORT = "work_report".freeze SUPPLIER_ORDER = "supplier_order".freeze - SELF_OWN_INVOICE = "self_own_invoice".freeze - SELF_SUPPLIER_INVOICE = "self_supplier_invoice".freeze + SELF_INVOICE = "self_invoice".freeze def self.all_vars - @all_vars ||= [INVOICE, QUOTE, PROFORMA, RECEIPT, DELIVERY_NOTE, CREDIT_NOTE, ORDER, WORK_REPORT, SUPPLIER_ORDER, SELF_OWN_INVOICE, SELF_SUPPLIER_INVOICE].freeze + @all_vars ||= [INVOICE, QUOTE, PROFORMA, RECEIPT, DELIVERY_NOTE, CREDIT_NOTE, ORDER, WORK_REPORT, SUPPLIER_ORDER, SELF_INVOICE].freeze end # Builds the enum from string diff --git a/lib/fattureincloud_ruby_sdk/models/join_issued_documents_response.rb b/lib/fattureincloud_ruby_sdk/models/join_issued_documents_response.rb index 1b995fbd..7f845547 100644 --- a/lib/fattureincloud_ruby_sdk/models/join_issued_documents_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/join_issued_documents_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class JoinIssuedDocumentsResponse + class JoinIssuedDocumentsResponse < ApiModelBase attr_accessor :data attr_accessor :options diff --git a/lib/fattureincloud_ruby_sdk/models/language.rb b/lib/fattureincloud_ruby_sdk/models/language.rb index 6e8b203e..228f5d26 100644 --- a/lib/fattureincloud_ruby_sdk/models/language.rb +++ b/lib/fattureincloud_ruby_sdk/models/language.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class Language + class Language < ApiModelBase # Language code attr_accessor :code diff --git a/lib/fattureincloud_ruby_sdk/models/list_archive_categories_response.rb b/lib/fattureincloud_ruby_sdk/models/list_archive_categories_response.rb index 8cf1f392..ace8670f 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_archive_categories_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_archive_categories_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListArchiveCategoriesResponse + class ListArchiveCategoriesResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response.rb b/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response.rb index 10c19a34..1726cee5 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListArchiveDocumentsResponse + class ListArchiveDocumentsResponse < ApiModelBase # Current page number. attr_accessor :current_page diff --git a/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response_page.rb b/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response_page.rb index 6afce5b2..9eddede7 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response_page.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_archive_documents_response_page.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListArchiveDocumentsResponsePage + class ListArchiveDocumentsResponsePage < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_bin_issued_documents.rb b/lib/fattureincloud_ruby_sdk/models/list_bin_issued_documents.rb index 3054fd36..69fa24a9 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_bin_issued_documents.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_bin_issued_documents.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListBinIssuedDocuments + class ListBinIssuedDocuments < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_bin_received_documents.rb b/lib/fattureincloud_ruby_sdk/models/list_bin_received_documents.rb index d9dec05a..c70b29b7 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_bin_received_documents.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_bin_received_documents.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListBinReceivedDocuments + class ListBinReceivedDocuments < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_cashbook_entries_response.rb b/lib/fattureincloud_ruby_sdk/models/list_cashbook_entries_response.rb index 3dbced8f..140936d7 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_cashbook_entries_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_cashbook_entries_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListCashbookEntriesResponse + class ListCashbookEntriesResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_cities_response.rb b/lib/fattureincloud_ruby_sdk/models/list_cities_response.rb index 2b46376f..1a708f01 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_cities_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_cities_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListCitiesResponse + class ListCitiesResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_clients_response.rb b/lib/fattureincloud_ruby_sdk/models/list_clients_response.rb index 1ef53d32..c19efdba 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_clients_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_clients_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListClientsResponse + class ListClientsResponse < ApiModelBase # Current page number. attr_accessor :current_page diff --git a/lib/fattureincloud_ruby_sdk/models/list_clients_response_page.rb b/lib/fattureincloud_ruby_sdk/models/list_clients_response_page.rb index 833b8746..a818e370 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_clients_response_page.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_clients_response_page.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListClientsResponsePage + class ListClientsResponsePage < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_cost_centers_response.rb b/lib/fattureincloud_ruby_sdk/models/list_cost_centers_response.rb index 745e5bca..b49ce6d7 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_cost_centers_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_cost_centers_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListCostCentersResponse + class ListCostCentersResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_countries_response.rb b/lib/fattureincloud_ruby_sdk/models/list_countries_response.rb index 50b818b6..de5f67b1 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_countries_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_countries_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListCountriesResponse + class ListCountriesResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_currencies_response.rb b/lib/fattureincloud_ruby_sdk/models/list_currencies_response.rb index f6b0d45a..b2fc21d4 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_currencies_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_currencies_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListCurrenciesResponse + class ListCurrenciesResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_delivery_notes_default_causals_response.rb b/lib/fattureincloud_ruby_sdk/models/list_delivery_notes_default_causals_response.rb index 68ad54e8..8be2083b 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_delivery_notes_default_causals_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_delivery_notes_default_causals_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListDeliveryNotesDefaultCausalsResponse + class ListDeliveryNotesDefaultCausalsResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_detailed_countries_response.rb b/lib/fattureincloud_ruby_sdk/models/list_detailed_countries_response.rb index 48bbc535..6594fb7d 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_detailed_countries_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_detailed_countries_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListDetailedCountriesResponse + class ListDetailedCountriesResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_emails_response.rb b/lib/fattureincloud_ruby_sdk/models/list_emails_response.rb index c9db70e8..ab80ba96 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_emails_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_emails_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListEmailsResponse + class ListEmailsResponse < ApiModelBase # Current page number. attr_accessor :current_page diff --git a/lib/fattureincloud_ruby_sdk/models/list_emails_response_page.rb b/lib/fattureincloud_ruby_sdk/models/list_emails_response_page.rb index d43c275f..55959261 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_emails_response_page.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_emails_response_page.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListEmailsResponsePage + class ListEmailsResponsePage < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_f24_response.rb b/lib/fattureincloud_ruby_sdk/models/list_f24_response.rb index 00effcb4..0f349a15 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_f24_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_f24_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListF24Response + class ListF24Response < ApiModelBase # Current page number. attr_accessor :current_page diff --git a/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregated_data.rb b/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregated_data.rb index 85936d6c..38862bd3 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregated_data.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregated_data.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListF24ResponseAggregatedData + class ListF24ResponseAggregatedData < ApiModelBase # Total amount. attr_accessor :amount diff --git a/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregation.rb b/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregation.rb index 1c7e7d56..e785221a 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregation.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_f24_response_aggregation.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListF24ResponseAggregation + class ListF24ResponseAggregation < ApiModelBase attr_accessor :aggregated_data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_f24_response_page.rb b/lib/fattureincloud_ruby_sdk/models/list_f24_response_page.rb index 5f237d1a..1c32ff09 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_f24_response_page.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_f24_response_page.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListF24ResponsePage + class ListF24ResponsePage < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response.rb b/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response.rb index 2b3d8a1f..05a43e93 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListIssuedDocumentsResponse + class ListIssuedDocumentsResponse < ApiModelBase # Current page number. attr_accessor :current_page diff --git a/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response_page.rb b/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response_page.rb index 9369b3f0..25cb187a 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response_page.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_issued_documents_response_page.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListIssuedDocumentsResponsePage + class ListIssuedDocumentsResponsePage < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_languages_response.rb b/lib/fattureincloud_ruby_sdk/models/list_languages_response.rb index 65c06a9d..86b20fda 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_languages_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_languages_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListLanguagesResponse + class ListLanguagesResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_payment_accounts_response.rb b/lib/fattureincloud_ruby_sdk/models/list_payment_accounts_response.rb index 51638f1e..84467f89 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_payment_accounts_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_payment_accounts_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListPaymentAccountsResponse + class ListPaymentAccountsResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_payment_methods_response.rb b/lib/fattureincloud_ruby_sdk/models/list_payment_methods_response.rb index 6867edf4..7b740932 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_payment_methods_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_payment_methods_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListPaymentMethodsResponse + class ListPaymentMethodsResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_pending_received_documents_response.rb b/lib/fattureincloud_ruby_sdk/models/list_pending_received_documents_response.rb new file mode 100644 index 00000000..160e0258 --- /dev/null +++ b/lib/fattureincloud_ruby_sdk/models/list_pending_received_documents_response.rb @@ -0,0 +1,353 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'date' +require 'time' + +module FattureInCloud_Ruby_Sdk + # + class ListPendingReceivedDocumentsResponse < ApiModelBase + # Current page number. + attr_accessor :current_page + + # First page url. + attr_accessor :first_page_url + + # First result of the page. + attr_accessor :from + + # Last page number. + attr_accessor :last_page + + # Last page url. + attr_accessor :last_page_url + + # Next page url + attr_accessor :next_page_url + + # Request path. + attr_accessor :path + + # Number of result per page. + attr_accessor :per_page + + # Previous page url. + attr_accessor :prev_page_url + + # Last result of the page. + attr_accessor :to + + # Total number of results + attr_accessor :total + + attr_accessor :data + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'current_page' => :'current_page', + :'first_page_url' => :'first_page_url', + :'from' => :'from', + :'last_page' => :'last_page', + :'last_page_url' => :'last_page_url', + :'next_page_url' => :'next_page_url', + :'path' => :'path', + :'per_page' => :'per_page', + :'prev_page_url' => :'prev_page_url', + :'to' => :'to', + :'total' => :'total', + :'data' => :'data' + } + end + + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + acceptable_attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'current_page' => :'Integer', + :'first_page_url' => :'String', + :'from' => :'Integer', + :'last_page' => :'Integer', + :'last_page_url' => :'String', + :'next_page_url' => :'String', + :'path' => :'String', + :'per_page' => :'Integer', + :'prev_page_url' => :'String', + :'to' => :'Integer', + :'total' => :'Integer', + :'data' => :'Array' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'current_page', + :'first_page_url', + :'from', + :'last_page', + :'last_page_url', + :'next_page_url', + :'path', + :'per_page', + :'prev_page_url', + :'to', + :'total', + :'data' + ]) + end + + # List of class defined in allOf (OpenAPI v3) + def self.openapi_all_of + [ + :'ListPendingReceivedDocumentsResponsePage', + :'Pagination' + ] + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `FattureInCloud_Ruby_Sdk::ListPendingReceivedDocumentsResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `FattureInCloud_Ruby_Sdk::ListPendingReceivedDocumentsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'current_page') + self.current_page = attributes[:'current_page'] + end + + if attributes.key?(:'first_page_url') + self.first_page_url = attributes[:'first_page_url'] + end + + if attributes.key?(:'from') + self.from = attributes[:'from'] + end + + if attributes.key?(:'last_page') + self.last_page = attributes[:'last_page'] + end + + if attributes.key?(:'last_page_url') + self.last_page_url = attributes[:'last_page_url'] + end + + if attributes.key?(:'next_page_url') + self.next_page_url = attributes[:'next_page_url'] + end + + if attributes.key?(:'path') + self.path = attributes[:'path'] + end + + if attributes.key?(:'per_page') + self.per_page = attributes[:'per_page'] + end + + if attributes.key?(:'prev_page_url') + self.prev_page_url = attributes[:'prev_page_url'] + end + + if attributes.key?(:'to') + self.to = attributes[:'to'] + end + + if attributes.key?(:'total') + self.total = attributes[:'total'] + end + + if attributes.key?(:'data') + if (value = attributes[:'data']).is_a?(Array) + self.data = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + current_page == o.current_page && + first_page_url == o.first_page_url && + from == o.from && + last_page == o.last_page && + last_page_url == o.last_page_url && + next_page_url == o.next_page_url && + path == o.path && + per_page == o.per_page && + prev_page_url == o.prev_page_url && + to == o.to && + total == o.total && + data == o.data + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [current_page, first_page_url, from, last_page, last_page_url, next_page_url, path, per_page, prev_page_url, to, total, data].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + when :Hash + value + else # model + # models (e.g. Pet) or oneOf + klass = FattureInCloud_Ruby_Sdk.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/fattureincloud_ruby_sdk/models/list_pending_received_documents_response_page.rb b/lib/fattureincloud_ruby_sdk/models/list_pending_received_documents_response_page.rb new file mode 100644 index 00000000..db9cb825 --- /dev/null +++ b/lib/fattureincloud_ruby_sdk/models/list_pending_received_documents_response_page.rb @@ -0,0 +1,223 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'date' +require 'time' + +module FattureInCloud_Ruby_Sdk + class ListPendingReceivedDocumentsResponsePage < ApiModelBase + attr_accessor :data + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'data' => :'data' + } + end + + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + acceptable_attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'data' => :'Array' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'data' + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `FattureInCloud_Ruby_Sdk::ListPendingReceivedDocumentsResponsePage` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `FattureInCloud_Ruby_Sdk::ListPendingReceivedDocumentsResponsePage`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'data') + if (value = attributes[:'data']).is_a?(Array) + self.data = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + data == o.data + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [data].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + when :Hash + value + else # model + # models (e.g. Pet) or oneOf + klass = FattureInCloud_Ruby_Sdk.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/fattureincloud_ruby_sdk/models/list_price_lists_response.rb b/lib/fattureincloud_ruby_sdk/models/list_price_lists_response.rb index 4bc6dbc8..958c7938 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_price_lists_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_price_lists_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListPriceListsResponse + class ListPriceListsResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_product_categories_response.rb b/lib/fattureincloud_ruby_sdk/models/list_product_categories_response.rb index 9c04b65d..c8d352ef 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_product_categories_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_product_categories_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListProductCategoriesResponse + class ListProductCategoriesResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_products_response.rb b/lib/fattureincloud_ruby_sdk/models/list_products_response.rb index 5914ebd7..a3cc0a63 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_products_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_products_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListProductsResponse + class ListProductsResponse < ApiModelBase # Current page number. attr_accessor :current_page diff --git a/lib/fattureincloud_ruby_sdk/models/list_products_response_page.rb b/lib/fattureincloud_ruby_sdk/models/list_products_response_page.rb index 691df150..efdc62ef 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_products_response_page.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_products_response_page.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListProductsResponsePage + class ListProductsResponsePage < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_receipts_response.rb b/lib/fattureincloud_ruby_sdk/models/list_receipts_response.rb index d25d28c7..33d0c64b 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_receipts_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_receipts_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListReceiptsResponse + class ListReceiptsResponse < ApiModelBase # Current page number. attr_accessor :current_page diff --git a/lib/fattureincloud_ruby_sdk/models/list_receipts_response_page.rb b/lib/fattureincloud_ruby_sdk/models/list_receipts_response_page.rb index cc31c91a..aab023ae 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_receipts_response_page.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_receipts_response_page.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListReceiptsResponsePage + class ListReceiptsResponsePage < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_received_document_categories_response.rb b/lib/fattureincloud_ruby_sdk/models/list_received_document_categories_response.rb index 1005b37b..3467a609 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_received_document_categories_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_received_document_categories_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListReceivedDocumentCategoriesResponse + class ListReceivedDocumentCategoriesResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_received_documents_response.rb b/lib/fattureincloud_ruby_sdk/models/list_received_documents_response.rb index 3889394a..9b91726c 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_received_documents_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_received_documents_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListReceivedDocumentsResponse + class ListReceivedDocumentsResponse < ApiModelBase # Current page number. attr_accessor :current_page diff --git a/lib/fattureincloud_ruby_sdk/models/list_received_documents_response_page.rb b/lib/fattureincloud_ruby_sdk/models/list_received_documents_response_page.rb index b99e2de4..a9f8d864 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_received_documents_response_page.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_received_documents_response_page.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListReceivedDocumentsResponsePage + class ListReceivedDocumentsResponsePage < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_revenue_centers_response.rb b/lib/fattureincloud_ruby_sdk/models/list_revenue_centers_response.rb index 6f3bdf8f..968e70c8 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_revenue_centers_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_revenue_centers_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListRevenueCentersResponse + class ListRevenueCentersResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_suppliers_response.rb b/lib/fattureincloud_ruby_sdk/models/list_suppliers_response.rb index 652ef81b..f7ec2b52 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_suppliers_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_suppliers_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListSuppliersResponse + class ListSuppliersResponse < ApiModelBase # Current page number. attr_accessor :current_page diff --git a/lib/fattureincloud_ruby_sdk/models/list_suppliers_response_page.rb b/lib/fattureincloud_ruby_sdk/models/list_suppliers_response_page.rb index 2712a188..b96c310e 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_suppliers_response_page.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_suppliers_response_page.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListSuppliersResponsePage + class ListSuppliersResponsePage < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_templates_response.rb b/lib/fattureincloud_ruby_sdk/models/list_templates_response.rb index c2616a43..12f0e205 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_templates_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_templates_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListTemplatesResponse + class ListTemplatesResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_units_of_measure_response.rb b/lib/fattureincloud_ruby_sdk/models/list_units_of_measure_response.rb index 90ee0e14..1ca5d05d 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_units_of_measure_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_units_of_measure_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListUnitsOfMeasureResponse + class ListUnitsOfMeasureResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_user_companies_response.rb b/lib/fattureincloud_ruby_sdk/models/list_user_companies_response.rb index 5284141a..bee637ce 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_user_companies_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_user_companies_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListUserCompaniesResponse + class ListUserCompaniesResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_user_companies_response_data.rb b/lib/fattureincloud_ruby_sdk/models/list_user_companies_response_data.rb index 4b3a19eb..c9268fb1 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_user_companies_response_data.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_user_companies_response_data.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListUserCompaniesResponseData + class ListUserCompaniesResponseData < ApiModelBase attr_accessor :companies # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_vat_types_response.rb b/lib/fattureincloud_ruby_sdk/models/list_vat_types_response.rb index 28b30ebb..6c4c2248 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_vat_types_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_vat_types_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ListVatTypesResponse + class ListVatTypesResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/list_webhooks_subscriptions_response.rb b/lib/fattureincloud_ruby_sdk/models/list_webhooks_subscriptions_response.rb index 41c46e79..9081c4b9 100644 --- a/lib/fattureincloud_ruby_sdk/models/list_webhooks_subscriptions_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/list_webhooks_subscriptions_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ListWebhooksSubscriptionsResponse + class ListWebhooksSubscriptionsResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_archive_document_request.rb b/lib/fattureincloud_ruby_sdk/models/modify_archive_document_request.rb index ef324793..4dc8cdd0 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_archive_document_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_archive_document_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ModifyArchiveDocumentRequest + class ModifyArchiveDocumentRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_archive_document_response.rb b/lib/fattureincloud_ruby_sdk/models/modify_archive_document_response.rb index 77193d9f..471bcc89 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_archive_document_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_archive_document_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ModifyArchiveDocumentResponse + class ModifyArchiveDocumentResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_request.rb b/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_request.rb index 3fb44cc1..de855bff 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ModifyCashbookEntryRequest + class ModifyCashbookEntryRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_response.rb b/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_response.rb index c651b089..34646d00 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_cashbook_entry_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ModifyCashbookEntryResponse + class ModifyCashbookEntryResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_client_request.rb b/lib/fattureincloud_ruby_sdk/models/modify_client_request.rb index 5062de74..1cd90d91 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_client_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_client_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ModifyClientRequest + class ModifyClientRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_client_response.rb b/lib/fattureincloud_ruby_sdk/models/modify_client_response.rb index c7bc350c..1ce7c328 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_client_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_client_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ModifyClientResponse + class ModifyClientResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_f24_request.rb b/lib/fattureincloud_ruby_sdk/models/modify_f24_request.rb index 9c16f538..61c5466b 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_f24_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_f24_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ModifyF24Request + class ModifyF24Request < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_f24_response.rb b/lib/fattureincloud_ruby_sdk/models/modify_f24_response.rb index c8adfe62..ee5f3255 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_f24_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_f24_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ModifyF24Response + class ModifyF24Response < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_issued_document_request.rb b/lib/fattureincloud_ruby_sdk/models/modify_issued_document_request.rb index a302ec8e..ca3fe8bb 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_issued_document_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_issued_document_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ModifyIssuedDocumentRequest + class ModifyIssuedDocumentRequest < ApiModelBase attr_accessor :data attr_accessor :options diff --git a/lib/fattureincloud_ruby_sdk/models/modify_issued_document_response.rb b/lib/fattureincloud_ruby_sdk/models/modify_issued_document_response.rb index 727988a0..2e76c179 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_issued_document_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_issued_document_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ModifyIssuedDocumentResponse + class ModifyIssuedDocumentResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_payment_account_request.rb b/lib/fattureincloud_ruby_sdk/models/modify_payment_account_request.rb index 1823e87c..a9778b2c 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_payment_account_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_payment_account_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ModifyPaymentAccountRequest + class ModifyPaymentAccountRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_payment_account_response.rb b/lib/fattureincloud_ruby_sdk/models/modify_payment_account_response.rb index b795deda..3b93a94c 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_payment_account_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_payment_account_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ModifyPaymentAccountResponse + class ModifyPaymentAccountResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_payment_method_request.rb b/lib/fattureincloud_ruby_sdk/models/modify_payment_method_request.rb index 1e7f4b02..c702e1fb 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_payment_method_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_payment_method_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ModifyPaymentMethodRequest + class ModifyPaymentMethodRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_payment_method_response.rb b/lib/fattureincloud_ruby_sdk/models/modify_payment_method_response.rb index 6fec2c77..051647ca 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_payment_method_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_payment_method_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ModifyPaymentMethodResponse + class ModifyPaymentMethodResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_product_request.rb b/lib/fattureincloud_ruby_sdk/models/modify_product_request.rb index 46d9fa20..c8222ea5 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_product_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_product_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ModifyProductRequest + class ModifyProductRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_product_response.rb b/lib/fattureincloud_ruby_sdk/models/modify_product_response.rb index 6590f824..88d8d8aa 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_product_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_product_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ModifyProductResponse + class ModifyProductResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_receipt_request.rb b/lib/fattureincloud_ruby_sdk/models/modify_receipt_request.rb index 22a747a6..562c0225 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_receipt_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_receipt_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ModifyReceiptRequest + class ModifyReceiptRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_receipt_response.rb b/lib/fattureincloud_ruby_sdk/models/modify_receipt_response.rb index 343701c6..298db845 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_receipt_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_receipt_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ModifyReceiptResponse + class ModifyReceiptResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_received_document_request.rb b/lib/fattureincloud_ruby_sdk/models/modify_received_document_request.rb index 978efdc0..9858c5bb 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_received_document_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_received_document_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ModifyReceivedDocumentRequest + class ModifyReceivedDocumentRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_received_document_response.rb b/lib/fattureincloud_ruby_sdk/models/modify_received_document_response.rb index d975c532..2ded5df8 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_received_document_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_received_document_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ModifyReceivedDocumentResponse + class ModifyReceivedDocumentResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_supplier_request.rb b/lib/fattureincloud_ruby_sdk/models/modify_supplier_request.rb index 08004c52..c2f00ad6 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_supplier_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_supplier_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ModifySupplierRequest + class ModifySupplierRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_supplier_response.rb b/lib/fattureincloud_ruby_sdk/models/modify_supplier_response.rb index 251c3ff9..89a8c373 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_supplier_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_supplier_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ModifySupplierResponse + class ModifySupplierResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_vat_type_request.rb b/lib/fattureincloud_ruby_sdk/models/modify_vat_type_request.rb index 9f2e620d..80450bba 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_vat_type_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_vat_type_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ModifyVatTypeRequest + class ModifyVatTypeRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_vat_type_response.rb b/lib/fattureincloud_ruby_sdk/models/modify_vat_type_response.rb index dcf077bb..0b2498a3 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_vat_type_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_vat_type_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ModifyVatTypeResponse + class ModifyVatTypeResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_request.rb b/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_request.rb index 65d29d22..60260cf6 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ModifyWebhooksSubscriptionRequest + class ModifyWebhooksSubscriptionRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_response.rb b/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_response.rb index 11198b1c..e1abd6ac 100644 --- a/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/modify_webhooks_subscription_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ModifyWebhooksSubscriptionResponse + class ModifyWebhooksSubscriptionResponse < ApiModelBase attr_accessor :data # Webhooks registration warnings diff --git a/lib/fattureincloud_ruby_sdk/models/monthly_total.rb b/lib/fattureincloud_ruby_sdk/models/monthly_total.rb index b432688d..caec3575 100644 --- a/lib/fattureincloud_ruby_sdk/models/monthly_total.rb +++ b/lib/fattureincloud_ruby_sdk/models/monthly_total.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class MonthlyTotal + class MonthlyTotal < ApiModelBase # Monthly total net amount attr_accessor :net diff --git a/lib/fattureincloud_ruby_sdk/models/original_document_type.rb b/lib/fattureincloud_ruby_sdk/models/original_document_type.rb index e9508263..df124a85 100644 --- a/lib/fattureincloud_ruby_sdk/models/original_document_type.rb +++ b/lib/fattureincloud_ruby_sdk/models/original_document_type.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/pagination.rb b/lib/fattureincloud_ruby_sdk/models/pagination.rb index 9fd90f4f..8b285b3f 100644 --- a/lib/fattureincloud_ruby_sdk/models/pagination.rb +++ b/lib/fattureincloud_ruby_sdk/models/pagination.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class Pagination + class Pagination < ApiModelBase # Current page number. attr_accessor :current_page diff --git a/lib/fattureincloud_ruby_sdk/models/payment_account.rb b/lib/fattureincloud_ruby_sdk/models/payment_account.rb index 82714ff8..8dabb6c6 100644 --- a/lib/fattureincloud_ruby_sdk/models/payment_account.rb +++ b/lib/fattureincloud_ruby_sdk/models/payment_account.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class PaymentAccount + class PaymentAccount < ApiModelBase # Payment account id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/payment_account_type.rb b/lib/fattureincloud_ruby_sdk/models/payment_account_type.rb index 8f298b42..33c196ae 100644 --- a/lib/fattureincloud_ruby_sdk/models/payment_account_type.rb +++ b/lib/fattureincloud_ruby_sdk/models/payment_account_type.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/payment_method.rb b/lib/fattureincloud_ruby_sdk/models/payment_method.rb index 4b103f8e..fdde5bf0 100644 --- a/lib/fattureincloud_ruby_sdk/models/payment_method.rb +++ b/lib/fattureincloud_ruby_sdk/models/payment_method.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class PaymentMethod + class PaymentMethod < ApiModelBase # Payment method id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/payment_method_details.rb b/lib/fattureincloud_ruby_sdk/models/payment_method_details.rb index e4959dfe..0eacd06d 100644 --- a/lib/fattureincloud_ruby_sdk/models/payment_method_details.rb +++ b/lib/fattureincloud_ruby_sdk/models/payment_method_details.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class PaymentMethodDetails + class PaymentMethodDetails < ApiModelBase # Payment method details title attr_accessor :title diff --git a/lib/fattureincloud_ruby_sdk/models/payment_method_type.rb b/lib/fattureincloud_ruby_sdk/models/payment_method_type.rb index 79b715ee..38e38f67 100644 --- a/lib/fattureincloud_ruby_sdk/models/payment_method_type.rb +++ b/lib/fattureincloud_ruby_sdk/models/payment_method_type.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/payment_terms_type.rb b/lib/fattureincloud_ruby_sdk/models/payment_terms_type.rb index c2644bc8..8b5044e7 100644 --- a/lib/fattureincloud_ruby_sdk/models/payment_terms_type.rb +++ b/lib/fattureincloud_ruby_sdk/models/payment_terms_type.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/pending_received_document.rb b/lib/fattureincloud_ruby_sdk/models/pending_received_document.rb new file mode 100644 index 00000000..9b009d77 --- /dev/null +++ b/lib/fattureincloud_ruby_sdk/models/pending_received_document.rb @@ -0,0 +1,442 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'date' +require 'time' + +module FattureInCloud_Ruby_Sdk + class PendingReceivedDocument < ApiModelBase + # Pending received document id + attr_accessor :id + + # Pending received document date + attr_accessor :date + + # Pending received document subject + attr_accessor :subject + + # Pending received document filename + attr_accessor :filename + + attr_accessor :type + + # [Temporary] [Read Only] Pending received document url of the attached file + attr_accessor :attachment_url + + # [Read Only] Pending received document total gross amount + attr_accessor :amount_gross + + attr_accessor :currency + + attr_accessor :document_type + + # Pending received document supplier name + attr_accessor :supplier_name + + # Pending received document cost center + attr_accessor :cost_center + + # Pending received document category + attr_accessor :category + + # Pending received document other attachments + attr_accessor :other_attachments + + # Pending received document emission date + attr_accessor :emssion_date + + attr_accessor :payments_list + + # Pending received document total net amount + attr_accessor :amount_net + + # Pending received document total vat amount + attr_accessor :amount_vat + + # Pending received document import error + attr_accessor :import_error + + attr_accessor :extracted_data + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'id' => :'id', + :'date' => :'date', + :'subject' => :'subject', + :'filename' => :'filename', + :'type' => :'type', + :'attachment_url' => :'attachment_url', + :'amount_gross' => :'amount_gross', + :'currency' => :'currency', + :'document_type' => :'document_type', + :'supplier_name' => :'supplier_name', + :'cost_center' => :'cost_center', + :'category' => :'category', + :'other_attachments' => :'other_attachments', + :'emssion_date' => :'emssion_date', + :'payments_list' => :'payments_list', + :'amount_net' => :'amount_net', + :'amount_vat' => :'amount_vat', + :'import_error' => :'import_error', + :'extracted_data' => :'extracted_data' + } + end + + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + acceptable_attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'id' => :'Integer', + :'date' => :'Date', + :'subject' => :'String', + :'filename' => :'String', + :'type' => :'PendingReceivedDocumentType', + :'attachment_url' => :'String', + :'amount_gross' => :'Float', + :'currency' => :'Currency', + :'document_type' => :'ReceivedDocumentType', + :'supplier_name' => :'String', + :'cost_center' => :'String', + :'category' => :'String', + :'other_attachments' => :'Array', + :'emssion_date' => :'Date', + :'payments_list' => :'Array', + :'amount_net' => :'Float', + :'amount_vat' => :'Float', + :'import_error' => :'String', + :'extracted_data' => :'PendingReceivedDocumentExtractedData' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'id', + :'date', + :'subject', + :'filename', + :'attachment_url', + :'amount_gross', + :'supplier_name', + :'cost_center', + :'category', + :'other_attachments', + :'emssion_date', + :'payments_list', + :'amount_net', + :'amount_vat', + :'import_error', + :'extracted_data' + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `FattureInCloud_Ruby_Sdk::PendingReceivedDocument` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `FattureInCloud_Ruby_Sdk::PendingReceivedDocument`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'id') + self.id = attributes[:'id'] + end + + if attributes.key?(:'date') + self.date = attributes[:'date'] + end + + if attributes.key?(:'subject') + self.subject = attributes[:'subject'] + end + + if attributes.key?(:'filename') + self.filename = attributes[:'filename'] + end + + if attributes.key?(:'type') + self.type = attributes[:'type'] + else + self.type = 'agyo' + end + + if attributes.key?(:'attachment_url') + self.attachment_url = attributes[:'attachment_url'] + end + + if attributes.key?(:'amount_gross') + self.amount_gross = attributes[:'amount_gross'] + end + + if attributes.key?(:'currency') + self.currency = attributes[:'currency'] + end + + if attributes.key?(:'document_type') + self.document_type = attributes[:'document_type'] + else + self.document_type = 'expense' + end + + if attributes.key?(:'supplier_name') + self.supplier_name = attributes[:'supplier_name'] + end + + if attributes.key?(:'cost_center') + self.cost_center = attributes[:'cost_center'] + end + + if attributes.key?(:'category') + self.category = attributes[:'category'] + end + + if attributes.key?(:'other_attachments') + if (value = attributes[:'other_attachments']).is_a?(Array) + self.other_attachments = value + end + end + + if attributes.key?(:'emssion_date') + self.emssion_date = attributes[:'emssion_date'] + end + + if attributes.key?(:'payments_list') + if (value = attributes[:'payments_list']).is_a?(Array) + self.payments_list = value + end + end + + if attributes.key?(:'amount_net') + self.amount_net = attributes[:'amount_net'] + end + + if attributes.key?(:'amount_vat') + self.amount_vat = attributes[:'amount_vat'] + end + + if attributes.key?(:'import_error') + self.import_error = attributes[:'import_error'] + end + + if attributes.key?(:'extracted_data') + self.extracted_data = attributes[:'extracted_data'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + id == o.id && + date == o.date && + subject == o.subject && + filename == o.filename && + type == o.type && + attachment_url == o.attachment_url && + amount_gross == o.amount_gross && + currency == o.currency && + document_type == o.document_type && + supplier_name == o.supplier_name && + cost_center == o.cost_center && + category == o.category && + other_attachments == o.other_attachments && + emssion_date == o.emssion_date && + payments_list == o.payments_list && + amount_net == o.amount_net && + amount_vat == o.amount_vat && + import_error == o.import_error && + extracted_data == o.extracted_data + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [id, date, subject, filename, type, attachment_url, amount_gross, currency, document_type, supplier_name, cost_center, category, other_attachments, emssion_date, payments_list, amount_net, amount_vat, import_error, extracted_data].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + when :Hash + value + else # model + # models (e.g. Pet) or oneOf + klass = FattureInCloud_Ruby_Sdk.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/fattureincloud_ruby_sdk/models/pending_received_document_extracted_data.rb b/lib/fattureincloud_ruby_sdk/models/pending_received_document_extracted_data.rb new file mode 100644 index 00000000..fe3cbfa3 --- /dev/null +++ b/lib/fattureincloud_ruby_sdk/models/pending_received_document_extracted_data.rb @@ -0,0 +1,220 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'date' +require 'time' + +module FattureInCloud_Ruby_Sdk + class PendingReceivedDocumentExtractedData < ApiModelBase + attr_accessor :mining + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'mining' => :'mining' + } + end + + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + acceptable_attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'mining' => :'PendingReceivedDocumentExtractedDataMining' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `FattureInCloud_Ruby_Sdk::PendingReceivedDocumentExtractedData` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `FattureInCloud_Ruby_Sdk::PendingReceivedDocumentExtractedData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'mining') + self.mining = attributes[:'mining'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + mining == o.mining + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [mining].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + when :Hash + value + else # model + # models (e.g. Pet) or oneOf + klass = FattureInCloud_Ruby_Sdk.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/fattureincloud_ruby_sdk/models/pending_received_document_extracted_data_mining.rb b/lib/fattureincloud_ruby_sdk/models/pending_received_document_extracted_data_mining.rb new file mode 100644 index 00000000..baeb08af --- /dev/null +++ b/lib/fattureincloud_ruby_sdk/models/pending_received_document_extracted_data_mining.rb @@ -0,0 +1,220 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'date' +require 'time' + +module FattureInCloud_Ruby_Sdk + class PendingReceivedDocumentExtractedDataMining < ApiModelBase + attr_accessor :save_entity + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'save_entity' => :'save_entity' + } + end + + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + acceptable_attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'save_entity' => :'Boolean' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `FattureInCloud_Ruby_Sdk::PendingReceivedDocumentExtractedDataMining` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `FattureInCloud_Ruby_Sdk::PendingReceivedDocumentExtractedDataMining`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'save_entity') + self.save_entity = attributes[:'save_entity'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + save_entity == o.save_entity + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [save_entity].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + when :Hash + value + else # model + # models (e.g. Pet) or oneOf + klass = FattureInCloud_Ruby_Sdk.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/fattureincloud_ruby_sdk/models/pending_received_document_payments_list_item.rb b/lib/fattureincloud_ruby_sdk/models/pending_received_document_payments_list_item.rb new file mode 100644 index 00000000..ba1d83e0 --- /dev/null +++ b/lib/fattureincloud_ruby_sdk/models/pending_received_document_payments_list_item.rb @@ -0,0 +1,286 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'date' +require 'time' + +module FattureInCloud_Ruby_Sdk + class PendingReceivedDocumentPaymentsListItem < ApiModelBase + # Pending received document payment total amount + attr_accessor :amount + + # Due date + attr_accessor :due_date + + # Pending received document payment paid date + attr_accessor :paid_date + + attr_accessor :payment_terms + + # Pending received document payment status + attr_accessor :status + + # True if paid with TS Pay + attr_accessor :paid_with_ts_pay + + attr_accessor :payment_account + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'amount' => :'amount', + :'due_date' => :'due_date', + :'paid_date' => :'paid_date', + :'payment_terms' => :'payment_terms', + :'status' => :'status', + :'paid_with_ts_pay' => :'paid_with_ts_pay', + :'payment_account' => :'payment_account' + } + end + + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + acceptable_attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'amount' => :'Float', + :'due_date' => :'Date', + :'paid_date' => :'Date', + :'payment_terms' => :'PendingReceivedDocumentPaymentsListItemPaymentTerms', + :'status' => :'String', + :'paid_with_ts_pay' => :'Boolean', + :'payment_account' => :'PaymentAccount' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'amount', + :'due_date', + :'paid_date', + :'payment_terms', + :'status', + :'paid_with_ts_pay', + :'payment_account' + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `FattureInCloud_Ruby_Sdk::PendingReceivedDocumentPaymentsListItem` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `FattureInCloud_Ruby_Sdk::PendingReceivedDocumentPaymentsListItem`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'amount') + self.amount = attributes[:'amount'] + end + + if attributes.key?(:'due_date') + self.due_date = attributes[:'due_date'] + end + + if attributes.key?(:'paid_date') + self.paid_date = attributes[:'paid_date'] + end + + if attributes.key?(:'payment_terms') + self.payment_terms = attributes[:'payment_terms'] + end + + if attributes.key?(:'status') + self.status = attributes[:'status'] + end + + if attributes.key?(:'paid_with_ts_pay') + self.paid_with_ts_pay = attributes[:'paid_with_ts_pay'] + end + + if attributes.key?(:'payment_account') + self.payment_account = attributes[:'payment_account'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + amount == o.amount && + due_date == o.due_date && + paid_date == o.paid_date && + payment_terms == o.payment_terms && + status == o.status && + paid_with_ts_pay == o.paid_with_ts_pay && + payment_account == o.payment_account + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [amount, due_date, paid_date, payment_terms, status, paid_with_ts_pay, payment_account].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + when :Hash + value + else # model + # models (e.g. Pet) or oneOf + klass = FattureInCloud_Ruby_Sdk.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/fattureincloud_ruby_sdk/models/pending_received_document_payments_list_item_payment_terms.rb b/lib/fattureincloud_ruby_sdk/models/pending_received_document_payments_list_item_payment_terms.rb new file mode 100644 index 00000000..a24f2520 --- /dev/null +++ b/lib/fattureincloud_ruby_sdk/models/pending_received_document_payments_list_item_payment_terms.rb @@ -0,0 +1,255 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'date' +require 'time' + +module FattureInCloud_Ruby_Sdk + class PendingReceivedDocumentPaymentsListItemPaymentTerms < ApiModelBase + # Pending received document payment number of days by which the payment must be made + attr_accessor :days + + attr_accessor :type + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'days' => :'days', + :'type' => :'type' + } + end + + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + acceptable_attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'days' => :'Integer', + :'type' => :'PaymentTermsType' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'days', + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `FattureInCloud_Ruby_Sdk::PendingReceivedDocumentPaymentsListItemPaymentTerms` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `FattureInCloud_Ruby_Sdk::PendingReceivedDocumentPaymentsListItemPaymentTerms`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'days') + self.days = attributes[:'days'] + end + + if attributes.key?(:'type') + self.type = attributes[:'type'] + else + self.type = 'standard' + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + days == o.days && + type == o.type + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [days, type].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + when :Hash + value + else # model + # models (e.g. Pet) or oneOf + klass = FattureInCloud_Ruby_Sdk.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/fattureincloud_ruby_sdk/models/pending_received_document_type.rb b/lib/fattureincloud_ruby_sdk/models/pending_received_document_type.rb new file mode 100644 index 00000000..b20eed32 --- /dev/null +++ b/lib/fattureincloud_ruby_sdk/models/pending_received_document_type.rb @@ -0,0 +1,41 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'date' +require 'time' + +module FattureInCloud_Ruby_Sdk + class PendingReceivedDocumentType + AGYO = "agyo".freeze + MAIL = "mail".freeze + BROWSER = "browser".freeze + + def self.all_vars + @all_vars ||= [AGYO, MAIL, BROWSER].freeze + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + return value if PendingReceivedDocumentType.all_vars.include?(value) + raise "Invalid ENUM value #{value} for class #PendingReceivedDocumentType" + end + end +end diff --git a/lib/fattureincloud_ruby_sdk/models/permission_level.rb b/lib/fattureincloud_ruby_sdk/models/permission_level.rb index e1a4ba38..2e8ec9a6 100644 --- a/lib/fattureincloud_ruby_sdk/models/permission_level.rb +++ b/lib/fattureincloud_ruby_sdk/models/permission_level.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/permissions.rb b/lib/fattureincloud_ruby_sdk/models/permissions.rb index 2bcbb30b..349e0766 100644 --- a/lib/fattureincloud_ruby_sdk/models/permissions.rb +++ b/lib/fattureincloud_ruby_sdk/models/permissions.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class Permissions + class Permissions < ApiModelBase attr_accessor :fic_situation attr_accessor :fic_clients diff --git a/lib/fattureincloud_ruby_sdk/models/permissions_fic_issued_documents_detailed.rb b/lib/fattureincloud_ruby_sdk/models/permissions_fic_issued_documents_detailed.rb index bc8eb520..1e6ce261 100644 --- a/lib/fattureincloud_ruby_sdk/models/permissions_fic_issued_documents_detailed.rb +++ b/lib/fattureincloud_ruby_sdk/models/permissions_fic_issued_documents_detailed.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class PermissionsFicIssuedDocumentsDetailed + class PermissionsFicIssuedDocumentsDetailed < ApiModelBase attr_accessor :quotes attr_accessor :proformas diff --git a/lib/fattureincloud_ruby_sdk/models/price_list.rb b/lib/fattureincloud_ruby_sdk/models/price_list.rb index 77ced867..cb976b9d 100644 --- a/lib/fattureincloud_ruby_sdk/models/price_list.rb +++ b/lib/fattureincloud_ruby_sdk/models/price_list.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class PriceList + class PriceList < ApiModelBase # Price list id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/price_list_item.rb b/lib/fattureincloud_ruby_sdk/models/price_list_item.rb index 7720311e..c5f10c2f 100644 --- a/lib/fattureincloud_ruby_sdk/models/price_list_item.rb +++ b/lib/fattureincloud_ruby_sdk/models/price_list_item.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class PriceListItem + class PriceListItem < ApiModelBase attr_accessor :price # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/price_list_prices_type.rb b/lib/fattureincloud_ruby_sdk/models/price_list_prices_type.rb index 321a2ad0..5b1a0b2c 100644 --- a/lib/fattureincloud_ruby_sdk/models/price_list_prices_type.rb +++ b/lib/fattureincloud_ruby_sdk/models/price_list_prices_type.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/price_list_type.rb b/lib/fattureincloud_ruby_sdk/models/price_list_type.rb index d917c449..a07859f0 100644 --- a/lib/fattureincloud_ruby_sdk/models/price_list_type.rb +++ b/lib/fattureincloud_ruby_sdk/models/price_list_type.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/product.rb b/lib/fattureincloud_ruby_sdk/models/product.rb index 94e58ccb..7fbd718f 100644 --- a/lib/fattureincloud_ruby_sdk/models/product.rb +++ b/lib/fattureincloud_ruby_sdk/models/product.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class Product + class Product < ApiModelBase # Product id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/receipt.rb b/lib/fattureincloud_ruby_sdk/models/receipt.rb index 4956a0b3..3a5aac93 100644 --- a/lib/fattureincloud_ruby_sdk/models/receipt.rb +++ b/lib/fattureincloud_ruby_sdk/models/receipt.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class Receipt + class Receipt < ApiModelBase # Receipt id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/receipt_items_list_item.rb b/lib/fattureincloud_ruby_sdk/models/receipt_items_list_item.rb index b17411c0..408d735b 100644 --- a/lib/fattureincloud_ruby_sdk/models/receipt_items_list_item.rb +++ b/lib/fattureincloud_ruby_sdk/models/receipt_items_list_item.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ReceiptItemsListItem + class ReceiptItemsListItem < ApiModelBase # Receipt item id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/receipt_pre_create_info.rb b/lib/fattureincloud_ruby_sdk/models/receipt_pre_create_info.rb index 64f120de..bac798db 100644 --- a/lib/fattureincloud_ruby_sdk/models/receipt_pre_create_info.rb +++ b/lib/fattureincloud_ruby_sdk/models/receipt_pre_create_info.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ReceiptPreCreateInfo + class ReceiptPreCreateInfo < ApiModelBase attr_accessor :numerations # Receipt used numerations list diff --git a/lib/fattureincloud_ruby_sdk/models/receipt_type.rb b/lib/fattureincloud_ruby_sdk/models/receipt_type.rb index 88d4f915..8eb7f9d1 100644 --- a/lib/fattureincloud_ruby_sdk/models/receipt_type.rb +++ b/lib/fattureincloud_ruby_sdk/models/receipt_type.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/received_document.rb b/lib/fattureincloud_ruby_sdk/models/received_document.rb index 69826beb..ca8412b7 100644 --- a/lib/fattureincloud_ruby_sdk/models/received_document.rb +++ b/lib/fattureincloud_ruby_sdk/models/received_document.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ReceivedDocument + class ReceivedDocument < ApiModelBase # Received document id attr_accessor :id @@ -100,6 +100,12 @@ class ReceivedDocument # Received document last update date attr_accessor :updated_at + # [Read Only] Received document e-invoice reception date, needs fic_view fieldset + attr_accessor :ei_reception_date + + # [Read Only] True if received document is generated from pending expenses, needs fic_view fieldset + attr_accessor :is_from_pending_expenses + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -154,7 +160,9 @@ def self.attribute_map :'attachment_token' => :'attachment_token', :'locked' => :'locked', :'created_at' => :'created_at', - :'updated_at' => :'updated_at' + :'updated_at' => :'updated_at', + :'ei_reception_date' => :'ei_reception_date', + :'is_from_pending_expenses' => :'is_from_pending_expenses' } end @@ -200,7 +208,9 @@ def self.openapi_types :'attachment_token' => :'String', :'locked' => :'Boolean', :'created_at' => :'String', - :'updated_at' => :'String' + :'updated_at' => :'String', + :'ei_reception_date' => :'String', + :'is_from_pending_expenses' => :'Boolean' } end @@ -233,7 +243,9 @@ def self.openapi_nullable :'attachment_token', :'locked', :'created_at', - :'updated_at' + :'updated_at', + :'ei_reception_date', + :'is_from_pending_expenses' ]) end @@ -378,6 +390,14 @@ def initialize(attributes = {}) if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] end + + if attributes.key?(:'ei_reception_date') + self.ei_reception_date = attributes[:'ei_reception_date'] + end + + if attributes.key?(:'is_from_pending_expenses') + self.is_from_pending_expenses = attributes[:'is_from_pending_expenses'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -429,7 +449,9 @@ def ==(o) attachment_token == o.attachment_token && locked == o.locked && created_at == o.created_at && - updated_at == o.updated_at + updated_at == o.updated_at && + ei_reception_date == o.ei_reception_date && + is_from_pending_expenses == o.is_from_pending_expenses end # @see the `==` method @@ -441,7 +463,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, type, entity, date, category, description, amount_net, amount_vat, amount_withholding_tax, amount_other_withholding_tax, amount_gross, amortization, rc_center, invoice_number, is_marked, is_detailed, e_invoice, next_due_date, currency, tax_deductibility, vat_deductibility, items_list, payments_list, attachment_url, attachment_preview_url, auto_calculate, attachment_token, locked, created_at, updated_at].hash + [id, type, entity, date, category, description, amount_net, amount_vat, amount_withholding_tax, amount_other_withholding_tax, amount_gross, amortization, rc_center, invoice_number, is_marked, is_detailed, e_invoice, next_due_date, currency, tax_deductibility, vat_deductibility, items_list, payments_list, attachment_url, attachment_preview_url, auto_calculate, attachment_token, locked, created_at, updated_at, ei_reception_date, is_from_pending_expenses].hash end # Builds the object from hash diff --git a/lib/fattureincloud_ruby_sdk/models/received_document_info.rb b/lib/fattureincloud_ruby_sdk/models/received_document_info.rb index 8f2f9ae2..64e3fc58 100644 --- a/lib/fattureincloud_ruby_sdk/models/received_document_info.rb +++ b/lib/fattureincloud_ruby_sdk/models/received_document_info.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ReceivedDocumentInfo + class ReceivedDocumentInfo < ApiModelBase attr_accessor :default_values attr_accessor :items_default_values diff --git a/lib/fattureincloud_ruby_sdk/models/received_document_info_default_values.rb b/lib/fattureincloud_ruby_sdk/models/received_document_info_default_values.rb index 57066122..ca660acb 100644 --- a/lib/fattureincloud_ruby_sdk/models/received_document_info_default_values.rb +++ b/lib/fattureincloud_ruby_sdk/models/received_document_info_default_values.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # Received document default values - class ReceivedDocumentInfoDefaultValues + class ReceivedDocumentInfoDefaultValues < ApiModelBase attr_accessor :detailed # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/received_document_info_items_default_values.rb b/lib/fattureincloud_ruby_sdk/models/received_document_info_items_default_values.rb index f73b2fed..6b0dfddf 100644 --- a/lib/fattureincloud_ruby_sdk/models/received_document_info_items_default_values.rb +++ b/lib/fattureincloud_ruby_sdk/models/received_document_info_items_default_values.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # Received document items default values - class ReceivedDocumentInfoItemsDefaultValues + class ReceivedDocumentInfoItemsDefaultValues < ApiModelBase # Vat default value attr_accessor :vat diff --git a/lib/fattureincloud_ruby_sdk/models/received_document_items_list_item.rb b/lib/fattureincloud_ruby_sdk/models/received_document_items_list_item.rb index 80f9f4c7..d74b6f3e 100644 --- a/lib/fattureincloud_ruby_sdk/models/received_document_items_list_item.rb +++ b/lib/fattureincloud_ruby_sdk/models/received_document_items_list_item.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ReceivedDocumentItemsListItem + class ReceivedDocumentItemsListItem < ApiModelBase # Received document item id attr_accessor :id @@ -44,6 +44,9 @@ class ReceivedDocumentItemsListItem # Received document item product number of items in stock attr_accessor :stock + # Received document item deductibility vat percentage + attr_accessor :deductibility_vat_percentage + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -56,7 +59,8 @@ def self.attribute_map :'category' => :'category', :'qty' => :'qty', :'vat' => :'vat', - :'stock' => :'stock' + :'stock' => :'stock', + :'deductibility_vat_percentage' => :'deductibility_vat_percentage' } end @@ -82,7 +86,8 @@ def self.openapi_types :'category' => :'String', :'qty' => :'Float', :'vat' => :'VatType', - :'stock' => :'Float' + :'stock' => :'Float', + :'deductibility_vat_percentage' => :'Float' } end @@ -98,7 +103,8 @@ def self.openapi_nullable :'category', :'qty', :'vat', - :'stock' + :'stock', + :'deductibility_vat_percentage' ]) end @@ -157,6 +163,10 @@ def initialize(attributes = {}) if attributes.key?(:'stock') self.stock = attributes[:'stock'] end + + if attributes.key?(:'deductibility_vat_percentage') + self.deductibility_vat_percentage = attributes[:'deductibility_vat_percentage'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -188,7 +198,8 @@ def ==(o) category == o.category && qty == o.qty && vat == o.vat && - stock == o.stock + stock == o.stock && + deductibility_vat_percentage == o.deductibility_vat_percentage end # @see the `==` method @@ -200,7 +211,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, product_id, code, name, measure, net_price, category, qty, vat, stock].hash + [id, product_id, code, name, measure, net_price, category, qty, vat, stock, deductibility_vat_percentage].hash end # Builds the object from hash diff --git a/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item.rb b/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item.rb index dc3fb40c..389826e8 100644 --- a/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item.rb +++ b/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ReceivedDocumentPaymentsListItem + class ReceivedDocumentPaymentsListItem < ApiModelBase # Received document payment id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item_payment_terms.rb b/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item_payment_terms.rb index d71d6b7b..82c06b84 100644 --- a/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item_payment_terms.rb +++ b/lib/fattureincloud_ruby_sdk/models/received_document_payments_list_item_payment_terms.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ReceivedDocumentPaymentsListItemPaymentTerms + class ReceivedDocumentPaymentsListItemPaymentTerms < ApiModelBase # Received document payment number of days by which the payment must be made attr_accessor :days diff --git a/lib/fattureincloud_ruby_sdk/models/received_document_totals.rb b/lib/fattureincloud_ruby_sdk/models/received_document_totals.rb index 8d8a2049..67df8b1e 100644 --- a/lib/fattureincloud_ruby_sdk/models/received_document_totals.rb +++ b/lib/fattureincloud_ruby_sdk/models/received_document_totals.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class ReceivedDocumentTotals + class ReceivedDocumentTotals < ApiModelBase # Received document total net amount attr_accessor :amount_net diff --git a/lib/fattureincloud_ruby_sdk/models/received_document_type.rb b/lib/fattureincloud_ruby_sdk/models/received_document_type.rb index d61cd47a..a032190a 100644 --- a/lib/fattureincloud_ruby_sdk/models/received_document_type.rb +++ b/lib/fattureincloud_ruby_sdk/models/received_document_type.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/schedule_email_request.rb b/lib/fattureincloud_ruby_sdk/models/schedule_email_request.rb index 6a3761b5..e147286c 100644 --- a/lib/fattureincloud_ruby_sdk/models/schedule_email_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/schedule_email_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -15,7 +15,7 @@ module FattureInCloud_Ruby_Sdk # - class ScheduleEmailRequest + class ScheduleEmailRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request.rb b/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request.rb index 2d2f210a..3575c6ff 100644 --- a/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class SendEInvoiceRequest + class SendEInvoiceRequest < ApiModelBase attr_accessor :data attr_accessor :options diff --git a/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_data.rb b/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_data.rb index 48f266d9..f41c1861 100644 --- a/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_data.rb +++ b/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_data.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class SendEInvoiceRequestData + class SendEInvoiceRequestData < ApiModelBase # Value of TipoCassa used (optional, override the company default value). attr_accessor :cassa_type diff --git a/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_options.rb b/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_options.rb index 58acc77c..92c635c8 100644 --- a/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_options.rb +++ b/lib/fattureincloud_ruby_sdk/models/send_e_invoice_request_options.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class SendEInvoiceRequestOptions + class SendEInvoiceRequestOptions < ApiModelBase # If set to true the e-invoice will not be sent to the SDI. attr_accessor :dry_run diff --git a/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response.rb b/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response.rb index 76f64089..e34f9e76 100644 --- a/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class SendEInvoiceResponse + class SendEInvoiceResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response_data.rb b/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response_data.rb index 5291a9be..d622efa7 100644 --- a/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response_data.rb +++ b/lib/fattureincloud_ruby_sdk/models/send_e_invoice_response_data.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class SendEInvoiceResponseData + class SendEInvoiceResponseData < ApiModelBase # Response message. attr_accessor :name diff --git a/lib/fattureincloud_ruby_sdk/models/sender_email.rb b/lib/fattureincloud_ruby_sdk/models/sender_email.rb index 1c6b8fb7..de071cde 100644 --- a/lib/fattureincloud_ruby_sdk/models/sender_email.rb +++ b/lib/fattureincloud_ruby_sdk/models/sender_email.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class SenderEmail + class SenderEmail < ApiModelBase # Sender email id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/show_totals_mode.rb b/lib/fattureincloud_ruby_sdk/models/show_totals_mode.rb index 4ea506bb..3b557b87 100644 --- a/lib/fattureincloud_ruby_sdk/models/show_totals_mode.rb +++ b/lib/fattureincloud_ruby_sdk/models/show_totals_mode.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/supplier.rb b/lib/fattureincloud_ruby_sdk/models/supplier.rb index 612d95d4..8f6f687a 100644 --- a/lib/fattureincloud_ruby_sdk/models/supplier.rb +++ b/lib/fattureincloud_ruby_sdk/models/supplier.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class Supplier + class Supplier < ApiModelBase # Supplier id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/supplier_type.rb b/lib/fattureincloud_ruby_sdk/models/supplier_type.rb index 6c93d51a..277db11a 100644 --- a/lib/fattureincloud_ruby_sdk/models/supplier_type.rb +++ b/lib/fattureincloud_ruby_sdk/models/supplier_type.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/tax_profile.rb b/lib/fattureincloud_ruby_sdk/models/tax_profile.rb index db12ee4b..b3e975f9 100644 --- a/lib/fattureincloud_ruby_sdk/models/tax_profile.rb +++ b/lib/fattureincloud_ruby_sdk/models/tax_profile.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class TaxProfile + class TaxProfile < ApiModelBase # The company type attr_accessor :company_type diff --git a/lib/fattureincloud_ruby_sdk/models/template_type.rb b/lib/fattureincloud_ruby_sdk/models/template_type.rb new file mode 100644 index 00000000..d4b20cde --- /dev/null +++ b/lib/fattureincloud_ruby_sdk/models/template_type.rb @@ -0,0 +1,41 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'date' +require 'time' + +module FattureInCloud_Ruby_Sdk + class TemplateType + STANDARD = "standard".freeze + DELIVERY_NOTE = "delivery_note".freeze + ACCOMPANYING_INVOICE = "accompanying_invoice".freeze + + def self.all_vars + @all_vars ||= [STANDARD, DELIVERY_NOTE, ACCOMPANYING_INVOICE].freeze + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def self.build_from_hash(value) + new.build_from_hash(value) + end + + # Builds the enum from string + # @param [String] The enum value in the form of the string + # @return [String] The enum value + def build_from_hash(value) + return value if TemplateType.all_vars.include?(value) + raise "Invalid ENUM value #{value} for class #TemplateType" + end + end +end diff --git a/lib/fattureincloud_ruby_sdk/models/transform_issued_document_response.rb b/lib/fattureincloud_ruby_sdk/models/transform_issued_document_response.rb index 32eab18f..23e583ee 100644 --- a/lib/fattureincloud_ruby_sdk/models/transform_issued_document_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/transform_issued_document_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class TransformIssuedDocumentResponse + class TransformIssuedDocumentResponse < ApiModelBase attr_accessor :data attr_accessor :options diff --git a/lib/fattureincloud_ruby_sdk/models/upload_archive_attachment_response.rb b/lib/fattureincloud_ruby_sdk/models/upload_archive_attachment_response.rb index e9a093b9..b979258e 100644 --- a/lib/fattureincloud_ruby_sdk/models/upload_archive_attachment_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/upload_archive_attachment_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class UploadArchiveAttachmentResponse + class UploadArchiveAttachmentResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/upload_f24_attachment_response.rb b/lib/fattureincloud_ruby_sdk/models/upload_f24_attachment_response.rb index 35203dc7..139865bb 100644 --- a/lib/fattureincloud_ruby_sdk/models/upload_f24_attachment_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/upload_f24_attachment_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class UploadF24AttachmentResponse + class UploadF24AttachmentResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/upload_issued_document_attachment_response.rb b/lib/fattureincloud_ruby_sdk/models/upload_issued_document_attachment_response.rb index d2a096fb..f743a7f4 100644 --- a/lib/fattureincloud_ruby_sdk/models/upload_issued_document_attachment_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/upload_issued_document_attachment_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class UploadIssuedDocumentAttachmentResponse + class UploadIssuedDocumentAttachmentResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/upload_received_document_attachment_response.rb b/lib/fattureincloud_ruby_sdk/models/upload_received_document_attachment_response.rb index e13a604d..4b3d220f 100644 --- a/lib/fattureincloud_ruby_sdk/models/upload_received_document_attachment_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/upload_received_document_attachment_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class UploadReceivedDocumentAttachmentResponse + class UploadReceivedDocumentAttachmentResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/user.rb b/lib/fattureincloud_ruby_sdk/models/user.rb index b3f22eb0..3aa572a4 100644 --- a/lib/fattureincloud_ruby_sdk/models/user.rb +++ b/lib/fattureincloud_ruby_sdk/models/user.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class User + class User < ApiModelBase # User id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/user_company_role.rb b/lib/fattureincloud_ruby_sdk/models/user_company_role.rb index 01d6e733..d3ce5714 100644 --- a/lib/fattureincloud_ruby_sdk/models/user_company_role.rb +++ b/lib/fattureincloud_ruby_sdk/models/user_company_role.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/vat_item.rb b/lib/fattureincloud_ruby_sdk/models/vat_item.rb index 722cbf7c..36f284c7 100644 --- a/lib/fattureincloud_ruby_sdk/models/vat_item.rb +++ b/lib/fattureincloud_ruby_sdk/models/vat_item.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class VatItem + class VatItem < ApiModelBase # Vat item net amount attr_accessor :amount_net diff --git a/lib/fattureincloud_ruby_sdk/models/vat_kind.rb b/lib/fattureincloud_ruby_sdk/models/vat_kind.rb index 6bb4fe8d..0c5e07ac 100644 --- a/lib/fattureincloud_ruby_sdk/models/vat_kind.rb +++ b/lib/fattureincloud_ruby_sdk/models/vat_kind.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/vat_type.rb b/lib/fattureincloud_ruby_sdk/models/vat_type.rb index 2028fe7c..1a103bc5 100644 --- a/lib/fattureincloud_ruby_sdk/models/vat_type.rb +++ b/lib/fattureincloud_ruby_sdk/models/vat_type.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class VatType + class VatType < ApiModelBase # Vat type id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response.rb b/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response.rb index 668e663a..e2d02cb3 100644 --- a/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class VerifyEInvoiceXmlErrorResponse + class VerifyEInvoiceXmlErrorResponse < ApiModelBase attr_accessor :error attr_accessor :extra diff --git a/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error.rb b/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error.rb index 6761f8c5..c9a665af 100644 --- a/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error.rb +++ b/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class VerifyEInvoiceXmlErrorResponseError + class VerifyEInvoiceXmlErrorResponseError < ApiModelBase attr_accessor :message attr_accessor :validation_result diff --git a/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error_validation_result.rb b/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error_validation_result.rb index 3e4e4743..ad9f08fb 100644 --- a/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error_validation_result.rb +++ b/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_error_validation_result.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class VerifyEInvoiceXmlErrorResponseErrorValidationResult + class VerifyEInvoiceXmlErrorResponseErrorValidationResult < ApiModelBase attr_accessor :xml_errors # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_extra.rb b/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_extra.rb index c945b18e..7aff2c04 100644 --- a/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_extra.rb +++ b/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_error_response_extra.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class VerifyEInvoiceXmlErrorResponseExtra + class VerifyEInvoiceXmlErrorResponseExtra < ApiModelBase attr_accessor :errors # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response.rb b/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response.rb index d9eb4c76..605060e8 100644 --- a/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response.rb +++ b/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class VerifyEInvoiceXmlResponse + class VerifyEInvoiceXmlResponse < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response_data.rb b/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response_data.rb index 25d01584..7e68f047 100644 --- a/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response_data.rb +++ b/lib/fattureincloud_ruby_sdk/models/verify_e_invoice_xml_response_data.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class VerifyEInvoiceXmlResponseData + class VerifyEInvoiceXmlResponseData < ApiModelBase # Determine if the invoice XML is valid. attr_accessor :success diff --git a/lib/fattureincloud_ruby_sdk/models/verify_webhooks_subscription.rb b/lib/fattureincloud_ruby_sdk/models/verify_webhooks_subscription.rb index b9bfe972..e2bbcd9e 100644 --- a/lib/fattureincloud_ruby_sdk/models/verify_webhooks_subscription.rb +++ b/lib/fattureincloud_ruby_sdk/models/verify_webhooks_subscription.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class VerifyWebhooksSubscription + class VerifyWebhooksSubscription < ApiModelBase # Webhooks subscription id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/verify_webhooks_subscription_request.rb b/lib/fattureincloud_ruby_sdk/models/verify_webhooks_subscription_request.rb index b250cdf4..0fc729f3 100644 --- a/lib/fattureincloud_ruby_sdk/models/verify_webhooks_subscription_request.rb +++ b/lib/fattureincloud_ruby_sdk/models/verify_webhooks_subscription_request.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class VerifyWebhooksSubscriptionRequest + class VerifyWebhooksSubscriptionRequest < ApiModelBase attr_accessor :data # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/fattureincloud_ruby_sdk/models/webhooks_subscription.rb b/lib/fattureincloud_ruby_sdk/models/webhooks_subscription.rb index 047e991d..65a58917 100644 --- a/lib/fattureincloud_ruby_sdk/models/webhooks_subscription.rb +++ b/lib/fattureincloud_ruby_sdk/models/webhooks_subscription.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class WebhooksSubscription + class WebhooksSubscription < ApiModelBase # Webhooks subscription id attr_accessor :id diff --git a/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_config.rb b/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_config.rb index 10af2dc9..5d317b3d 100644 --- a/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_config.rb +++ b/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_config.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end @@ -14,7 +14,7 @@ require 'time' module FattureInCloud_Ruby_Sdk - class WebhooksSubscriptionConfig + class WebhooksSubscriptionConfig < ApiModelBase attr_accessor :mapping class EnumAttributeValidator diff --git a/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_mapping.rb b/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_mapping.rb index 7808f69f..6f30185f 100644 --- a/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_mapping.rb +++ b/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_mapping.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_verification_method.rb b/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_verification_method.rb index 616e2c43..ab31e283 100644 --- a/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_verification_method.rb +++ b/lib/fattureincloud_ruby_sdk/models/webhooks_subscription_verification_method.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end diff --git a/lib/fattureincloud_ruby_sdk/version.rb b/lib/fattureincloud_ruby_sdk/version.rb index dbe6fedc..26bf294e 100644 --- a/lib/fattureincloud_ruby_sdk/version.rb +++ b/lib/fattureincloud_ruby_sdk/version.rb @@ -3,13 +3,13 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end module FattureInCloud_Ruby_Sdk - VERSION = '2.1.2' + VERSION = '2.1.3' end diff --git a/sdk-version.yaml b/sdk-version.yaml index 16565b6b..f82ddaa2 100644 --- a/sdk-version.yaml +++ b/sdk-version.yaml @@ -1,2 +1,2 @@ info: - version: 2.1.2 + version: 2.1.3 diff --git a/spec/api/companies_api_spec.rb b/spec/api/companies_api_spec.rb index cbcae892..456ac1d8 100644 --- a/spec/api/companies_api_spec.rb +++ b/spec/api/companies_api_spec.rb @@ -21,7 +21,7 @@ # run before each test @api_instance = FattureInCloud_Ruby_Sdk::CompaniesApi.new - @get_company_info_response_obj = { "data": { "id": 12345, "name": "Studio Commercialista", "email": "mario.rossi@example.com", "type": "accountant", "fic": true, "fic_plan_name": "premium_plus", "fic_signup_date": "2013-11-01", "fic_license_expire": "2030-12-31", "use_fic": true, "fic_need_setup": false, "fic_license_type": "coupon_b", "dic": true, "dic_plan_name": "trial", "dic_signup_date": "2018-03-26", "dic_license_expire": "2022-12-31", "use_dic": true, "dic_license_type": nil, "registration_service": "fic", "can_use_coupon": false, "access_info": { "role": "master", "through_accountant": false, "permissions": { "fic_situation": "read", "fic_clients": "write", "fic_suppliers": "write", "fic_products": "write", "fic_issued_documents": "detailed", "fic_issued_documents_detailed": { "quotes": "write", "proformas": "write", "invoices": "write", "receipts": "write", "delivery_notes": "write", "credit_notes": "write", "orders": "write", "work_reports": "write", "supplier_orders": "write", "self_invoices": "write" }, "fic_received_documents": "write", "fic_receipts": "write", "fic_calendar": "write", "fic_archive": "write", "fic_taxes": "write", "fic_stock": "write", "fic_cashbook": "write", "fic_settings": "write", "fic_emails": "read", "dic_employees": "none", "dic_timesheet": "none", "dic_settings": "none", "fic_invoice_trading": "none", "fic_export": "write", "fic_import_clients_suppliers": "write", "fic_import_products": "write", "fic_import_issued_documents": "none", "fic_import_bankstatements": "none", "fic_recurring": "write", "fic_riba": "write" } }, "plan_info": { "limits": { "clients": 5000, "suppliers": 5000, "products": 5000, "documents": 3000 }, "functions": { "document_attachments": true, "archive": true, "payment_notifications": true, "paypal": true, "receipts": true, "e_invoice": true, "genius": true, "stock": true, "smtp": true, "mail_tracking": true, "subaccounts": true, "tessera_sanitaria": true, "recurring": true, "sofort": false, "cerved": true, "ts_digital": true, "ts_pay": true, "ts_invoice_trading": true }, "functions_status": { "ts_digital": { "active": true }, "ts_pay": { "active": true } } }, "is_accountant": true, "accountant_id": 12345, "fic_payment_subject": "client", "dic_payment_subject": "client" } } + @get_company_info_response_obj = { "data": { "id": 12345, "name": "Studio Commercialista", "email": "mario.rossi@example.com", "type": "accountant", "fic": true, "fic_plan_name": "premium_plus", "fic_signup_date": "2013-11-01", "fic_license_expire": "2030-12-31", "use_fic": true, "fic_need_setup": false, "fic_license_type": "coupon_b", "dic": true, "dic_plan_name": "trial", "dic_signup_date": "2018-03-26", "dic_license_expire": "2022-12-31", "use_dic": true, "dic_license_type": nil, "registration_service": "fic", "can_use_coupon": false, "access_info": { "role": "master", "through_accountant": false, "permissions": { "fic_situation": "read", "fic_clients": "write", "fic_suppliers": "write", "fic_products": "write", "fic_issued_documents": "detailed", "fic_issued_documents_detailed": { "quotes": "write", "proformas": "write", "invoices": "write", "receipts": "write", "delivery_notes": "write", "credit_notes": "write", "orders": "write", "work_reports": "write", "supplier_orders": "write", "self_invoices": "write" }, "fic_received_documents": "write", "fic_receipts": "write", "fic_calendar": "write", "fic_archive": "write", "fic_taxes": "write", "fic_stock": "write", "fic_cashbook": "write", "fic_settings": "write", "fic_emails": "read", "dic_employees": "none", "dic_timesheet": "none", "dic_settings": "none", "fic_invoice_trading": "none", "fic_export": "write", "fic_import_clients_suppliers": "write", "fic_import_products": "write", "fic_import_issued_documents": "none", "fic_import_bankstatements": "none", "fic_recurring": "write", "fic_riba": "write" } }, "plan_info": { "limits": { "clients": 5000, "suppliers": 5000, "products": 5000, "documents": 3000 }, "functions": { "document_attachments": true, "archive": true, "payment_notifications": true, "paypal": true, "receipts": true, "e_invoice": true, "genius": true, "stock": true, "smtp": true, "mail_tracking": true, "subaccounts": true, "tessera_sanitaria": true, "recurring": true, "cerved": true, "ts_digital": true, "ts_pay": true, "ts_invoice_trading": true }, "functions_status": { "ts_digital": { "active": true }, "ts_pay": { "active": true } } }, "is_accountant": true, "accountant_id": 12345, "fic_payment_subject": "client", "dic_payment_subject": "client" } } allow(@api_instance).to receive(:get_company_info) { @get_company_info_response_obj } end diff --git a/spec/api/info_api_spec.rb b/spec/api/info_api_spec.rb index 24972277..92ebaff9 100644 --- a/spec/api/info_api_spec.rb +++ b/spec/api/info_api_spec.rb @@ -61,7 +61,7 @@ allow(@api_instance).to receive(:list_revenue_centers) { @list_revenue_centers_response_obj } @list_templates_response_obj = { "data": [{ "id": 10, "name": "New Standard S1" }, { "id": 106, "name": "Minimalist" }] } - allow(@api_instance).to receive(:list_templates) { @list_templates_response_obj } + allow(@api_instance).to receive(:list_default_templates) { @list_templates_response_obj } @list_units_of_measure_response_obj = { "data": ["pezzi", "kg", "litri", "ore", "giorni", "km", "mesi"] } allow(@api_instance).to receive(:list_units_of_measure) { @list_units_of_measure_response_obj } @@ -304,16 +304,16 @@ end end - # unit tests for list_templates - # List Templates - # Lists the available templates. + # unit tests for list_default_templates + # List Default Templates + # Lists the available default templates. # @param [Hash] opts the optional parameters # @option opts [String] :type Type of the templates. # @option opts [Boolean] :by_type [Only if type=all] If true, splits the list in objects, grouping templates by type. # @return [ListTemplatesResponse] - describe 'list_templates test' do + describe 'list_default_templates test' do it 'should work' do - response = @api_instance.list_templates(2) + response = @api_instance.list_default_templates(2) response_obj = JSON.parse(response.to_json, object_class: OpenStruct) expected_json = @list_templates_response_obj.to_json actual_json = response.to_json diff --git a/spec/api/price_lists_api_spec.rb b/spec/api/price_lists_api_spec.rb index ba9504ba..ef57c898 100644 --- a/spec/api/price_lists_api_spec.rb +++ b/spec/api/price_lists_api_spec.rb @@ -48,12 +48,12 @@ # @return [GetPriceListItemsResponse] describe 'get_price_list_items test' do it 'should work' do - response = @api_instance.get_price_list_items(2, '10') - response_obj = JSON.parse(response.to_json, object_class: OpenStruct) - expected_json = @get_price_list_items_response_obj.to_json - actual_json = response.to_json + response = @api_instance.get_price_list_items(2, '10') + response_obj = JSON.parse(response.to_json, object_class: OpenStruct) + expected_json = @get_price_list_items_response_obj.to_json + actual_json = response.to_json - expect(actual_json).to eq(expected_json) + expect(actual_json).to eq(expected_json) end end diff --git a/spec/models/attachment_spec.rb b/spec/models/attachment_spec.rb new file mode 100644 index 00000000..76a62772 --- /dev/null +++ b/spec/models/attachment_spec.rb @@ -0,0 +1,93 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FattureInCloud_Ruby_Sdk::Attachment +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FattureInCloud_Ruby_Sdk::Attachment do + instance = FattureInCloud_Ruby_Sdk::Attachment.new + instance.filename = "fattura.pdf" + instance.attachment = File.new(__FILE__) + + describe 'test an instance of Attachment' do + it 'should create an instance of Attachment' do + expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::Attachment) + end + end + + describe 'test attribute "filename"' do + it 'should work' do + expect(instance.filename).to be_a_kind_of(String) + end + end + + describe 'test attribute "attachment"' do + it 'should work' do + expect(instance.attachment).to be_a_kind_of(File) + end + end + + describe 'test nullable "filename"' do + it 'should allow nil value' do + instance2 = FattureInCloud_Ruby_Sdk::Attachment.new(filename: nil) + expect(instance2.filename).to be_nil + end + end + + describe 'test equality' do + it 'should be equal to another instance with same attributes' do + other = FattureInCloud_Ruby_Sdk::Attachment.new + other.filename = "fattura.pdf" + other.attachment = instance.attachment + expect(instance).to eq(other) + end + + it 'should not be equal to another instance with different attributes' do + other = FattureInCloud_Ruby_Sdk::Attachment.new + other.filename = "altro.pdf" + expect(instance).not_to eq(other) + end + end + + describe 'test hash' do + it 'should return a hash code' do + expect(instance.hash).to be_a_kind_of(Integer) + end + end + + describe 'test build_from_hash' do + it 'should build an instance from a hash' do + built = FattureInCloud_Ruby_Sdk::Attachment.build_from_hash({ filename: "test.pdf" }) + expect(built).to be_instance_of(FattureInCloud_Ruby_Sdk::Attachment) + expect(built.filename).to eq("test.pdf") + end + + it 'should return nil for non-hash input' do + expect(FattureInCloud_Ruby_Sdk::Attachment.build_from_hash(nil)).to be_nil + end + end + + describe 'test initialize with invalid attributes' do + it 'should raise error for non-hash input' do + expect { FattureInCloud_Ruby_Sdk::Attachment.new("invalid") }.to raise_error(ArgumentError) + end + + it 'should raise error for unknown attribute' do + expect { FattureInCloud_Ruby_Sdk::Attachment.new(unknown_attr: "value") }.to raise_error(ArgumentError) + end + end + +end diff --git a/spec/models/company_info_plan_info_functions_spec.rb b/spec/models/company_info_plan_info_functions_spec.rb index 926b1218..d8648ff9 100644 --- a/spec/models/company_info_plan_info_functions_spec.rb +++ b/spec/models/company_info_plan_info_functions_spec.rb @@ -32,7 +32,6 @@ instance.subaccounts = true instance.tessera_sanitaria = true instance.recurring = true - instance.sofort = false instance.cerved = true instance.ts_digital = true instance.ts_pay = true @@ -108,12 +107,6 @@ end end - describe 'test attribute "sofort"' do - it 'should work' do - expect(instance.sofort).to be(true).or be(false) - end - end - describe 'test attribute "stock"' do it 'should work' do expect(instance.stock).to be(true).or be(false) diff --git a/spec/models/company_info_plan_info_spec.rb b/spec/models/company_info_plan_info_spec.rb index f2326cfa..90d07dc8 100644 --- a/spec/models/company_info_plan_info_spec.rb +++ b/spec/models/company_info_plan_info_spec.rb @@ -39,7 +39,6 @@ subaccounts: true, tessera_sanitaria: true, recurring: true, - sofort: false, cerved: true, ts_digital: true, ts_pay: true, diff --git a/spec/models/company_info_spec.rb b/spec/models/company_info_spec.rb index 4b6fd3bb..fd904ca7 100644 --- a/spec/models/company_info_spec.rb +++ b/spec/models/company_info_spec.rb @@ -89,7 +89,6 @@ subaccounts: true, tessera_sanitaria: true, recurring: true, - sofort: false, cerved: true, ts_digital: true, ts_pay: true, diff --git a/spec/models/entity_client_pre_create_info_spec.rb b/spec/models/entity_client_pre_create_info_spec.rb index ae211350..a7c9a497 100644 --- a/spec/models/entity_client_pre_create_info_spec.rb +++ b/spec/models/entity_client_pre_create_info_spec.rb @@ -80,43 +80,43 @@ describe 'test attribute "countries_list"' do it 'should work' do - expect(instance.countries_list).to be_a_kind_of(Array) + expect(instance.countries_list).to be_a_kind_of(Array) end end describe 'test attribute "payment_methods_list"' do it 'should work' do - expect(instance.payment_methods_list).to be_a_kind_of(Array) + expect(instance.payment_methods_list).to be_a_kind_of(Array) end end describe 'test attribute "payment_accounts_list"' do it 'should work' do - expect(instance.payment_accounts_list).to be_a_kind_of(Array) + expect(instance.payment_accounts_list).to be_a_kind_of(Array) end end describe 'test attribute "vat_types_list"' do it 'should work' do - expect(instance.vat_types_list).to be_a_kind_of(Array) + expect(instance.vat_types_list).to be_a_kind_of(Array) end end describe 'test attribute "price_lists"' do it 'should work' do - expect(instance.price_lists).to be_a_kind_of(Array) + expect(instance.price_lists).to be_a_kind_of(Array) end end describe 'test attribute "limit"' do it 'should work' do - expect(instance.limit).to be_a_kind_of(Numeric) + expect(instance.limit).to be_a_kind_of(Numeric) end end describe 'test attribute "usage"' do it 'should work' do - expect(instance.limit).to be_a_kind_of(Numeric) + expect(instance.limit).to be_a_kind_of(Numeric) end end diff --git a/spec/models/get_bin_issued_document_response_spec.rb b/spec/models/get_bin_issued_document_response_spec.rb index 5ff9479a..c327e639 100644 --- a/spec/models/get_bin_issued_document_response_spec.rb +++ b/spec/models/get_bin_issued_document_response_spec.rb @@ -138,7 +138,7 @@ describe 'test attribute "data"' do it 'should work' do - expect(instance.data).to be_a_kind_of(Object) + expect(instance.data).to be_a_kind_of(Object) end end diff --git a/spec/models/get_bin_received_document_response_spec.rb b/spec/models/get_bin_received_document_response_spec.rb index b59f0511..5c556b39 100644 --- a/spec/models/get_bin_received_document_response_spec.rb +++ b/spec/models/get_bin_received_document_response_spec.rb @@ -19,54 +19,54 @@ # Please update as you see appropriate describe FattureInCloud_Ruby_Sdk::GetBinReceivedDocumentResponse do instance = FattureInCloud_Ruby_Sdk::GetBinReceivedDocumentResponse.new - instance.data = { - id: 12345, - type: 'expense', - description: 'Soggiorno di lavoro', - amortization: 1, - rc_center: '', - invoice_number: '', - is_marked: false, - is_detailed: false, - e_invoice: false, - entity: { - id: 111, - name: 'Hotel Rubino Palace' - }, - date: '2021-08-15', - next_due_date: '2021-08-15', - currency: { - id: 'EUR', - exchange_rate: '1.00000', - symbol: '€' - }, - amount_net: 592, - amount_vat: 0, - amount_gross: 592, - amount_withholding_tax: 0, - amount_other_withholding_tax: 0, - tax_deductibility: 50, - vat_deductibility: 100, - payments_list: [ - { - amount: 592, - due_date: '2021-08-15', - paid_date: '2021-08-15', - id: 777, - payment_terms: { - days: 0, - type: 'standard' - }, - status: 'paid', - payment_account: { - id: 222, - name: 'Contanti', - virtual: false - } + instance.data = { + id: 12345, + type: 'expense', + description: 'Soggiorno di lavoro', + amortization: 1, + rc_center: '', + invoice_number: '', + is_marked: false, + is_detailed: false, + e_invoice: false, + entity: { + id: 111, + name: 'Hotel Rubino Palace' + }, + date: '2021-08-15', + next_due_date: '2021-08-15', + currency: { + id: 'EUR', + exchange_rate: '1.00000', + symbol: '€' + }, + amount_net: 592, + amount_vat: 0, + amount_gross: 592, + amount_withholding_tax: 0, + amount_other_withholding_tax: 0, + tax_deductibility: 50, + vat_deductibility: 100, + payments_list: [ + { + amount: 592, + due_date: '2021-08-15', + paid_date: '2021-08-15', + id: 777, + payment_terms: { + days: 0, + type: 'standard' + }, + status: 'paid', + payment_account: { + id: 222, + name: 'Contanti', + virtual: false } - ], - attachment_url: 'spesa_ger5i783t45hu6ti.pdf' - } + } + ], + attachment_url: 'spesa_ger5i783t45hu6ti.pdf' + } describe 'test an instance of GetBinReceivedDocumentResponse' do it 'should create an instance of GetBinReceivedDocumentResponse' do @@ -76,7 +76,7 @@ describe 'test attribute "data"' do it 'should work' do - expect(instance.data).to be_a_kind_of(Object) + expect(instance.data).to be_a_kind_of(Object) end end diff --git a/spec/models/get_company_info_response_spec.rb b/spec/models/get_company_info_response_spec.rb index 912deea9..b4522f11 100644 --- a/spec/models/get_company_info_response_spec.rb +++ b/spec/models/get_company_info_response_spec.rb @@ -88,7 +88,6 @@ subaccounts: true, tessera_sanitaria: true, recurring: true, - sofort: false, cerved: true, ts_digital: true, ts_pay: true, diff --git a/spec/models/get_entity_client_pre_create_info_response_spec.rb b/spec/models/get_entity_client_pre_create_info_response_spec.rb index f02a06dc..598483aa 100644 --- a/spec/models/get_entity_client_pre_create_info_response_spec.rb +++ b/spec/models/get_entity_client_pre_create_info_response_spec.rb @@ -19,57 +19,57 @@ # Please update as you see appropriate describe FattureInCloud_Ruby_Sdk::GetEntityClientPreCreateInfoResponse do instance = FattureInCloud_Ruby_Sdk::GetEntityClientPreCreateInfoResponse.new - instance.data = { - countries_list: [ - 'Italy' - ], - payment_methods_list: [ - { - id: 555, - name: 'Rimessa diretta', - is_default: false, - details: [], - } - ], - payment_accounts_list: [ - { - id: 0, - name: 'Conto Banca Intesa', - type: 'standard', - iban: 'string', - sia: 'string', - cuc: 'string', - virtual: true - } - ], - vat_types_list: [ - { - id: 0, - value: 22, - description: 'Non imponibile art. 123', - notes: 'IVA non imponibile ai sensi dell\'articolo 123, comma 2', - e_invoice: true, - ei_type: '2', - ei_description: 'string', - editable: true, - is_disabled: true, - default: true - } - ], - price_lists: [ - { - id: 'string', - name: '123', - prices_type: 'net', - is_default: true, - valid_from: 'string', - valid_to: 'string', - type: 'sell' - } - ], - limit: 10, - usage: 10 - } + instance.data = { + countries_list: [ + 'Italy' + ], + payment_methods_list: [ + { + id: 555, + name: 'Rimessa diretta', + is_default: false, + details: [], + } + ], + payment_accounts_list: [ + { + id: 0, + name: 'Conto Banca Intesa', + type: 'standard', + iban: 'string', + sia: 'string', + cuc: 'string', + virtual: true + } + ], + vat_types_list: [ + { + id: 0, + value: 22, + description: 'Non imponibile art. 123', + notes: 'IVA non imponibile ai sensi dell\'articolo 123, comma 2', + e_invoice: true, + ei_type: '2', + ei_description: 'string', + editable: true, + is_disabled: true, + default: true + } + ], + price_lists: [ + { + id: 'string', + name: '123', + prices_type: 'net', + is_default: true, + valid_from: 'string', + valid_to: 'string', + type: 'sell' + } + ], + limit: 10, + usage: 10 + } describe 'test an instance of GetEntityClientPreCreateInfoResponse' do it 'should create an instance of GetEntityClientPreCreateInfoResponse' do @@ -79,7 +79,7 @@ describe 'test attribute "data"' do it 'should work' do - expect(instance.data).to be_a_kind_of(Object) + expect(instance.data).to be_a_kind_of(Object) end end diff --git a/spec/models/get_pending_received_document_response_spec.rb b/spec/models/get_pending_received_document_response_spec.rb new file mode 100644 index 00000000..c539bb56 --- /dev/null +++ b/spec/models/get_pending_received_document_response_spec.rb @@ -0,0 +1,36 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FattureInCloud_Ruby_Sdk::GetPendingReceivedDocumentResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FattureInCloud_Ruby_Sdk::GetPendingReceivedDocumentResponse do + # let(:instance) { FattureInCloud_Ruby_Sdk::GetPendingReceivedDocumentResponse.new } + + describe 'test an instance of GetPendingReceivedDocumentResponse' do + it 'should create an instance of GetPendingReceivedDocumentResponse' do + # uncomment below to test the instance creation + # expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::GetPendingReceivedDocumentResponse) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/spec/models/get_price_list_items_response_spec.rb b/spec/models/get_price_list_items_response_spec.rb index e4e7d673..0cc95336 100644 --- a/spec/models/get_price_list_items_response_spec.rb +++ b/spec/models/get_price_list_items_response_spec.rb @@ -36,7 +36,7 @@ describe 'test attribute "data"' do it 'should work' do - expect(instance.data).to be_a_kind_of(Hash) + expect(instance.data).to be_a_kind_of(Hash) end end end diff --git a/spec/models/get_templates_response_spec.rb b/spec/models/get_templates_response_spec.rb new file mode 100644 index 00000000..cdc1bfda --- /dev/null +++ b/spec/models/get_templates_response_spec.rb @@ -0,0 +1,36 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FattureInCloud_Ruby_Sdk::GetTemplatesResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FattureInCloud_Ruby_Sdk::GetTemplatesResponse do + # let(:instance) { FattureInCloud_Ruby_Sdk::GetTemplatesResponse.new } + + describe 'test an instance of GetTemplatesResponse' do + it 'should create an instance of GetTemplatesResponse' do + # uncomment below to test the instance creation + # expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::GetTemplatesResponse) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/spec/models/list_bin_issued_documents_spec.rb b/spec/models/list_bin_issued_documents_spec.rb index a2dba9de..d50528c5 100644 --- a/spec/models/list_bin_issued_documents_spec.rb +++ b/spec/models/list_bin_issued_documents_spec.rb @@ -48,7 +48,7 @@ describe 'test attribute "data"' do it 'should work' do - expect(instance.data).to be_a_kind_of(Array) + expect(instance.data).to be_a_kind_of(Array) end end diff --git a/spec/models/list_bin_received_documents_spec.rb b/spec/models/list_bin_received_documents_spec.rb index 1d1d81d3..4e9e2e24 100644 --- a/spec/models/list_bin_received_documents_spec.rb +++ b/spec/models/list_bin_received_documents_spec.rb @@ -19,108 +19,108 @@ # Please update as you see appropriate describe FattureInCloud_Ruby_Sdk::ListBinReceivedDocuments do instance = FattureInCloud_Ruby_Sdk::ListBinReceivedDocuments.new - instance.data = [ - { - id: 12345, - type: 'expense', - description: 'Soggiorno di lavoro', - amortization: 1, - rc_center: '', - invoice_number: '', - is_marked: false, - is_detailed: false, - e_invoice: false, - created_at: '2021-08-15 14:02:02', - updated_at: '2021-08-15 14:02:02', - entity: { - id: 111, - name: 'Hotel Rubino Palace' - }, - date: '2021-08-15', - next_due_date: '2021-08-15', - currency: { - id: 'EUR', - exchange_rate: '1.00000', - symbol: '€' - }, - amount_net: 592, - amount_vat: 0, - amount_gross: 592, - amount_withholding_tax: 0, - amount_other_withholding_tax: 0, - tax_deductibility: 50, - vat_deductibility: 100, - payments_list: [ - { - amount: 592, - due_date: '2021-08-15', - paid_date: '2021-08-15', - id: 777, - payment_terms: { - days: 0, - type: 'standard' - }, - status: 'paid', - payment_account: { - id: 222, - name: 'Contanti', - virtual: false - } + instance.data = [ + { + id: 12345, + type: 'expense', + description: 'Soggiorno di lavoro', + amortization: 1, + rc_center: '', + invoice_number: '', + is_marked: false, + is_detailed: false, + e_invoice: false, + created_at: '2021-08-15 14:02:02', + updated_at: '2021-08-15 14:02:02', + entity: { + id: 111, + name: 'Hotel Rubino Palace' + }, + date: '2021-08-15', + next_due_date: '2021-08-15', + currency: { + id: 'EUR', + exchange_rate: '1.00000', + symbol: '€' + }, + amount_net: 592, + amount_vat: 0, + amount_gross: 592, + amount_withholding_tax: 0, + amount_other_withholding_tax: 0, + tax_deductibility: 50, + vat_deductibility: 100, + payments_list: [ + { + amount: 592, + due_date: '2021-08-15', + paid_date: '2021-08-15', + id: 777, + payment_terms: { + days: 0, + type: 'standard' + }, + status: 'paid', + payment_account: { + id: 222, + name: 'Contanti', + virtual: false } - ], - attachment_url: 'spesa_ger5i783t45hu6ti.pdf', + } + ], + attachment_url: 'spesa_ger5i783t45hu6ti.pdf', + }, + { + id: 12346, + type: 'expense', + description: 'Assicurazione RCA', + amortization: 1, + rc_center: '', + invoice_number: '', + is_marked: false, + is_detailed: false, + e_invoice: false, + created_at: '2021-08-09 14:02:02', + updated_at: '2021-08-09 14:02:02', + entity: { + id: 89, + name: 'Indesa Assicurazioni S.P.A.' + }, + date: '2021-08-08', + next_due_date: '2021-08-08', + currency: { + id: 'EUR', + exchange_rate: '1.00000', + symbol: '€' }, - { - id: 12346, - type: 'expense', - description: 'Assicurazione RCA', - amortization: 1, - rc_center: '', - invoice_number: '', - is_marked: false, - is_detailed: false, - e_invoice: false, - created_at: '2021-08-09 14:02:02', - updated_at: '2021-08-09 14:02:02', - entity: { - id: 89, - name: 'Indesa Assicurazioni S.P.A.' - }, - date: '2021-08-08', - next_due_date: '2021-08-08', - currency: { - id: 'EUR', - exchange_rate: '1.00000', - symbol: '€' - }, - amount_net: 645.69, - amount_vat: 0, - amount_gross: 645.69, - amount_withholding_tax: 0, - amount_other_withholding_tax: 0, - tax_deductibility: 50, - vat_deductibility: 100, - payments_list: [ - { - amount: 645.69, - due_date: '2021-08-08', - paid_date: '2021-08-08', - id: 999, - payment_terms: { - days: 0, - type: 'standard' - }, - status: 'paid', - payment_account: { - id: 333, - name: 'Carta conto', - virtual: false - } + amount_net: 645.69, + amount_vat: 0, + amount_gross: 645.69, + amount_withholding_tax: 0, + amount_other_withholding_tax: 0, + tax_deductibility: 50, + vat_deductibility: 100, + payments_list: [ + { + amount: 645.69, + due_date: '2021-08-08', + paid_date: '2021-08-08', + id: 999, + payment_terms: { + days: 0, + type: 'standard' + }, + status: 'paid', + payment_account: { + id: 333, + name: 'Carta conto', + virtual: false } - ], - attachment_url: 'spesa_gjsd567e5hu6ti.pdf', - } - ] + } + ], + attachment_url: 'spesa_gjsd567e5hu6ti.pdf', + } +] describe 'test an instance of ListBinReceivedDocuments' do it 'should create an instance of ListBinReceivedDocuments' do @@ -130,7 +130,7 @@ describe 'test attribute "data"' do it 'should work' do - expect(instance.data).to be_a_kind_of(Array) + expect(instance.data).to be_a_kind_of(Array) end end diff --git a/spec/models/list_pending_received_documents_response_page_spec.rb b/spec/models/list_pending_received_documents_response_page_spec.rb new file mode 100644 index 00000000..af02fcd8 --- /dev/null +++ b/spec/models/list_pending_received_documents_response_page_spec.rb @@ -0,0 +1,36 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FattureInCloud_Ruby_Sdk::ListPendingReceivedDocumentsResponsePage +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FattureInCloud_Ruby_Sdk::ListPendingReceivedDocumentsResponsePage do + # let(:instance) { FattureInCloud_Ruby_Sdk::ListPendingReceivedDocumentsResponsePage.new } + + describe 'test an instance of ListPendingReceivedDocumentsResponsePage' do + it 'should create an instance of ListPendingReceivedDocumentsResponsePage' do + # uncomment below to test the instance creation + # expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::ListPendingReceivedDocumentsResponsePage) + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/spec/models/list_pending_received_documents_response_spec.rb b/spec/models/list_pending_received_documents_response_spec.rb new file mode 100644 index 00000000..24336146 --- /dev/null +++ b/spec/models/list_pending_received_documents_response_spec.rb @@ -0,0 +1,102 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FattureInCloud_Ruby_Sdk::ListPendingReceivedDocumentsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FattureInCloud_Ruby_Sdk::ListPendingReceivedDocumentsResponse do + # let(:instance) { FattureInCloud_Ruby_Sdk::ListPendingReceivedDocumentsResponse.new } + + describe 'test an instance of ListPendingReceivedDocumentsResponse' do + it 'should create an instance of ListPendingReceivedDocumentsResponse' do + # uncomment below to test the instance creation + # expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::ListPendingReceivedDocumentsResponse) + end + end + + describe 'test attribute "current_page"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "first_page_url"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "from"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "last_page"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "last_page_url"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "next_page_url"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "path"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "per_page"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "prev_page_url"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "to"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "total"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/spec/models/list_price_lists_response_spec.rb b/spec/models/list_price_lists_response_spec.rb index 57a0f779..5e6a1dc9 100644 --- a/spec/models/list_price_lists_response_spec.rb +++ b/spec/models/list_price_lists_response_spec.rb @@ -48,7 +48,7 @@ describe 'test attribute "data"' do it 'should work' do - expect(instance.data).to be_a_kind_of(Array) + expect(instance.data).to be_a_kind_of(Array) end end diff --git a/spec/models/pending_received_document_extracted_data_mining_spec.rb b/spec/models/pending_received_document_extracted_data_mining_spec.rb new file mode 100644 index 00000000..40e0b292 --- /dev/null +++ b/spec/models/pending_received_document_extracted_data_mining_spec.rb @@ -0,0 +1,36 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FattureInCloud_Ruby_Sdk::PendingReceivedDocumentExtractedDataMining +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FattureInCloud_Ruby_Sdk::PendingReceivedDocumentExtractedDataMining do + # let(:instance) { FattureInCloud_Ruby_Sdk::PendingReceivedDocumentExtractedDataMining.new } + + describe 'test an instance of PendingReceivedDocumentExtractedDataMining' do + it 'should create an instance of PendingReceivedDocumentExtractedDataMining' do + # uncomment below to test the instance creation + # expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::PendingReceivedDocumentExtractedDataMining) + end + end + + describe 'test attribute "save_entity"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/spec/models/pending_received_document_extracted_data_spec.rb b/spec/models/pending_received_document_extracted_data_spec.rb new file mode 100644 index 00000000..f74892ab --- /dev/null +++ b/spec/models/pending_received_document_extracted_data_spec.rb @@ -0,0 +1,36 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FattureInCloud_Ruby_Sdk::PendingReceivedDocumentExtractedData +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FattureInCloud_Ruby_Sdk::PendingReceivedDocumentExtractedData do + # let(:instance) { FattureInCloud_Ruby_Sdk::PendingReceivedDocumentExtractedData.new } + + describe 'test an instance of PendingReceivedDocumentExtractedData' do + it 'should create an instance of PendingReceivedDocumentExtractedData' do + # uncomment below to test the instance creation + # expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::PendingReceivedDocumentExtractedData) + end + end + + describe 'test attribute "mining"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/spec/models/pending_received_document_payments_list_item_payment_terms_spec.rb b/spec/models/pending_received_document_payments_list_item_payment_terms_spec.rb new file mode 100644 index 00000000..5d698735 --- /dev/null +++ b/spec/models/pending_received_document_payments_list_item_payment_terms_spec.rb @@ -0,0 +1,42 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FattureInCloud_Ruby_Sdk::PendingReceivedDocumentPaymentsListItemPaymentTerms +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FattureInCloud_Ruby_Sdk::PendingReceivedDocumentPaymentsListItemPaymentTerms do + # let(:instance) { FattureInCloud_Ruby_Sdk::PendingReceivedDocumentPaymentsListItemPaymentTerms.new } + + describe 'test an instance of PendingReceivedDocumentPaymentsListItemPaymentTerms' do + it 'should create an instance of PendingReceivedDocumentPaymentsListItemPaymentTerms' do + # uncomment below to test the instance creation + # expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::PendingReceivedDocumentPaymentsListItemPaymentTerms) + end + end + + describe 'test attribute "days"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/spec/models/pending_received_document_payments_list_item_spec.rb b/spec/models/pending_received_document_payments_list_item_spec.rb new file mode 100644 index 00000000..67962678 --- /dev/null +++ b/spec/models/pending_received_document_payments_list_item_spec.rb @@ -0,0 +1,72 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FattureInCloud_Ruby_Sdk::PendingReceivedDocumentPaymentsListItem +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FattureInCloud_Ruby_Sdk::PendingReceivedDocumentPaymentsListItem do + # let(:instance) { FattureInCloud_Ruby_Sdk::PendingReceivedDocumentPaymentsListItem.new } + + describe 'test an instance of PendingReceivedDocumentPaymentsListItem' do + it 'should create an instance of PendingReceivedDocumentPaymentsListItem' do + # uncomment below to test the instance creation + # expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::PendingReceivedDocumentPaymentsListItem) + end + end + + describe 'test attribute "amount"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "due_date"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "paid_date"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "payment_terms"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "status"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "paid_with_ts_pay"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "payment_account"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/spec/models/pending_received_document_spec.rb b/spec/models/pending_received_document_spec.rb new file mode 100644 index 00000000..5db70802 --- /dev/null +++ b/spec/models/pending_received_document_spec.rb @@ -0,0 +1,144 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FattureInCloud_Ruby_Sdk::PendingReceivedDocument +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FattureInCloud_Ruby_Sdk::PendingReceivedDocument do + # let(:instance) { FattureInCloud_Ruby_Sdk::PendingReceivedDocument.new } + + describe 'test an instance of PendingReceivedDocument' do + it 'should create an instance of PendingReceivedDocument' do + # uncomment below to test the instance creation + # expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::PendingReceivedDocument) + end + end + + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "date"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "subject"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "filename"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "attachment_url"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "amount_gross"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "currency"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "document_type"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "supplier_name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "cost_center"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "category"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "other_attachments"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "emssion_date"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "payments_list"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "amount_net"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "amount_vat"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "import_error"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "extracted_data"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/spec/models/pending_received_document_type_spec.rb b/spec/models/pending_received_document_type_spec.rb new file mode 100644 index 00000000..19e5cc2c --- /dev/null +++ b/spec/models/pending_received_document_type_spec.rb @@ -0,0 +1,30 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FattureInCloud_Ruby_Sdk::PendingReceivedDocumentType +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FattureInCloud_Ruby_Sdk::PendingReceivedDocumentType do + # let(:instance) { FattureInCloud_Ruby_Sdk::PendingReceivedDocumentType.new } + + describe 'test an instance of PendingReceivedDocumentType' do + it 'should create an instance of PendingReceivedDocumentType' do + # uncomment below to test the instance creation + # expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::PendingReceivedDocumentType) + end + end + +end diff --git a/spec/models/price_list_item_spec.rb b/spec/models/price_list_item_spec.rb index b910eaec..ac4123d2 100644 --- a/spec/models/price_list_item_spec.rb +++ b/spec/models/price_list_item_spec.rb @@ -29,7 +29,7 @@ describe 'test attribute "price"' do it 'should work' do - expect(instance.price).to be_a_kind_of(Float) + expect(instance.price).to be_a_kind_of(Float) end end diff --git a/spec/models/price_list_spec.rb b/spec/models/price_list_spec.rb index 6d069918..18f349d3 100644 --- a/spec/models/price_list_spec.rb +++ b/spec/models/price_list_spec.rb @@ -35,43 +35,43 @@ describe 'test attribute "id"' do it 'should work' do - expect(instance.id).to be_a_kind_of(String) + expect(instance.id).to be_a_kind_of(String) end end describe 'test attribute "name"' do it 'should work' do - expect(instance.name).to be_a_kind_of(String) + expect(instance.name).to be_a_kind_of(String) end end describe 'test attribute "prices_type"' do it 'should work' do - expect(instance.prices_type).to be_a_kind_of(String) + expect(instance.prices_type).to be_a_kind_of(String) end end describe 'test attribute "is_default"' do it 'should work' do - expect(instance.is_default).to be_a_kind_of(TrueClass) + expect(instance.is_default).to be_a_kind_of(TrueClass) end end describe 'test attribute "valid_from"' do it 'should work' do - expect(instance.valid_from).to be_a_kind_of(String) + expect(instance.valid_from).to be_a_kind_of(String) end end describe 'test attribute "valid_to"' do it 'should work' do - expect(instance.valid_to).to be_a_kind_of(String) + expect(instance.valid_to).to be_a_kind_of(String) end end describe 'test attribute "type"' do it 'should work' do - expect(instance.type).to be_a_kind_of(String) + expect(instance.type).to be_a_kind_of(String) end end diff --git a/spec/models/template_type_spec.rb b/spec/models/template_type_spec.rb new file mode 100644 index 00000000..91d38262 --- /dev/null +++ b/spec/models/template_type_spec.rb @@ -0,0 +1,30 @@ +=begin +#Fatture in Cloud API v2 - API Reference + +#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. + +The version of the OpenAPI document: 2.1.8 +Contact: info@fattureincloud.it +Generated by: https://openapi-generator.tech +Generator version: 7.20.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for FattureInCloud_Ruby_Sdk::TemplateType +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe FattureInCloud_Ruby_Sdk::TemplateType do + # let(:instance) { FattureInCloud_Ruby_Sdk::TemplateType.new } + + describe 'test an instance of TemplateType' do + it 'should create an instance of TemplateType' do + # uncomment below to test the instance creation + # expect(instance).to be_instance_of(FattureInCloud_Ruby_Sdk::TemplateType) + end + end + +end diff --git a/spec/models/verify_webhooks_subscription_spec.rb b/spec/models/verify_webhooks_subscription_spec.rb index 8d1d8cfb..1e9d63ee 100644 --- a/spec/models/verify_webhooks_subscription_spec.rb +++ b/spec/models/verify_webhooks_subscription_spec.rb @@ -30,13 +30,13 @@ describe 'test attribute "id"' do it 'should work' do - expect(instance.id).to be_a_kind_of(String) + expect(instance.id).to be_a_kind_of(String) end end describe 'test attribute "verification_method"' do it 'should work' do - expect(instance.verification_method).to be_a_kind_of(String) + expect(instance.verification_method).to be_a_kind_of(String) end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 00025e26..9af68ce9 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -3,10 +3,10 @@ #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. -The version of the OpenAPI document: 2.1.5 +The version of the OpenAPI document: 2.1.8 Contact: info@fattureincloud.it Generated by: https://openapi-generator.tech -Generator version: 7.12.0 +Generator version: 7.20.0 =end