Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -568,16 +568,4 @@ 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/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
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.20.0
7.24.0
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.4.gem
- gem install ./fattureincloud_ruby_sdk-2.1.5.gem
877 changes: 441 additions & 436 deletions README.md

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/SettingsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ All URIs are relative to *https://api-v2.fattureincloud.it*
| [**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 |
| [**list_templates**](SettingsApi.md#list_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 |
Expand Down Expand Up @@ -821,9 +821,9 @@ end
- **Accept**: application/json


## list_default_templates
## list_templates

> <ListTemplatesResponse> list_default_templates(company_id, opts)
> <ListTemplatesResponse> list_templates(company_id, opts)

List Templates

Expand All @@ -849,28 +849,28 @@ opts = {

begin
# List Templates
result = api_instance.list_default_templates(company_id, opts)
result = api_instance.list_templates(company_id, opts)
p result
rescue FattureInCloud_Ruby_Sdk::ApiError => e
puts "Error when calling SettingsApi->list_default_templates: #{e}"
puts "Error when calling SettingsApi->list_templates: #{e}"
end
```

#### Using the list_default_templates_with_http_info variant
#### Using the list_templates_with_http_info variant

This returns an Array which contains the response data, status code and headers.

> <Array(<ListTemplatesResponse>, Integer, Hash)> list_default_templates_with_http_info(company_id, opts)
> <Array(<ListTemplatesResponse>, Integer, Hash)> list_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)
data, status_code, headers = api_instance.list_templates_with_http_info(company_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <ListTemplatesResponse>
rescue FattureInCloud_Ruby_Sdk::ApiError => e
puts "Error when calling SettingsApi->list_default_templates_with_http_info: #{e}"
puts "Error when calling SettingsApi->list_templates_with_http_info: #{e}"
end
```

Expand Down
5 changes: 3 additions & 2 deletions fattureincloud_ruby_sdk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
The version of the OpenAPI document: 2.1.8
Contact: info@fattureincloud.it
Generated by: https://openapi-generator.tech
Generator version: 7.20.0
Generator version: 7.24.0
=end

$:.push File.expand_path("../lib", __FILE__)
Expand All @@ -32,7 +32,8 @@ Gem::Specification.new do |s|

s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'

s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec|scripts)/}) }
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
s.test_files = `find spec/*`.split("\n")
s.executables = []
s.require_paths = ["lib"]
end
4 changes: 2 additions & 2 deletions lib/fattureincloud_ruby_sdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
The version of the OpenAPI document: 2.1.8
Contact: info@fattureincloud.it
Generated by: https://openapi-generator.tech
Generator version: 7.20.0
Generator version: 7.24.0
=end

# Common files
require 'fattureincloud_ruby_sdk/api_client'
require 'fattureincloud_ruby_sdk/api_error'
require 'fattureincloud_ruby_sdk/api_model_base'
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'
Expand Down
14 changes: 7 additions & 7 deletions lib/fattureincloud_ruby_sdk/api/archive_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 2.1.8
Contact: info@fattureincloud.it
Generated by: https://openapi-generator.tech
Generator version: 7.20.0
Generator version: 7.24.0

=end

Expand Down Expand Up @@ -45,7 +45,7 @@ def create_archive_document_with_http_info(company_id, opts = {})
fail ArgumentError, "Missing the required parameter 'company_id' when calling ArchiveApi.create_archive_document"
end
# resource path
local_var_path = '/c/{company_id}/archive'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
local_var_path = '/c/{company_id}/archive'.sub('{company_id}', CGI.escape(company_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
Expand Down Expand Up @@ -119,7 +119,7 @@ def delete_archive_document_with_http_info(company_id, document_id, opts = {})
fail ArgumentError, "Missing the required parameter 'document_id' when calling ArchiveApi.delete_archive_document"
end
# resource path
local_var_path = '/c/{company_id}/archive/{document_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'document_id' + '}', CGI.escape(document_id.to_s))
local_var_path = '/c/{company_id}/archive/{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] || {}
Expand Down Expand Up @@ -196,7 +196,7 @@ def get_archive_document_with_http_info(company_id, document_id, opts = {})
fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/c/{company_id}/archive/{document_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'document_id' + '}', CGI.escape(document_id.to_s))
local_var_path = '/c/{company_id}/archive/{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] || {}
Expand Down Expand Up @@ -285,7 +285,7 @@ def list_archive_documents_with_http_info(company_id, opts = {})
end

# resource path
local_var_path = '/c/{company_id}/archive'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
local_var_path = '/c/{company_id}/archive'.sub('{company_id}', CGI.escape(company_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
Expand Down Expand Up @@ -362,7 +362,7 @@ def modify_archive_document_with_http_info(company_id, document_id, opts = {})
fail ArgumentError, "Missing the required parameter 'document_id' when calling ArchiveApi.modify_archive_document"
end
# resource path
local_var_path = '/c/{company_id}/archive/{document_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'document_id' + '}', CGI.escape(document_id.to_s))
local_var_path = '/c/{company_id}/archive/{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] || {}
Expand Down Expand Up @@ -434,7 +434,7 @@ def upload_archive_document_attachment_with_http_info(company_id, opts = {})
fail ArgumentError, "Missing the required parameter 'company_id' when calling ArchiveApi.upload_archive_document_attachment"
end
# resource path
local_var_path = '/c/{company_id}/archive/attachment'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
local_var_path = '/c/{company_id}/archive/attachment'.sub('{company_id}', CGI.escape(company_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
Expand Down
12 changes: 6 additions & 6 deletions lib/fattureincloud_ruby_sdk/api/cashbook_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 2.1.8
Contact: info@fattureincloud.it
Generated by: https://openapi-generator.tech
Generator version: 7.20.0
Generator version: 7.24.0

=end

Expand Down Expand Up @@ -45,7 +45,7 @@ def create_cashbook_entry_with_http_info(company_id, opts = {})
fail ArgumentError, "Missing the required parameter 'company_id' when calling CashbookApi.create_cashbook_entry"
end
# resource path
local_var_path = '/c/{company_id}/cashbook'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
local_var_path = '/c/{company_id}/cashbook'.sub('{company_id}', CGI.escape(company_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
Expand Down Expand Up @@ -119,7 +119,7 @@ def delete_cashbook_entry_with_http_info(company_id, document_id, opts = {})
fail ArgumentError, "Missing the required parameter 'document_id' when calling CashbookApi.delete_cashbook_entry"
end
# resource path
local_var_path = '/c/{company_id}/cashbook/{document_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'document_id' + '}', CGI.escape(document_id.to_s))
local_var_path = '/c/{company_id}/cashbook/{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] || {}
Expand Down Expand Up @@ -196,7 +196,7 @@ def get_cashbook_entry_with_http_info(company_id, document_id, opts = {})
fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/c/{company_id}/cashbook/{document_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'document_id' + '}', CGI.escape(document_id.to_s))
local_var_path = '/c/{company_id}/cashbook/{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] || {}
Expand Down Expand Up @@ -283,7 +283,7 @@ def list_cashbook_entries_with_http_info(company_id, date_from, date_to, opts =
fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/c/{company_id}/cashbook'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
local_var_path = '/c/{company_id}/cashbook'.sub('{company_id}', CGI.escape(company_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
Expand Down Expand Up @@ -359,7 +359,7 @@ def modify_cashbook_entry_with_http_info(company_id, document_id, opts = {})
fail ArgumentError, "Missing the required parameter 'document_id' when calling CashbookApi.modify_cashbook_entry"
end
# resource path
local_var_path = '/c/{company_id}/cashbook/{document_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'document_id' + '}', CGI.escape(document_id.to_s))
local_var_path = '/c/{company_id}/cashbook/{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] || {}
Expand Down
14 changes: 7 additions & 7 deletions lib/fattureincloud_ruby_sdk/api/clients_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 2.1.8
Contact: info@fattureincloud.it
Generated by: https://openapi-generator.tech
Generator version: 7.20.0
Generator version: 7.24.0

=end

Expand Down Expand Up @@ -45,7 +45,7 @@ def create_client_with_http_info(company_id, opts = {})
fail ArgumentError, "Missing the required parameter 'company_id' when calling ClientsApi.create_client"
end
# resource path
local_var_path = '/c/{company_id}/entities/clients'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
local_var_path = '/c/{company_id}/entities/clients'.sub('{company_id}', CGI.escape(company_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
Expand Down Expand Up @@ -119,7 +119,7 @@ def delete_client_with_http_info(company_id, client_id, opts = {})
fail ArgumentError, "Missing the required parameter 'client_id' when calling ClientsApi.delete_client"
end
# resource path
local_var_path = '/c/{company_id}/entities/clients/{client_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'client_id' + '}', CGI.escape(client_id.to_s))
local_var_path = '/c/{company_id}/entities/clients/{client_id}'.sub('{company_id}', CGI.escape(company_id.to_s)).sub('{client_id}', CGI.escape(client_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
Expand Down Expand Up @@ -196,7 +196,7 @@ def get_client_with_http_info(company_id, client_id, opts = {})
fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/c/{company_id}/entities/clients/{client_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'client_id' + '}', CGI.escape(client_id.to_s))
local_var_path = '/c/{company_id}/entities/clients/{client_id}'.sub('{company_id}', CGI.escape(company_id.to_s)).sub('{client_id}', CGI.escape(client_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
Expand Down Expand Up @@ -261,7 +261,7 @@ def get_client_info_with_http_info(company_id, opts = {})
fail ArgumentError, "Missing the required parameter 'company_id' when calling ClientsApi.get_client_info"
end
# resource path
local_var_path = '/c/{company_id}/entities/clients/info'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
local_var_path = '/c/{company_id}/entities/clients/info'.sub('{company_id}', CGI.escape(company_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
Expand Down Expand Up @@ -348,7 +348,7 @@ def list_clients_with_http_info(company_id, opts = {})
end

# resource path
local_var_path = '/c/{company_id}/entities/clients'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
local_var_path = '/c/{company_id}/entities/clients'.sub('{company_id}', CGI.escape(company_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
Expand Down Expand Up @@ -425,7 +425,7 @@ def modify_client_with_http_info(company_id, client_id, opts = {})
fail ArgumentError, "Missing the required parameter 'client_id' when calling ClientsApi.modify_client"
end
# resource path
local_var_path = '/c/{company_id}/entities/clients/{client_id}'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'client_id' + '}', CGI.escape(client_id.to_s))
local_var_path = '/c/{company_id}/entities/clients/{client_id}'.sub('{company_id}', CGI.escape(company_id.to_s)).sub('{client_id}', CGI.escape(client_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
Expand Down
6 changes: 3 additions & 3 deletions lib/fattureincloud_ruby_sdk/api/companies_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 2.1.8
Contact: info@fattureincloud.it
Generated by: https://openapi-generator.tech
Generator version: 7.20.0
Generator version: 7.24.0

=end

Expand Down Expand Up @@ -43,7 +43,7 @@ def get_company_info_with_http_info(company_id, opts = {})
fail ArgumentError, "Missing the required parameter 'company_id' when calling CompaniesApi.get_company_info"
end
# resource path
local_var_path = '/c/{company_id}/company/info'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
local_var_path = '/c/{company_id}/company/info'.sub('{company_id}', CGI.escape(company_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
Expand Down Expand Up @@ -117,7 +117,7 @@ def get_company_plan_usage_with_http_info(company_id, category, opts = {})
fail ArgumentError, "invalid value for \"category\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/c/{company_id}/company/plan_usage'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
local_var_path = '/c/{company_id}/company/plan_usage'.sub('{company_id}', CGI.escape(company_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
Expand Down
4 changes: 2 additions & 2 deletions lib/fattureincloud_ruby_sdk/api/emails_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The version of the OpenAPI document: 2.1.8
Contact: info@fattureincloud.it
Generated by: https://openapi-generator.tech
Generator version: 7.20.0
Generator version: 7.24.0

=end

Expand Down Expand Up @@ -67,7 +67,7 @@ def list_emails_with_http_info(company_id, opts = {})
end

# resource path
local_var_path = '/c/{company_id}/emails'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
local_var_path = '/c/{company_id}/emails'.sub('{company_id}', CGI.escape(company_id.to_s))

# query parameters
query_params = opts[:query_params] || {}
Expand Down
Loading
Loading