Skip to content

Commit

Permalink
chore: bumping version to 2.0.25
Browse files Browse the repository at this point in the history
  • Loading branch information
fattureincloud-bot authored Feb 28, 2024
1 parent 933b50f commit d7637f0
Show file tree
Hide file tree
Showing 266 changed files with 1,098 additions and 480 deletions.
9 changes: 9 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ docs/CompanyInfoPlanInfo.md
docs/CompanyInfoPlanInfoFunctions.md
docs/CompanyInfoPlanInfoFunctionsStatus.md
docs/CompanyInfoPlanInfoLimits.md
docs/CompanyPlanUsage.md
docs/CompanyType.md
docs/ControlledCompany.md
docs/CreateArchiveDocumentRequest.md
Expand Down Expand Up @@ -67,11 +68,13 @@ docs/EntityType.md
docs/EventType.md
docs/F24.md
docs/F24Status.md
docs/FattureInCloudPlanType.md
docs/FunctionStatus.md
docs/GetArchiveDocumentResponse.md
docs/GetCashbookEntryResponse.md
docs/GetClientResponse.md
docs/GetCompanyInfoResponse.md
docs/GetCompanyPlanUsageResponse.md
docs/GetEInvoiceRejectionReasonResponse.md
docs/GetEmailDataResponse.md
docs/GetExistingIssuedDocumentTotalsRequest.md
Expand Down Expand Up @@ -283,6 +286,7 @@ src/model/CompanyInfoPlanInfo.js
src/model/CompanyInfoPlanInfoFunctions.js
src/model/CompanyInfoPlanInfoFunctionsStatus.js
src/model/CompanyInfoPlanInfoLimits.js
src/model/CompanyPlanUsage.js
src/model/CompanyType.js
src/model/ControlledCompany.js
src/model/CreateArchiveDocumentRequest.js
Expand Down Expand Up @@ -328,11 +332,13 @@ src/model/EntityType.js
src/model/EventType.js
src/model/F24.js
src/model/F24Status.js
src/model/FattureInCloudPlanType.js
src/model/FunctionStatus.js
src/model/GetArchiveDocumentResponse.js
src/model/GetCashbookEntryResponse.js
src/model/GetClientResponse.js
src/model/GetCompanyInfoResponse.js
src/model/GetCompanyPlanUsageResponse.js
src/model/GetEInvoiceRejectionReasonResponse.js
src/model/GetEmailDataResponse.js
src/model/GetExistingIssuedDocumentTotalsRequest.js
Expand Down Expand Up @@ -497,3 +503,6 @@ src/model/VerifyEInvoiceXmlResponseData.js
src/model/WebhooksSubscription.js
src/model/WebhooksSubscriptionConfig.js
src/model/WebhooksSubscriptionMapping.js
test/model/CompanyPlanUsage.spec.js
test/model/FattureInCloudPlanType.spec.js
test/model/GetCompanyPlanUsageResponse.spec.js
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.1.0
7.3.0
8 changes: 6 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.0.31
- Package version: 2.0.24
- API version: 2.0.32
- Package version: 2.0.25
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen


Expand Down Expand Up @@ -112,6 +112,7 @@ Class | Method | HTTP request | Description
*fattureInCloudSdk.ClientsApi* | [**listClients**](docs/ClientsApi.md#listClients) | **GET** /c/{company_id}/entities/clients | List Clients
*fattureInCloudSdk.ClientsApi* | [**modifyClient**](docs/ClientsApi.md#modifyClient) | **PUT** /c/{company_id}/entities/clients/{client_id} | Modify Client
*fattureInCloudSdk.CompaniesApi* | [**getCompanyInfo**](docs/CompaniesApi.md#getCompanyInfo) | **GET** /c/{company_id}/company/info | Get Company Info
*fattureInCloudSdk.CompaniesApi* | [**getCompanyPlanUsage**](docs/CompaniesApi.md#getCompanyPlanUsage) | **GET** /c/{company_id}/company/plan_usage | Get Company Plan Usage
*fattureInCloudSdk.EmailsApi* | [**listEmails**](docs/EmailsApi.md#listEmails) | **GET** /c/{company_id}/emails | List Emails
*fattureInCloudSdk.InfoApi* | [**listArchiveCategories**](docs/InfoApi.md#listArchiveCategories) | **GET** /c/{company_id}/info/archive_categories | List Archive Categories
*fattureInCloudSdk.InfoApi* | [**listCities**](docs/InfoApi.md#listCities) | **GET** /info/cities | List Cities
Expand Down Expand Up @@ -220,6 +221,7 @@ Class | Method | HTTP request | Description
- [fattureInCloudSdk.CompanyInfoPlanInfoFunctions](docs/CompanyInfoPlanInfoFunctions.md)
- [fattureInCloudSdk.CompanyInfoPlanInfoFunctionsStatus](docs/CompanyInfoPlanInfoFunctionsStatus.md)
- [fattureInCloudSdk.CompanyInfoPlanInfoLimits](docs/CompanyInfoPlanInfoLimits.md)
- [fattureInCloudSdk.CompanyPlanUsage](docs/CompanyPlanUsage.md)
- [fattureInCloudSdk.CompanyType](docs/CompanyType.md)
- [fattureInCloudSdk.ControlledCompany](docs/ControlledCompany.md)
- [fattureInCloudSdk.CreateArchiveDocumentRequest](docs/CreateArchiveDocumentRequest.md)
Expand Down Expand Up @@ -265,11 +267,13 @@ Class | Method | HTTP request | Description
- [fattureInCloudSdk.EventType](docs/EventType.md)
- [fattureInCloudSdk.F24](docs/F24.md)
- [fattureInCloudSdk.F24Status](docs/F24Status.md)
- [fattureInCloudSdk.FattureInCloudPlanType](docs/FattureInCloudPlanType.md)
- [fattureInCloudSdk.FunctionStatus](docs/FunctionStatus.md)
- [fattureInCloudSdk.GetArchiveDocumentResponse](docs/GetArchiveDocumentResponse.md)
- [fattureInCloudSdk.GetCashbookEntryResponse](docs/GetCashbookEntryResponse.md)
- [fattureInCloudSdk.GetClientResponse](docs/GetClientResponse.md)
- [fattureInCloudSdk.GetCompanyInfoResponse](docs/GetCompanyInfoResponse.md)
- [fattureInCloudSdk.GetCompanyPlanUsageResponse](docs/GetCompanyPlanUsageResponse.md)
- [fattureInCloudSdk.GetEInvoiceRejectionReasonResponse](docs/GetEInvoiceRejectionReasonResponse.md)
- [fattureInCloudSdk.GetEmailDataResponse](docs/GetEmailDataResponse.md)
- [fattureInCloudSdk.GetExistingIssuedDocumentTotalsRequest](docs/GetExistingIssuedDocumentTotalsRequest.md)
Expand Down
51 changes: 51 additions & 0 deletions docs/CompaniesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All URIs are relative to *https://api-v2.fattureincloud.it*
Method | HTTP request | Description
------------- | ------------- | -------------
[**getCompanyInfo**](CompaniesApi.md#getCompanyInfo) | **GET** /c/{company_id}/company/info | Get Company Info
[**getCompanyPlanUsage**](CompaniesApi.md#getCompanyPlanUsage) | **GET** /c/{company_id}/company/plan_usage | Get Company Plan Usage



Expand Down Expand Up @@ -55,3 +56,53 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: application/json


## getCompanyPlanUsage

> GetCompanyPlanUsageResponse getCompanyPlanUsage(companyId, category)
Get Company Plan Usage

Gets the company limits usage.

### 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.CompaniesApi();
let companyId = 12345; // Number | The ID of the company.
let category = "category_example"; // String | Category
apiInstance.getCompanyPlanUsage(companyId, category).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. |
**category** | **String**| Category |

### Return type

[**GetCompanyPlanUsageResponse**](GetCompanyPlanUsageResponse.md)

### Authorization

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

### HTTP request headers

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

2 changes: 2 additions & 0 deletions docs/Company.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Name | Type | Description | Notes
**type** | [**CompanyType**](CompanyType.md) | | [optional]
**accessToken** | **String** | Company authentication token for this company. [Only if type=company] | [optional]
**controlledCompanies** | [**[ControlledCompany]**](ControlledCompany.md) | Company list of controlled companies [Only if type=accountant] | [optional]
**ficLicenseExpire** | **Date** | | [optional]
**ficPlan** | [**FattureInCloudPlanType**](FattureInCloudPlanType.md) | | [optional]
**connectionId** | **Number** | Company connection id | [optional]
**taxCode** | **String** | Company tax code | [optional]

Expand Down
2 changes: 2 additions & 0 deletions docs/CompanyInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Name | Type | Description | Notes
**email** | **String** | Company email | [optional]
**type** | [**CompanyType**](CompanyType.md) | | [optional]
**accessInfo** | [**CompanyInfoAccessInfo**](CompanyInfoAccessInfo.md) | | [optional]
**ficLicenseExpire** | **Date** | | [optional]
**ficPlanName** | [**FattureInCloudPlanType**](FattureInCloudPlanType.md) | | [optional]
**planInfo** | [**CompanyInfoPlanInfo**](CompanyInfoPlanInfo.md) | | [optional]
**accountantId** | **Number** | Company accountant id | [optional]
**isAccountant** | **Boolean** | Is the logged account an accountant. | [optional]
Expand Down
10 changes: 10 additions & 0 deletions docs/CompanyPlanUsage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# fattureInCloudSdk.CompanyPlanUsage

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**limit** | **Number** | Plan limit | [optional]
**usage** | **Number** | Plan usage | [optional]


2 changes: 2 additions & 0 deletions docs/ControlledCompany.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Name | Type | Description | Notes
**name** | **String** | Controlled company id | [optional]
**type** | [**CompanyType**](CompanyType.md) | | [optional]
**accessToken** | **String** | Controlled company access token Only if type=company] | [optional]
**ficLicenseExpire** | **Date** | | [optional]
**ficPlan** | [**FattureInCloudPlanType**](FattureInCloudPlanType.md) | | [optional]
**connectionId** | **Number** | Controlled company connection id | [optional]
**taxCode** | **String** | Controlled company tax code | [optional]

Expand Down
16 changes: 16 additions & 0 deletions docs/FattureInCloudPlanType.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# fattureInCloudSdk.FattureInCloudPlanType

## Enum


* `trial` (value: `"trial"`)

* `standard` (value: `"standard"`)

* `premium` (value: `"premium"`)

* `premium_plus` (value: `"premium_plus"`)

* `complete` (value: `"complete"`)


9 changes: 9 additions & 0 deletions docs/GetCompanyPlanUsageResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# fattureInCloudSdk.GetCompanyPlanUsageResponse

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**CompanyPlanUsage**](CompanyPlanUsage.md) | | [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.0.24",
"version": "2.0.25",
"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.0.24
version: 2.0.25
8 changes: 4 additions & 4 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.0.31
* The version of the OpenAPI document: 2.0.32
* 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.0.24
* @version 2.0.25
*/

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

/**
Expand Down Expand Up @@ -153,7 +153,7 @@ class ApiClient {
url = apiBasePath + path
}

url = url.replace(/\{([\w-\.]+)\}/g, (fullMatch, key) => {
url = url.replace(/\{([\w-\.#]+)\}/g, (fullMatch, key) => {
let value
if (pathParams.hasOwnProperty(key)) {
value = this.paramToString(pathParams[key])
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.0.31
* The version of the OpenAPI document: 2.0.32
* 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.0.24
* @version 2.0.25
*/
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.0.31
* The version of the OpenAPI document: 2.0.32
* 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.0.24
* @version 2.0.25
*/
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.0.31
* The version of the OpenAPI document: 2.0.32
* 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.0.24
* @version 2.0.25
*/
export default class ClientsApi {
/**
Expand Down
Loading

0 comments on commit d7637f0

Please sign in to comment.