Skip to content

Commit 64fabd7

Browse files
authored
Merge pull request #149 from fattureincloud/master
merge master into fix-array-depth
2 parents 04775d9 + 56d4fa0 commit 64fabd7

File tree

292 files changed

+2673
-748
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

292 files changed

+2673
-748
lines changed

.github/workflows/bump-version.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: Checkout OpenAPI repo
1515
env:
1616
GIT_OPENAPI_REPO_PATH: '${{ env.GIT_USER_ID }}/${{ env.GIT_OPENAPI_REPO_ID }}'
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818
with:
1919
path: ./openapi
2020
ref: master
@@ -39,7 +39,7 @@ jobs:
3939
name: Trigger Event
4040
env:
4141
GIT_OPENAPI_REPO_PATH: '${{ env.GIT_USER_ID }}/${{ env.GIT_OPENAPI_REPO_ID }}'
42-
uses: peter-evans/repository-dispatch@v2
42+
uses: peter-evans/repository-dispatch@v3
4343
with:
4444
token: ${{ secrets.FATTUREINCLOUD_BOT_TOKEN }}
4545
repository: ${{ env.GIT_OPENAPI_REPO_PATH }}

.github/workflows/release-version.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
- id: checkout
1010
name: Checkout repo
11-
uses: actions/checkout@v3
11+
uses: actions/checkout@v4
1212
with:
1313
token: ${{ secrets.FATTUREINCLOUD_BOT_TOKEN }}
1414

@@ -20,7 +20,7 @@ jobs:
2020
2121
- id: setup-node
2222
name: Setup Node.js
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v4
2424

2525
- id: setup-libraries
2626
name: Install libraries
@@ -63,7 +63,7 @@ jobs:
6363
- id: create-tag
6464
name: Create tag
6565
if: ${{ !env.ACT }}
66-
uses: actions/github-script@v6
66+
uses: actions/github-script@v7
6767
with:
6868
github-token: ${{ github.token }}
6969
script: |
@@ -76,7 +76,7 @@ jobs:
7676
7777
- id: trigger-create-version
7878
name: Trigger Create Version Event
79-
uses: peter-evans/repository-dispatch@v2
79+
uses: peter-evans/repository-dispatch@v3
8080
with:
8181
token: ${{ github.token }}
8282
event-type: create-release

.github/workflows/trigger-phar-generation.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ jobs:
77
steps:
88
- id: checkout
99
name: Checkout repo
10-
uses: actions/checkout@v3
10+
uses: actions/checkout@v4
1111
with:
1212
token: ${{ secrets.FATTUREINCLOUD_BOT_TOKEN }}
1313

1414
- id: trigger-event
1515
name: Trigger Event
16-
uses: peter-evans/repository-dispatch@v2
16+
uses: peter-evans/repository-dispatch@v3
1717
with:
1818
token: ${{ secrets.FATTUREINCLOUD_BOT_TOKEN }}
1919
event-type: create-release

.github/workflows/validate.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- id: checkout
1919
name: Checkout repo
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- name: Setup PHP with PECL extension
2323
uses: shivammathur/setup-php@v2
@@ -37,7 +37,7 @@ jobs:
3737

3838
- name: Cache Composer packages
3939
id: composer-cache
40-
uses: actions/cache@v3
40+
uses: actions/cache@v4
4141
with:
4242
path: vendor
4343
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}

.openapi-generator/FILES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ docs/Model/CompanyInfoPlanInfo.md
3434
docs/Model/CompanyInfoPlanInfoFunctions.md
3535
docs/Model/CompanyInfoPlanInfoFunctionsStatus.md
3636
docs/Model/CompanyInfoPlanInfoLimits.md
37+
docs/Model/CompanyPlanUsage.md
3738
docs/Model/CompanyType.md
3839
docs/Model/ControlledCompany.md
3940
docs/Model/CreateArchiveDocumentRequest.md
@@ -79,11 +80,13 @@ docs/Model/EntityType.md
7980
docs/Model/EventType.md
8081
docs/Model/F24.md
8182
docs/Model/F24Status.md
83+
docs/Model/FattureInCloudPlanType.md
8284
docs/Model/FunctionStatus.md
8385
docs/Model/GetArchiveDocumentResponse.md
8486
docs/Model/GetCashbookEntryResponse.md
8587
docs/Model/GetClientResponse.md
8688
docs/Model/GetCompanyInfoResponse.md
89+
docs/Model/GetCompanyPlanUsageResponse.md
8790
docs/Model/GetEInvoiceRejectionReasonResponse.md
8891
docs/Model/GetEmailDataResponse.md
8992
docs/Model/GetExistingIssuedDocumentTotalsRequest.md
@@ -283,6 +286,7 @@ lib/Model/CompanyInfoPlanInfo.php
283286
lib/Model/CompanyInfoPlanInfoFunctions.php
284287
lib/Model/CompanyInfoPlanInfoFunctionsStatus.php
285288
lib/Model/CompanyInfoPlanInfoLimits.php
289+
lib/Model/CompanyPlanUsage.php
286290
lib/Model/CompanyType.php
287291
lib/Model/ControlledCompany.php
288292
lib/Model/CreateArchiveDocumentRequest.php
@@ -328,11 +332,13 @@ lib/Model/EntityType.php
328332
lib/Model/EventType.php
329333
lib/Model/F24.php
330334
lib/Model/F24Status.php
335+
lib/Model/FattureInCloudPlanType.php
331336
lib/Model/FunctionStatus.php
332337
lib/Model/GetArchiveDocumentResponse.php
333338
lib/Model/GetCashbookEntryResponse.php
334339
lib/Model/GetClientResponse.php
335340
lib/Model/GetCompanyInfoResponse.php
341+
lib/Model/GetCompanyPlanUsageResponse.php
336342
lib/Model/GetEInvoiceRejectionReasonResponse.php
337343
lib/Model/GetEmailDataResponse.php
338344
lib/Model/GetExistingIssuedDocumentTotalsRequest.php

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.1.0
1+
7.6.0

.php-cs-fixer.cache

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## 2.1.0 (2024-06-17)
6+
7+
### 2.0.26 (2024-05-27)
8+
9+
### 2.0.25 (2024-03-06)
10+
511
### 2.0.24 (2023-12-18)
612

713
### 2.0.23 (2023-10-09)

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ Class | Method | HTTP request | Description
8787
*ClientsApi* | [**listClients**](docs/Api/ClientsApi.md#listclients) | **GET** /c/{company_id}/entities/clients | List Clients
8888
*ClientsApi* | [**modifyClient**](docs/Api/ClientsApi.md#modifyclient) | **PUT** /c/{company_id}/entities/clients/{client_id} | Modify Client
8989
*CompaniesApi* | [**getCompanyInfo**](docs/Api/CompaniesApi.md#getcompanyinfo) | **GET** /c/{company_id}/company/info | Get Company Info
90+
*CompaniesApi* | [**getCompanyPlanUsage**](docs/Api/CompaniesApi.md#getcompanyplanusage) | **GET** /c/{company_id}/company/plan_usage | Get Company Plan Usage
9091
*EmailsApi* | [**listEmails**](docs/Api/EmailsApi.md#listemails) | **GET** /c/{company_id}/emails | List Emails
9192
*InfoApi* | [**listArchiveCategories**](docs/Api/InfoApi.md#listarchivecategories) | **GET** /c/{company_id}/info/archive_categories | List Archive Categories
9293
*InfoApi* | [**listCities**](docs/Api/InfoApi.md#listcities) | **GET** /info/cities | List Cities
@@ -194,6 +195,7 @@ Class | Method | HTTP request | Description
194195
- [CompanyInfoPlanInfoFunctions](docs/Model/CompanyInfoPlanInfoFunctions.md)
195196
- [CompanyInfoPlanInfoFunctionsStatus](docs/Model/CompanyInfoPlanInfoFunctionsStatus.md)
196197
- [CompanyInfoPlanInfoLimits](docs/Model/CompanyInfoPlanInfoLimits.md)
198+
- [CompanyPlanUsage](docs/Model/CompanyPlanUsage.md)
197199
- [CompanyType](docs/Model/CompanyType.md)
198200
- [ControlledCompany](docs/Model/ControlledCompany.md)
199201
- [CreateArchiveDocumentRequest](docs/Model/CreateArchiveDocumentRequest.md)
@@ -239,11 +241,13 @@ Class | Method | HTTP request | Description
239241
- [EventType](docs/Model/EventType.md)
240242
- [F24](docs/Model/F24.md)
241243
- [F24Status](docs/Model/F24Status.md)
244+
- [FattureInCloudPlanType](docs/Model/FattureInCloudPlanType.md)
242245
- [FunctionStatus](docs/Model/FunctionStatus.md)
243246
- [GetArchiveDocumentResponse](docs/Model/GetArchiveDocumentResponse.md)
244247
- [GetCashbookEntryResponse](docs/Model/GetCashbookEntryResponse.md)
245248
- [GetClientResponse](docs/Model/GetClientResponse.md)
246249
- [GetCompanyInfoResponse](docs/Model/GetCompanyInfoResponse.md)
250+
- [GetCompanyPlanUsageResponse](docs/Model/GetCompanyPlanUsageResponse.md)
247251
- [GetEInvoiceRejectionReasonResponse](docs/Model/GetEInvoiceRejectionReasonResponse.md)
248252
- [GetEmailDataResponse](docs/Model/GetEmailDataResponse.md)
249253
- [GetExistingIssuedDocumentTotalsRequest](docs/Model/GetExistingIssuedDocumentTotalsRequest.md)
@@ -476,5 +480,5 @@ [email protected]
476480

477481
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
478482

479-
- API version: `2.0.31`
483+
- API version: `2.1.0`
480484
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`

docs/Api/CompaniesApi.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All URIs are relative to https://api-v2.fattureincloud.it, except if the operati
55
| Method | HTTP request | Description |
66
| ------------- | ------------- | ------------- |
77
| [**getCompanyInfo()**](CompaniesApi.md#getCompanyInfo) | **GET** /c/{company_id}/company/info | Get Company Info |
8+
| [**getCompanyPlanUsage()**](CompaniesApi.md#getCompanyPlanUsage) | **GET** /c/{company_id}/company/plan_usage | Get Company Plan Usage |
89

910

1011
## `getCompanyInfo()`
@@ -66,3 +67,65 @@ try {
6667
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
6768
[[Back to Model list]](../../README.md#models)
6869
[[Back to README]](../../README.md)
70+
71+
## `getCompanyPlanUsage()`
72+
73+
```php
74+
getCompanyPlanUsage($company_id, $category): \FattureInCloud\Model\GetCompanyPlanUsageResponse
75+
```
76+
77+
Get Company Plan Usage
78+
79+
Gets the company limits usage.
80+
81+
### Example
82+
83+
```php
84+
<?php
85+
require_once(__DIR__ . '/vendor/autoload.php');
86+
87+
88+
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
89+
$config = FattureInCloud\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
90+
91+
92+
$apiInstance = new FattureInCloud\Api\CompaniesApi(
93+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
94+
// This is optional, `GuzzleHttp\Client` will be used as default.
95+
new GuzzleHttp\Client(),
96+
$config
97+
);
98+
$company_id = 12345; // int | The ID of the company.
99+
$category = 'category_example'; // string | Category
100+
101+
try {
102+
$result = $apiInstance->getCompanyPlanUsage($company_id, $category);
103+
print_r($result);
104+
} catch (Exception $e) {
105+
echo 'Exception when calling CompaniesApi->getCompanyPlanUsage: ', $e->getMessage(), PHP_EOL;
106+
}
107+
```
108+
109+
### Parameters
110+
111+
| Name | Type | Description | Notes |
112+
| ------------- | ------------- | ------------- | ------------- |
113+
| **company_id** | **int**| The ID of the company. | |
114+
| **category** | **string**| Category | |
115+
116+
### Return type
117+
118+
[**\FattureInCloud\Model\GetCompanyPlanUsageResponse**](../Model/GetCompanyPlanUsageResponse.md)
119+
120+
### Authorization
121+
122+
[OAuth2AuthenticationCodeFlow](../../README.md#OAuth2AuthenticationCodeFlow)
123+
124+
### HTTP request headers
125+
126+
- **Content-Type**: Not defined
127+
- **Accept**: `application/json`
128+
129+
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
130+
[[Back to Model list]](../../README.md#models)
131+
[[Back to README]](../../README.md)

0 commit comments

Comments
 (0)