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

Merged
merged 1 commit into from
Oct 31, 2024
Merged
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 @@ -97,6 +97,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 @@ -228,6 +229,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 @@ -361,6 +363,7 @@ src/model/GetReceiptsMonthlyTotalsResponse.js
src/model/GetReceivedDocumentPreCreateInfoResponse.js
src/model/GetReceivedDocumentResponse.js
src/model/GetSupplierResponse.js
src/model/GetTaxProfileResponse.js
src/model/GetUserInfoResponse.js
src/model/GetUserInfoResponseEmailConfirmationState.js
src/model/GetUserInfoResponseInfo.js
Expand Down Expand Up @@ -484,6 +487,7 @@ src/model/SenderEmail.js
src/model/ShowTotalsMode.js
src/model/Supplier.js
src/model/SupplierType.js
src/model/TaxProfile.js
src/model/TransformIssuedDocumentResponse.js
src/model/UploadArchiveAttachmentResponse.js
src/model/UploadF24AttachmentResponse.js
Expand All @@ -503,3 +507,5 @@ src/model/VerifyEInvoiceXmlResponseData.js
src/model/WebhooksSubscription.js
src/model/WebhooksSubscriptionConfig.js
src/model/WebhooksSubscriptionMapping.js
test/model/GetTaxProfileResponse.spec.js
test/model/TaxProfile.spec.js
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
9 changes: 6 additions & 3 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.3
- Package version: 2.1.1
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen


Expand All @@ -30,7 +30,7 @@ npm install @fattureincloud/fattureincloud-js-sdk
Using yarn:

```shell
yarn add @fattureincloud/fattureincloud-js-sdk
yarn add @fattureincloud/fattureincloud-js-sdk
```

### For browser
Expand Down Expand Up @@ -178,6 +178,7 @@ Class | Method | HTTP request | Description
*fattureInCloudSdk.SettingsApi* | [**deleteVatType**](docs/SettingsApi.md#deleteVatType) | **DELETE** /c/{company_id}/settings/vat_types/{vat_type_id} | Delete Vat Type
*fattureInCloudSdk.SettingsApi* | [**getPaymentAccount**](docs/SettingsApi.md#getPaymentAccount) | **GET** /c/{company_id}/settings/payment_accounts/{payment_account_id} | Get Payment Account
*fattureInCloudSdk.SettingsApi* | [**getPaymentMethod**](docs/SettingsApi.md#getPaymentMethod) | **GET** /c/{company_id}/settings/payment_methods/{payment_method_id} | Get Payment Method
*fattureInCloudSdk.SettingsApi* | [**getTaxProfile**](docs/SettingsApi.md#getTaxProfile) | **GET** /c/{company_id}/settings/tax_profile | Get Tax Profile
*fattureInCloudSdk.SettingsApi* | [**getVatType**](docs/SettingsApi.md#getVatType) | **GET** /c/{company_id}/settings/vat_types/{vat_type_id} | Get Vat Type
*fattureInCloudSdk.SettingsApi* | [**modifyPaymentAccount**](docs/SettingsApi.md#modifyPaymentAccount) | **PUT** /c/{company_id}/settings/payment_accounts/{payment_account_id} | Modify Payment Account
*fattureInCloudSdk.SettingsApi* | [**modifyPaymentMethod**](docs/SettingsApi.md#modifyPaymentMethod) | **PUT** /c/{company_id}/settings/payment_methods/{payment_method_id} | Modify Payment Method
Expand Down Expand Up @@ -296,6 +297,7 @@ Class | Method | HTTP request | Description
- [fattureInCloudSdk.GetReceivedDocumentPreCreateInfoResponse](docs/GetReceivedDocumentPreCreateInfoResponse.md)
- [fattureInCloudSdk.GetReceivedDocumentResponse](docs/GetReceivedDocumentResponse.md)
- [fattureInCloudSdk.GetSupplierResponse](docs/GetSupplierResponse.md)
- [fattureInCloudSdk.GetTaxProfileResponse](docs/GetTaxProfileResponse.md)
- [fattureInCloudSdk.GetUserInfoResponse](docs/GetUserInfoResponse.md)
- [fattureInCloudSdk.GetUserInfoResponseEmailConfirmationState](docs/GetUserInfoResponseEmailConfirmationState.md)
- [fattureInCloudSdk.GetUserInfoResponseInfo](docs/GetUserInfoResponseInfo.md)
Expand Down Expand Up @@ -419,6 +421,7 @@ Class | Method | HTTP request | Description
- [fattureInCloudSdk.ShowTotalsMode](docs/ShowTotalsMode.md)
- [fattureInCloudSdk.Supplier](docs/Supplier.md)
- [fattureInCloudSdk.SupplierType](docs/SupplierType.md)
- [fattureInCloudSdk.TaxProfile](docs/TaxProfile.md)
- [fattureInCloudSdk.TransformIssuedDocumentResponse](docs/TransformIssuedDocumentResponse.md)
- [fattureInCloudSdk.UploadArchiveAttachmentResponse](docs/UploadArchiveAttachmentResponse.md)
- [fattureInCloudSdk.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 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **Number** | Email id | [optional]
**status** | [**EmailStatus**](EmailStatus.md) | | [optional]
**sentDate** | **Date** | Email sent date | [optional]
**sentDate** | **String** | Email sent date | [optional]
**errorsCount** | **Number** | Email errors count | [optional]
**errorLog** | **String** | Email errors log | [optional]
**fromEmail** | **String** | Email sender email | [optional]
Expand Down
22 changes: 22 additions & 0 deletions docs/EventType.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,26 @@

* `received_documents.e_invoices.receive` (value: `"it.fattureincloud.webhooks.received_documents.e_invoices.receive"`)

* `issued_documents.invoices.email_sent` (value: `"it.fattureincloud.webhooks.issued_documents.invoices.email_sent"`)

* `issued_documents.quotes.email_sent` (value: `"it.fattureincloud.webhooks.issued_documents.quotes.email_sent"`)

* `issued_documents.proformas.email_sent` (value: `"it.fattureincloud.webhooks.issued_documents.proformas.email_sent"`)

* `issued_documents.receipts.email_sent` (value: `"it.fattureincloud.webhooks.issued_documents.receipts.email_sent"`)

* `issued_documents.delivery_notes.email_sent` (value: `"it.fattureincloud.webhooks.issued_documents.delivery_notes.email_sent"`)

* `issued_documents.credit_notes.email_sent` (value: `"it.fattureincloud.webhooks.issued_documents.credit_notes.email_sent"`)

* `issued_documents.orders.email_sent` (value: `"it.fattureincloud.webhooks.issued_documents.orders.email_sent"`)

* `issued_documents.work_reports.email_sent` (value: `"it.fattureincloud.webhooks.issued_documents.work_reports.email_sent"`)

* `issued_documents.supplier_orders.email_sent` (value: `"it.fattureincloud.webhooks.issued_documents.supplier_orders.email_sent"`)

* `issued_documents.self_invoices.email_sent` (value: `"it.fattureincloud.webhooks.issued_documents.self_invoices.email_sent"`)

* `issued_documents.all.email_sent` (value: `"it.fattureincloud.webhooks.issued_documents.all.email_sent"`)


9 changes: 9 additions & 0 deletions docs/GetTaxProfileResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# fattureInCloudSdk.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 @@ Name | Type | Description | Notes
**year** | **Number** | 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]
**visibleSubject** | **String** | Issued document visible subject | [optional]
**rcCenter** | **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 @@ -457,7 +457,7 @@ let companyId = 12345; // Number | The ID of the company.
let ids = "1,2,3,4"; // String | Ids of the documents.
let opts = {
'group': 56, // Number | Group items.
'eInvoice': 56 // Number | New document e_invoice.
'type': "delivery_notes, orders, quotes, work_reports" // String | Type of the documents to be joined
};
apiInstance.joinIssuedDocuments(companyId, ids, opts).then((result) => {
console.log('API called successfully. Returned result: ' + JSON.stringify(result));
Expand All @@ -475,7 +475,7 @@ Name | Type | Description | Notes
**companyId** | **Number**| The ID of the company. |
**ids** | **String**| Ids of the documents. |
**group** | **Number**| Group items. | [optional]
**eInvoice** | **Number**| New document e_invoice. | [optional]
**type** | **String**| Type of the documents to be joined | [optional]

### Return type

Expand Down Expand Up @@ -687,6 +687,7 @@ let companyId = 12345; // Number | The ID of the company.
let originalDocumentId = 56; // Number | Original document id.
let newType = "newType_example"; // String | New document type.
let opts = {
'type': "type_example", // String | Current document type.
'eInvoice': 56, // Number | New document e_invoice.
'transformKeepCopy': 56 // Number | Keep the old document.
};
Expand All @@ -706,6 +707,7 @@ Name | Type | Description | Notes
**companyId** | **Number**| The ID of the company. |
**originalDocumentId** | **Number**| Original document id. |
**newType** | **String**| New document type. |
**type** | **String**| Current document type. | [optional]
**eInvoice** | **Number**| New document e_invoice. | [optional]
**transformKeepCopy** | **Number**| Keep the old document. | [optional]

Expand Down
2 changes: 2 additions & 0 deletions docs/ReceivedDocumentType.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@

* `passive_delivery_note` (value: `"passive_delivery_note"`)

* `self_invoice` (value: `"self_invoice"`)


49 changes: 49 additions & 0 deletions docs/SettingsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Method | HTTP request | Description
[**deleteVatType**](SettingsApi.md#deleteVatType) | **DELETE** /c/{company_id}/settings/vat_types/{vat_type_id} | Delete Vat Type
[**getPaymentAccount**](SettingsApi.md#getPaymentAccount) | **GET** /c/{company_id}/settings/payment_accounts/{payment_account_id} | Get Payment Account
[**getPaymentMethod**](SettingsApi.md#getPaymentMethod) | **GET** /c/{company_id}/settings/payment_methods/{payment_method_id} | Get Payment Method
[**getTaxProfile**](SettingsApi.md#getTaxProfile) | **GET** /c/{company_id}/settings/tax_profile | Get Tax Profile
[**getVatType**](SettingsApi.md#getVatType) | **GET** /c/{company_id}/settings/vat_types/{vat_type_id} | Get Vat Type
[**modifyPaymentAccount**](SettingsApi.md#modifyPaymentAccount) | **PUT** /c/{company_id}/settings/payment_accounts/{payment_account_id} | Modify Payment Account
[**modifyPaymentMethod**](SettingsApi.md#modifyPaymentMethod) | **PUT** /c/{company_id}/settings/payment_methods/{payment_method_id} | Modify Payment Method
Expand Down Expand Up @@ -437,6 +438,54 @@ Name | Type | Description | Notes
- **Accept**: application/json


## getTaxProfile

> GetTaxProfileResponse getTaxProfile(companyId)
Get Tax Profile

Gets the Tax Profile

### Example

```javascript
import fattureInCloudSdk from '@fattureincloud/fattureincloud-js-sdk';
let defaultClient = fattureInCloudSdk.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
let OAuth2AuthenticationCodeFlow = defaultClient.authentications['OAuth2AuthenticationCodeFlow'];
OAuth2AuthenticationCodeFlow.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new fattureInCloudSdk.SettingsApi();
let companyId = 12345; // Number | The ID of the company.
apiInstance.getTaxProfile(companyId).then((result) => {
console.log('API called successfully. Returned result: ' + JSON.stringify(result));
}, (error) => {
console.error(error);
});

```

### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**companyId** | **Number**| 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


## getVatType

> GetVatTypeResponse getVatType(companyId, vatTypeId)
Expand Down
29 changes: 29 additions & 0 deletions docs/TaxProfile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# fattureInCloudSdk.TaxProfile

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**companyType** | **String** | The company type | [optional]
**companySubtype** | **String** | The company subtype | [optional]
**profession** | **String** | The profession | [optional]
**regime** | **String** | The applied regime | [optional]
**rivalsaName** | **String** | The name of the rivalsa | [optional]
**defaultRivalsa** | **Number** | The default rivalsa amount | [optional]
**cassaName** | **String** | The name of the cassa | [optional]
**defaultCassa** | **Number** | The default cassa amount | [optional]
**defaultCassaTaxable** | **Number** | The default taxable amount for the cassa | [optional]
**cassa2Name** | **String** | The name of the second cassa | [optional]
**defaultCassa2** | **Number** | The default second cassa amount | [optional]
**defaultCassa2Taxable** | **Number** | The default taxable amount for the second cassa | [optional]
**defaultWithholdingTax** | **Number** | The default withholding tax | [optional]
**defaultWithholdingTaxTaxable** | **Number** | The default taxable amount for the withholding tax | [optional]
**defaultOtherWithholdingTax** | **Number** | The default other withholding tax | [optional]
**enasarco** | **Boolean** | If it has enasarco | [optional]
**enasarcoType** | **String** | The enasarco type | [optional]
**contributionsPercentage** | **Number** | The contributions percentage | [optional]
**profitCoefficient** | **Number** | The profit coefficient | [optional]
**med** | **Boolean** | If the health card system is active | [optional]
**defaultVat** | [**VatType**](VatType.md) | | [optional]


2 changes: 0 additions & 2 deletions docs/VatKind.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
## Enum


* `null` (value: `"null"`)

* `I` (value: `"I"`)

* `D` (value: `"D"`)
Expand Down
1 change: 1 addition & 0 deletions docs/VatType.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ Name | Type | Description | Notes
**eiDescription** | **String** | Vat type e-invoice description | [optional]
**editable** | **Boolean** | [Read Only] Is the vat type is editable. | [optional] [readonly]
**isDisabled** | **Boolean** | Is the vat type disabled | [optional]
**_default** | **Boolean** | If the vat type is default | [optional]


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fattureincloud/fattureincloud-js-sdk",
"version": "2.1.0",
"version": "2.1.1",
"description": "JavaScript SDK for the Fatture in Cloud API",
"license": "MIT",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion sdk-version.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
info:
version: 2.1.0
version: 2.1.1
6 changes: 3 additions & 3 deletions src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* 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.0
* The version of the OpenAPI document: 2.1.3
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -16,7 +16,7 @@ import querystring from 'querystring'

/**
* @module ApiClient
* @version 2.1.0
* @version 2.1.1
*/

/**
Expand Down Expand Up @@ -54,7 +54,7 @@ class ApiClient {
* @default {}
*/
this.defaultHeaders = {
'User-Agent': 'FattureInCloud/2.1.0/JavaScript-SDK'
'User-Agent': 'FattureInCloud/2.1.1/JavaScript-SDK'
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/api/ArchiveApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* 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.0
* The version of the OpenAPI document: 2.1.3
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -21,7 +21,7 @@ import UploadArchiveAttachmentResponse from '../model/UploadArchiveAttachmentRes
/**
* Archive service.
* @module api/ArchiveApi
* @version 2.1.0
* @version 2.1.1
*/
export default class ArchiveApi {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/api/CashbookApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* 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.0
* The version of the OpenAPI document: 2.1.3
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -20,7 +20,7 @@ import ModifyCashbookEntryResponse from '../model/ModifyCashbookEntryResponse'
/**
* Cashbook service.
* @module api/CashbookApi
* @version 2.1.0
* @version 2.1.1
*/
export default class CashbookApi {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/api/ClientsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* 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.0
* The version of the OpenAPI document: 2.1.3
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -20,7 +20,7 @@ import ModifyClientResponse from '../model/ModifyClientResponse'
/**
* Clients service.
* @module api/ClientsApi
* @version 2.1.0
* @version 2.1.1
*/
export default class ClientsApi {
/**
Expand Down
Loading