Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating SDK to 2.1.1 #54

Closed
wants to merge 1 commit into from
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
6 changes: 6 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ docs/GetReceiptsMonthlyTotalsResponse.md
docs/GetReceivedDocumentPreCreateInfoResponse.md
docs/GetReceivedDocumentResponse.md
docs/GetSupplierResponse.md
docs/GetTaxProfileResponse.md
docs/GetUserInfoResponse.md
docs/GetUserInfoResponseEmailConfirmationState.md
docs/GetUserInfoResponseInfo.md
Expand Down Expand Up @@ -230,6 +231,7 @@ docs/ShowTotalsMode.md
docs/Supplier.md
docs/SupplierType.md
docs/SuppliersApi.md
docs/TaxProfile.md
docs/TaxesApi.md
docs/TransformIssuedDocumentResponse.md
docs/UploadArchiveAttachmentResponse.md
Expand Down Expand Up @@ -364,6 +366,7 @@ lib/fattureincloud_ruby_sdk/models/get_receipts_monthly_totals_response.rb
lib/fattureincloud_ruby_sdk/models/get_received_document_pre_create_info_response.rb
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_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
Expand Down Expand Up @@ -487,6 +490,7 @@ lib/fattureincloud_ruby_sdk/models/sender_email.rb
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/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
Expand All @@ -507,4 +511,6 @@ lib/fattureincloud_ruby_sdk/models/webhooks_subscription.rb
lib/fattureincloud_ruby_sdk/models/webhooks_subscription_config.rb
lib/fattureincloud_ruby_sdk/models/webhooks_subscription_mapping.rb
lib/fattureincloud_ruby_sdk/version.rb
spec/models/get_tax_profile_response_spec.rb
spec/models/tax_profile_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.6.0
7.9.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.0.gem
- gem install ./fattureincloud_ruby_sdk-2.1.1.gem
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.0
- Package version: 2.1.0
- API version: 2.1.2
- Package version: 2.1.1
- Build package: org.openapitools.codegen.languages.RubyClientCodegen


Expand Down Expand Up @@ -148,6 +148,7 @@ Class | Method | HTTP request | Description
*FattureInCloud_Ruby_Sdk::SettingsApi* | [**delete_vat_type**](docs/SettingsApi.md#delete_vat_type) | **DELETE** /c/{company_id}/settings/vat_types/{vat_type_id} | Delete Vat Type
*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_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* | [**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
Expand Down Expand Up @@ -266,6 +267,7 @@ Class | Method | HTTP request | Description
- [FattureInCloud_Ruby_Sdk::GetReceivedDocumentPreCreateInfoResponse](docs/GetReceivedDocumentPreCreateInfoResponse.md)
- [FattureInCloud_Ruby_Sdk::GetReceivedDocumentResponse](docs/GetReceivedDocumentResponse.md)
- [FattureInCloud_Ruby_Sdk::GetSupplierResponse](docs/GetSupplierResponse.md)
- [FattureInCloud_Ruby_Sdk::GetTaxProfileResponse](docs/GetTaxProfileResponse.md)
- [FattureInCloud_Ruby_Sdk::GetUserInfoResponse](docs/GetUserInfoResponse.md)
- [FattureInCloud_Ruby_Sdk::GetUserInfoResponseEmailConfirmationState](docs/GetUserInfoResponseEmailConfirmationState.md)
- [FattureInCloud_Ruby_Sdk::GetUserInfoResponseInfo](docs/GetUserInfoResponseInfo.md)
Expand Down Expand Up @@ -389,6 +391,7 @@ Class | Method | HTTP request | Description
- [FattureInCloud_Ruby_Sdk::ShowTotalsMode](docs/ShowTotalsMode.md)
- [FattureInCloud_Ruby_Sdk::Supplier](docs/Supplier.md)
- [FattureInCloud_Ruby_Sdk::SupplierType](docs/SupplierType.md)
- [FattureInCloud_Ruby_Sdk::TaxProfile](docs/TaxProfile.md)
- [FattureInCloud_Ruby_Sdk::TransformIssuedDocumentResponse](docs/TransformIssuedDocumentResponse.md)
- [FattureInCloud_Ruby_Sdk::UploadArchiveAttachmentResponse](docs/UploadArchiveAttachmentResponse.md)
- [FattureInCloud_Ruby_Sdk::UploadF24AttachmentResponse](docs/UploadF24AttachmentResponse.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/Email.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| ---- | ---- | ----------- | ----- |
| **id** | **Integer** | Email id | [optional] |
| **status** | [**EmailStatus**](EmailStatus.md) | | [optional] |
| **sent_date** | **Time** | Email sent date | [optional] |
| **sent_date** | **String** | Email sent date | [optional] |
| **errors_count** | **Integer** | Email errors count | [optional] |
| **error_log** | **String** | Email errors log | [optional] |
| **from_email** | **String** | Email sender email | [optional] |
Expand Down
8 changes: 8 additions & 0 deletions docs/GetTaxProfileResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# FattureInCloud_Ruby_Sdk::GetTaxProfileResponse

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **data** | [**TaxProfile**](TaxProfile.md) | | [optional] |

2 changes: 1 addition & 1 deletion docs/IssuedDocument.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
| **year** | **Integer** | Issued document year | [optional] |
| **currency** | [**Currency**](Currency.md) | | [optional] |
| **language** | [**Language**](Language.md) | | [optional] |
| **subject** | **String** | Issued document subject | [optional] |
| **subject** | **String** | Issued document subject [not shown on the PDF] | [optional] |
| **visible_subject** | **String** | Issued document visible subject | [optional] |
| **rc_center** | **String** | Issued document revenue center [or cost center if type=supplier_order]. | [optional] |
| **notes** | **String** | Issued document extra notes | [optional] |
Expand Down
6 changes: 4 additions & 2 deletions docs/IssuedDocumentsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ company_id = 12345 # Integer | The ID of the company.
ids = '1,2,3,4' # String | Ids of the documents.
opts = {
group: 0, # Integer | Group items.
e_invoice: 0 # Integer | New document e_invoice.
parameter: 'delivery_notes' # String | Type of the parameters to be joined
}

begin
Expand Down Expand Up @@ -661,7 +661,7 @@ end
| **company_id** | **Integer** | The ID of the company. | |
| **ids** | **String** | Ids of the documents. | |
| **group** | **Integer** | Group items. | [optional] |
| **e_invoice** | **Integer** | New document e_invoice. | [optional] |
| **parameter** | **String** | Type of the parameters to be joined | [optional] |

### Return type

Expand Down Expand Up @@ -937,6 +937,7 @@ company_id = 12345 # Integer | The ID of the company.
original_document_id = 56 # Integer | Original document id.
new_type = 'new_type_example' # String | New document type.
opts = {
parameter: 'parameter_example', # String | Old document type.
e_invoice: 0, # Integer | New document e_invoice.
transform_keep_copy: 0 # Integer | Keep the old document.
}
Expand Down Expand Up @@ -975,6 +976,7 @@ end
| **company_id** | **Integer** | The ID of the company. | |
| **original_document_id** | **Integer** | Original document id. | |
| **new_type** | **String** | New document type. | |
| **parameter** | **String** | Old document type. | [optional] |
| **e_invoice** | **Integer** | New document e_invoice. | [optional] |
| **transform_keep_copy** | **Integer** | Keep the old document. | [optional] |

Expand Down
70 changes: 70 additions & 0 deletions docs/SettingsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ All URIs are relative to *https://api-v2.fattureincloud.it*
| [**delete_vat_type**](SettingsApi.md#delete_vat_type) | **DELETE** /c/{company_id}/settings/vat_types/{vat_type_id} | Delete Vat Type |
| [**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_vat_type**](SettingsApi.md#get_vat_type) | **GET** /c/{company_id}/settings/vat_types/{vat_type_id} | Get Vat Type |
| [**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 |
Expand Down Expand Up @@ -601,6 +602,75 @@ end
- **Accept**: application/json


## get_tax_profile

> <GetTaxProfileResponse> get_tax_profile(company_id)

Get Tax Profile

Gets the Tax Profile

### 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.

begin
# Get Tax Profile
result = api_instance.get_tax_profile(company_id)
p result
rescue FattureInCloud_Ruby_Sdk::ApiError => e
puts "Error when calling SettingsApi->get_tax_profile: #{e}"
end
```

#### Using the get_tax_profile_with_http_info variant

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

> <Array(<GetTaxProfileResponse>, Integer, Hash)> get_tax_profile_with_http_info(company_id)

```ruby
begin
# Get Tax Profile
data, status_code, headers = api_instance.get_tax_profile_with_http_info(company_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetTaxProfileResponse>
rescue FattureInCloud_Ruby_Sdk::ApiError => e
puts "Error when calling SettingsApi->get_tax_profile_with_http_info: #{e}"
end
```

### Parameters

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **company_id** | **Integer** | The ID of the company. | |

### Return type

[**GetTaxProfileResponse**](GetTaxProfileResponse.md)

### Authorization

[OAuth2AuthenticationCodeFlow](../README.md#OAuth2AuthenticationCodeFlow)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json


## get_vat_type

> <GetVatTypeResponse> get_vat_type(company_id, vat_type_id)
Expand Down
28 changes: 28 additions & 0 deletions docs/TaxProfile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# FattureInCloud_Ruby_Sdk::TaxProfile

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **company_type** | **String** | The company type | [optional] |
| **company_subtype** | **String** | The company subtype | [optional] |
| **profession** | **String** | The profession | [optional] |
| **regime** | **String** | The applied regime | [optional] |
| **rivalsa_name** | **String** | The name of the rivalsa | [optional] |
| **default_rivalsa** | **Float** | The default rivalsa amount | [optional] |
| **cassa_name** | **String** | The name of the cassa | [optional] |
| **default_cassa** | **Float** | The default cassa amount | [optional] |
| **default_cassa_taxable** | **Float** | The default taxable amount for the cassa | [optional] |
| **cassa2_name** | **String** | The name of the second cassa | [optional] |
| **default_cassa2** | **Float** | The default second cassa amount | [optional] |
| **default_cassa2_taxable** | **Float** | The default taxable amount for the second cassa | [optional] |
| **default_withholding_tax** | **Float** | The default withholding tax | [optional] |
| **default_withholding_tax_taxable** | **Float** | The default taxable amount for the withholding tax | [optional] |
| **default_other_withholding_tax** | **Float** | The default other withholding tax | [optional] |
| **enasarco** | **Boolean** | If it has enasarco | [optional] |
| **enasarco_type** | **String** | The enasarco type | [optional] |
| **contributions_percentage** | **Float** | The contributions percentage | [optional] |
| **profit_coefficient** | **Float** | The profit coefficient | [optional] |
| **med** | **Boolean** | If the health card system is active | [optional] |
| **default_vat** | [**VatType**](VatType.md) | | [optional] |

1 change: 1 addition & 0 deletions docs/VatType.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
| **ei_description** | **String** | Vat type e-invoice description | [optional] |
| **editable** | **Boolean** | [Read Only] Is the vat type is editable. | [optional][readonly] |
| **is_disabled** | **Boolean** | Is the vat type disabled | [optional] |
| **default** | **Boolean** | If the vat type is default | [optional] |

4 changes: 2 additions & 2 deletions fattureincloud_ruby_sdk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +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.0
The version of the OpenAPI document: 2.1.2
Contact: info@fattureincloud.it
Generated by: https://openapi-generator.tech
Generator version: 7.6.0
Generator version: 7.9.0

=end

Expand Down
6 changes: 4 additions & 2 deletions lib/fattureincloud_ruby_sdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.

The version of the OpenAPI document: 2.1.0
The version of the OpenAPI document: 2.1.2
Contact: info@fattureincloud.it
Generated by: https://openapi-generator.tech
Generator version: 7.6.0
Generator version: 7.9.0

=end

Expand Down Expand Up @@ -108,6 +108,7 @@
require 'fattureincloud_ruby_sdk/models/get_received_document_pre_create_info_response'
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_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'
Expand Down Expand Up @@ -231,6 +232,7 @@
require 'fattureincloud_ruby_sdk/models/show_totals_mode'
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/transform_issued_document_response'
require 'fattureincloud_ruby_sdk/models/upload_archive_attachment_response'
require 'fattureincloud_ruby_sdk/models/upload_f24_attachment_response'
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 @@ -3,10 +3,10 @@

#Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.

The version of the OpenAPI document: 2.1.0
The version of the OpenAPI document: 2.1.2
Contact: info@fattureincloud.it
Generated by: https://openapi-generator.tech
Generator version: 7.6.0
Generator version: 7.9.0

=end

Expand Down Expand Up @@ -53,7 +53,7 @@ def create_archive_document_with_http_info(company_id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
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?
Expand Down Expand Up @@ -204,7 +204,7 @@ def get_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'])
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

# form parameters
form_params = opts[:form_params] || {}
Expand Down Expand Up @@ -297,7 +297,7 @@ def list_archive_documents_with_http_info(company_id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

# form parameters
form_params = opts[:form_params] || {}
Expand Down Expand Up @@ -368,7 +368,7 @@ def modify_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'])
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?
Expand Down Expand Up @@ -440,7 +440,7 @@ def upload_archive_document_attachment_with_http_info(company_id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
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(['multipart/form-data'])
if !content_type.nil?
Expand Down
Loading