Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/bump-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Checkout OpenAPI repo
env:
GIT_OPENAPI_REPO_PATH: '${{ env.GIT_USER_ID }}/${{ env.GIT_OPENAPI_REPO_ID }}'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: ./openapi
ref: master
Expand All @@ -39,7 +39,7 @@ jobs:
name: Trigger Event
env:
GIT_OPENAPI_REPO_PATH: '${{ env.GIT_USER_ID }}/${{ env.GIT_OPENAPI_REPO_ID }}'
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.FATTUREINCLOUD_BOT_TOKEN }}
repository: ${{ env.GIT_OPENAPI_REPO_PATH }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

- id: checkout
name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.FATTUREINCLOUD_BOT_TOKEN }}

Expand All @@ -20,7 +20,7 @@ jobs:

- id: setup-node
name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4

- id: setup-libraries
name: Install libraries
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
- id: create-tag
name: Create tag
if: ${{ !env.ACT }}
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{ github.token }}
script: |
Expand All @@ -76,7 +76,7 @@ jobs:

- id: trigger-create-version
name: Trigger Create Version Event
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ github.token }}
event-type: create-release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/trigger-phar-generation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ jobs:
steps:
- id: checkout
name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.FATTUREINCLOUD_BOT_TOKEN }}

- id: trigger-event
name: Trigger Event
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.FATTUREINCLOUD_BOT_TOKEN }}
event-type: create-release
4 changes: 2 additions & 2 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- id: checkout
name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
Expand Down
6 changes: 6 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ docs/Model/CompanyInfoPlanInfo.md
docs/Model/CompanyInfoPlanInfoFunctions.md
docs/Model/CompanyInfoPlanInfoFunctionsStatus.md
docs/Model/CompanyInfoPlanInfoLimits.md
docs/Model/CompanyPlanUsage.md
docs/Model/CompanyType.md
docs/Model/ControlledCompany.md
docs/Model/CreateArchiveDocumentRequest.md
Expand Down Expand Up @@ -79,11 +80,13 @@ docs/Model/EntityType.md
docs/Model/EventType.md
docs/Model/F24.md
docs/Model/F24Status.md
docs/Model/FattureInCloudPlanType.md
docs/Model/FunctionStatus.md
docs/Model/GetArchiveDocumentResponse.md
docs/Model/GetCashbookEntryResponse.md
docs/Model/GetClientResponse.md
docs/Model/GetCompanyInfoResponse.md
docs/Model/GetCompanyPlanUsageResponse.md
docs/Model/GetEInvoiceRejectionReasonResponse.md
docs/Model/GetEmailDataResponse.md
docs/Model/GetExistingIssuedDocumentTotalsRequest.md
Expand Down Expand Up @@ -283,6 +286,7 @@ lib/Model/CompanyInfoPlanInfo.php
lib/Model/CompanyInfoPlanInfoFunctions.php
lib/Model/CompanyInfoPlanInfoFunctionsStatus.php
lib/Model/CompanyInfoPlanInfoLimits.php
lib/Model/CompanyPlanUsage.php
lib/Model/CompanyType.php
lib/Model/ControlledCompany.php
lib/Model/CreateArchiveDocumentRequest.php
Expand Down Expand Up @@ -328,11 +332,13 @@ lib/Model/EntityType.php
lib/Model/EventType.php
lib/Model/F24.php
lib/Model/F24Status.php
lib/Model/FattureInCloudPlanType.php
lib/Model/FunctionStatus.php
lib/Model/GetArchiveDocumentResponse.php
lib/Model/GetCashbookEntryResponse.php
lib/Model/GetClientResponse.php
lib/Model/GetCompanyInfoResponse.php
lib/Model/GetCompanyPlanUsageResponse.php
lib/Model/GetEInvoiceRejectionReasonResponse.php
lib/Model/GetEmailDataResponse.php
lib/Model/GetExistingIssuedDocumentTotalsRequest.php
Expand Down
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.6.0
2 changes: 1 addition & 1 deletion .php-cs-fixer.cache

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

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.

## 2.1.0 (2024-06-17)

### 2.0.26 (2024-05-27)

### 2.0.25 (2024-03-06)

### 2.0.24 (2023-12-18)

### 2.0.23 (2023-10-09)
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ Class | Method | HTTP request | Description
*ClientsApi* | [**listClients**](docs/Api/ClientsApi.md#listclients) | **GET** /c/{company_id}/entities/clients | List Clients
*ClientsApi* | [**modifyClient**](docs/Api/ClientsApi.md#modifyclient) | **PUT** /c/{company_id}/entities/clients/{client_id} | Modify Client
*CompaniesApi* | [**getCompanyInfo**](docs/Api/CompaniesApi.md#getcompanyinfo) | **GET** /c/{company_id}/company/info | Get Company Info
*CompaniesApi* | [**getCompanyPlanUsage**](docs/Api/CompaniesApi.md#getcompanyplanusage) | **GET** /c/{company_id}/company/plan_usage | Get Company Plan Usage
*EmailsApi* | [**listEmails**](docs/Api/EmailsApi.md#listemails) | **GET** /c/{company_id}/emails | List Emails
*InfoApi* | [**listArchiveCategories**](docs/Api/InfoApi.md#listarchivecategories) | **GET** /c/{company_id}/info/archive_categories | List Archive Categories
*InfoApi* | [**listCities**](docs/Api/InfoApi.md#listcities) | **GET** /info/cities | List Cities
Expand Down Expand Up @@ -194,6 +195,7 @@ Class | Method | HTTP request | Description
- [CompanyInfoPlanInfoFunctions](docs/Model/CompanyInfoPlanInfoFunctions.md)
- [CompanyInfoPlanInfoFunctionsStatus](docs/Model/CompanyInfoPlanInfoFunctionsStatus.md)
- [CompanyInfoPlanInfoLimits](docs/Model/CompanyInfoPlanInfoLimits.md)
- [CompanyPlanUsage](docs/Model/CompanyPlanUsage.md)
- [CompanyType](docs/Model/CompanyType.md)
- [ControlledCompany](docs/Model/ControlledCompany.md)
- [CreateArchiveDocumentRequest](docs/Model/CreateArchiveDocumentRequest.md)
Expand Down Expand Up @@ -239,11 +241,13 @@ Class | Method | HTTP request | Description
- [EventType](docs/Model/EventType.md)
- [F24](docs/Model/F24.md)
- [F24Status](docs/Model/F24Status.md)
- [FattureInCloudPlanType](docs/Model/FattureInCloudPlanType.md)
- [FunctionStatus](docs/Model/FunctionStatus.md)
- [GetArchiveDocumentResponse](docs/Model/GetArchiveDocumentResponse.md)
- [GetCashbookEntryResponse](docs/Model/GetCashbookEntryResponse.md)
- [GetClientResponse](docs/Model/GetClientResponse.md)
- [GetCompanyInfoResponse](docs/Model/GetCompanyInfoResponse.md)
- [GetCompanyPlanUsageResponse](docs/Model/GetCompanyPlanUsageResponse.md)
- [GetEInvoiceRejectionReasonResponse](docs/Model/GetEInvoiceRejectionReasonResponse.md)
- [GetEmailDataResponse](docs/Model/GetEmailDataResponse.md)
- [GetExistingIssuedDocumentTotalsRequest](docs/Model/GetExistingIssuedDocumentTotalsRequest.md)
Expand Down Expand Up @@ -476,5 +480,5 @@ [email protected]

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

- API version: `2.0.31`
- API version: `2.1.0`
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`
63 changes: 63 additions & 0 deletions docs/Api/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, except if the operati
| 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 |


## `getCompanyInfo()`
Expand Down Expand Up @@ -66,3 +67,65 @@ try {
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `getCompanyPlanUsage()`

```php
getCompanyPlanUsage($company_id, $category): \FattureInCloud\Model\GetCompanyPlanUsageResponse
```

Get Company Plan Usage

Gets the company limits usage.

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
$config = FattureInCloud\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new FattureInCloud\Api\CompaniesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$company_id = 12345; // int | The ID of the company.
$category = 'category_example'; // string | Category

try {
$result = $apiInstance->getCompanyPlanUsage($company_id, $category);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CompaniesApi->getCompanyPlanUsage: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **company_id** | **int**| The ID of the company. | |
| **category** | **string**| Category | |

### Return type

[**\FattureInCloud\Model\GetCompanyPlanUsageResponse**](../Model/GetCompanyPlanUsageResponse.md)

### Authorization

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

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
3 changes: 3 additions & 0 deletions docs/Model/Company.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ Name | Type | Description | Notes
**type** | [**\FattureInCloud\Model\CompanyType**](CompanyType.md) | | [optional]
**access_token** | **string** | Company authentication token for this company. [Only if type&#x3D;company] | [optional]
**controlled_companies** | [**\FattureInCloud\Model\ControlledCompany[]**](ControlledCompany.md) | Company list of controlled companies [Only if type&#x3D;accountant] | [optional]
**fic_license_expire** | **\DateTime** | | [optional]
**fic_plan** | [**\FattureInCloud\Model\FattureInCloudPlanType**](FattureInCloudPlanType.md) | | [optional]
**connection_id** | **int** | Company connection id | [optional]
**tax_code** | **string** | Company tax code | [optional]
**vat_number** | **string** | Company vat number | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
2 changes: 2 additions & 0 deletions docs/Model/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** | [**\FattureInCloud\Model\CompanyType**](CompanyType.md) | | [optional]
**access_info** | [**\FattureInCloud\Model\CompanyInfoAccessInfo**](CompanyInfoAccessInfo.md) | | [optional]
**fic_license_expire** | **\DateTime** | | [optional]
**fic_plan_name** | [**\FattureInCloud\Model\FattureInCloudPlanType**](FattureInCloudPlanType.md) | | [optional]
**plan_info** | [**\FattureInCloud\Model\CompanyInfoPlanInfo**](CompanyInfoPlanInfo.md) | | [optional]
**accountant_id** | **int** | Company accountant id | [optional]
**is_accountant** | **bool** | Is the logged account an accountant. | [optional]
Expand Down
10 changes: 10 additions & 0 deletions docs/Model/CompanyPlanUsage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# # CompanyPlanUsage

## Properties

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

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
2 changes: 2 additions & 0 deletions docs/Model/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** | [**\FattureInCloud\Model\CompanyType**](CompanyType.md) | | [optional]
**access_token** | **string** | Controlled company access token Only if type&#x3D;company] | [optional]
**fic_license_expire** | **\DateTime** | | [optional]
**fic_plan** | [**\FattureInCloud\Model\FattureInCloudPlanType**](FattureInCloudPlanType.md) | | [optional]
**connection_id** | **float** | Controlled company connection id | [optional]
**tax_code** | **string** | Controlled company tax code | [optional]

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

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
9 changes: 9 additions & 0 deletions docs/Model/GetCompanyPlanUsageResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# # GetCompanyPlanUsageResponse

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**\FattureInCloud\Model\CompanyPlanUsage**](CompanyPlanUsage.md) | | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
1 change: 0 additions & 1 deletion docs/Model/IssuedDocument.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ Name | Type | Description | Notes
**show_payments** | **bool** | Show the expiration dates of the payments on the document | [optional]
**show_payment_method** | **bool** | Show the payment method details on the document | [optional]
**show_totals** | [**\FattureInCloud\Model\ShowTotalsMode**](ShowTotalsMode.md) | | [optional]
**show_paypal_button** | **bool** | Show paypal button in the PDF | [optional]
**show_notification_button** | **bool** | Show notification button in the PDF | [optional]
**show_tspay_button** | **bool** | Show ts pay button in the PDF | [optional]
**delivery_note** | **bool** | Issued document has delivery note | [optional]
Expand Down
1 change: 0 additions & 1 deletion docs/Model/IssuedDocumentExtraData.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**show_sofort_button** | **bool** | | [optional]
**multifatture_sent** | **int** | | [optional]
**ts_communication** | **bool** | Send issued document to \&quot;Sistema Tessera Sanitaria\&quot; | [optional]
**ts_flag_tipo_spesa** | **float** | Issued document ts \&quot;tipo spesa\&quot; [TK, FC, FV, SV,SP, AD, AS, ECG, SR] | [optional]
Expand Down
14 changes: 7 additions & 7 deletions lib/Api/ArchiveApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,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.0.31
* The version of the OpenAPI document: 2.1.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.1.0
* Generator version: 7.6.0
*/

/**
Expand Down Expand Up @@ -93,11 +93,11 @@ class ArchiveApi
];

/**
* @param ClientInterface $client
* @param Configuration $config
* @param HeaderSelector $selector
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
* @param ClientInterface $client
* @param Configuration $config
* @param HeaderSelector $selector
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
Expand Down
14 changes: 7 additions & 7 deletions lib/Api/CashbookApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,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.0.31
* The version of the OpenAPI document: 2.1.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.1.0
* Generator version: 7.6.0
*/

/**
Expand Down Expand Up @@ -90,11 +90,11 @@ class CashbookApi
];

/**
* @param ClientInterface $client
* @param Configuration $config
* @param HeaderSelector $selector
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
* @param ClientInterface $client
* @param Configuration $config
* @param HeaderSelector $selector
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
Expand Down
Loading