Skip to content

Commit 81e9ef1

Browse files
authored
Merge pull request #151 from fattureincloud/devel-2.1.1
Updating SDK to 2.1.1
2 parents a6f024f + fbaa878 commit 81e9ef1

File tree

291 files changed

+6936
-4784
lines changed

Some content is hidden

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

291 files changed

+6936
-4784
lines changed

.openapi-generator/FILES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ docs/Model/GetReceiptsMonthlyTotalsResponse.md
109109
docs/Model/GetReceivedDocumentPreCreateInfoResponse.md
110110
docs/Model/GetReceivedDocumentResponse.md
111111
docs/Model/GetSupplierResponse.md
112+
docs/Model/GetTaxProfileResponse.md
112113
docs/Model/GetUserInfoResponse.md
113114
docs/Model/GetUserInfoResponseEmailConfirmationState.md
114115
docs/Model/GetUserInfoResponseInfo.md
@@ -232,6 +233,7 @@ docs/Model/SenderEmail.md
232233
docs/Model/ShowTotalsMode.md
233234
docs/Model/Supplier.md
234235
docs/Model/SupplierType.md
236+
docs/Model/TaxProfile.md
235237
docs/Model/TransformIssuedDocumentResponse.md
236238
docs/Model/UploadArchiveAttachmentResponse.md
237239
docs/Model/UploadF24AttachmentResponse.md
@@ -361,6 +363,7 @@ lib/Model/GetReceiptsMonthlyTotalsResponse.php
361363
lib/Model/GetReceivedDocumentPreCreateInfoResponse.php
362364
lib/Model/GetReceivedDocumentResponse.php
363365
lib/Model/GetSupplierResponse.php
366+
lib/Model/GetTaxProfileResponse.php
364367
lib/Model/GetUserInfoResponse.php
365368
lib/Model/GetUserInfoResponseEmailConfirmationState.php
366369
lib/Model/GetUserInfoResponseInfo.php
@@ -485,6 +488,7 @@ lib/Model/SenderEmail.php
485488
lib/Model/ShowTotalsMode.php
486489
lib/Model/Supplier.php
487490
lib/Model/SupplierType.php
491+
lib/Model/TaxProfile.php
488492
lib/Model/TransformIssuedDocumentResponse.php
489493
lib/Model/UploadArchiveAttachmentResponse.php
490494
lib/Model/UploadF24AttachmentResponse.php
@@ -506,3 +510,5 @@ lib/Model/WebhooksSubscriptionConfig.php
506510
lib/Model/WebhooksSubscriptionMapping.php
507511
lib/ObjectSerializer.php
508512
phpunit.xml.dist
513+
test/Model/GetTaxProfileResponseTest.php
514+
test/Model/TaxProfileTest.php

.openapi-generator/VERSION

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

.php-cs-fixer.cache

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

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# FattureInCloud PHP SDK
22

33
[![Packagist](https://img.shields.io/packagist/v/fattureincloud/fattureincloud-php-sdk?color=g)](https://packagist.org/packages/fattureincloud/fattureincloud-php-sdk) ![unit tests](https://github.com/fattureincloud/fattureincloud-php-sdk/actions/workflows/validate.yaml/badge.svg)
4-
54
Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy.
65

76
The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
@@ -153,6 +152,7 @@ Class | Method | HTTP request | Description
153152
*SettingsApi* | [**deleteVatType**](docs/Api/SettingsApi.md#deletevattype) | **DELETE** /c/{company_id}/settings/vat_types/{vat_type_id} | Delete Vat Type
154153
*SettingsApi* | [**getPaymentAccount**](docs/Api/SettingsApi.md#getpaymentaccount) | **GET** /c/{company_id}/settings/payment_accounts/{payment_account_id} | Get Payment Account
155154
*SettingsApi* | [**getPaymentMethod**](docs/Api/SettingsApi.md#getpaymentmethod) | **GET** /c/{company_id}/settings/payment_methods/{payment_method_id} | Get Payment Method
155+
*SettingsApi* | [**getTaxProfile**](docs/Api/SettingsApi.md#gettaxprofile) | **GET** /c/{company_id}/settings/tax_profile | Get Tax Profile
156156
*SettingsApi* | [**getVatType**](docs/Api/SettingsApi.md#getvattype) | **GET** /c/{company_id}/settings/vat_types/{vat_type_id} | Get Vat Type
157157
*SettingsApi* | [**modifyPaymentAccount**](docs/Api/SettingsApi.md#modifypaymentaccount) | **PUT** /c/{company_id}/settings/payment_accounts/{payment_account_id} | Modify Payment Account
158158
*SettingsApi* | [**modifyPaymentMethod**](docs/Api/SettingsApi.md#modifypaymentmethod) | **PUT** /c/{company_id}/settings/payment_methods/{payment_method_id} | Modify Payment Method
@@ -270,6 +270,7 @@ Class | Method | HTTP request | Description
270270
- [GetReceivedDocumentPreCreateInfoResponse](docs/Model/GetReceivedDocumentPreCreateInfoResponse.md)
271271
- [GetReceivedDocumentResponse](docs/Model/GetReceivedDocumentResponse.md)
272272
- [GetSupplierResponse](docs/Model/GetSupplierResponse.md)
273+
- [GetTaxProfileResponse](docs/Model/GetTaxProfileResponse.md)
273274
- [GetUserInfoResponse](docs/Model/GetUserInfoResponse.md)
274275
- [GetUserInfoResponseEmailConfirmationState](docs/Model/GetUserInfoResponseEmailConfirmationState.md)
275276
- [GetUserInfoResponseInfo](docs/Model/GetUserInfoResponseInfo.md)
@@ -393,6 +394,7 @@ Class | Method | HTTP request | Description
393394
- [ShowTotalsMode](docs/Model/ShowTotalsMode.md)
394395
- [Supplier](docs/Model/Supplier.md)
395396
- [SupplierType](docs/Model/SupplierType.md)
397+
- [TaxProfile](docs/Model/TaxProfile.md)
396398
- [TransformIssuedDocumentResponse](docs/Model/TransformIssuedDocumentResponse.md)
397399
- [UploadArchiveAttachmentResponse](docs/Model/UploadArchiveAttachmentResponse.md)
398400
- [UploadF24AttachmentResponse](docs/Model/UploadF24AttachmentResponse.md)
@@ -480,5 +482,5 @@ [email protected]
480482

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

483-
- API version: `2.1.0`
485+
- API version: `2.1.2`
484486
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`

docs/Api/ArchiveApi.md

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ $apiInstance = new FattureInCloud\Api\ArchiveApi(
3939
new GuzzleHttp\Client(),
4040
$config
4141
);
42-
$company_id = 12345; // int | The ID of the company.
43-
$create_archive_document_request = new \FattureInCloud\Model\CreateArchiveDocumentRequest; // \FattureInCloud\Model\CreateArchiveDocumentRequest | The Archive Document.
44-
42+
$company_id = 12345; // int | The ID of the company.$create_archive_document_request = new \FattureInCloud\Model\CreateArchiveDocumentRequest; // \FattureInCloud\Model\CreateArchiveDocumentRequest | The Archive Document.
4543
try {
4644
$result = $apiInstance->createArchiveDocument($company_id, $create_archive_document_request);
4745
print_r($result);
@@ -101,9 +99,7 @@ $apiInstance = new FattureInCloud\Api\ArchiveApi(
10199
new GuzzleHttp\Client(),
102100
$config
103101
);
104-
$company_id = 12345; // int | The ID of the company.
105-
$document_id = 56; // int | The ID of the document.
106-
102+
$company_id = 12345; // int | The ID of the company.$document_id = 56; // int | The ID of the document.
107103
try {
108104
$apiInstance->deleteArchiveDocument($company_id, $document_id);
109105
} catch (Exception $e) {
@@ -162,11 +158,7 @@ $apiInstance = new FattureInCloud\Api\ArchiveApi(
162158
new GuzzleHttp\Client(),
163159
$config
164160
);
165-
$company_id = 12345; // int | The ID of the company.
166-
$document_id = 56; // int | The ID of the document.
167-
$fields = 'fields_example'; // string | List of comma-separated fields.
168-
$fieldset = 'fieldset_example'; // string | Name of the fieldset.
169-
161+
$company_id = 12345; // int | The ID of the company.$document_id = 56; // int | The ID of the document.$fields = 'fields_example'; // string | List of comma-separated fields.$fieldset = 'fieldset_example'; // string | Name of the fieldset.
170162
try {
171163
$result = $apiInstance->getArchiveDocument($company_id, $document_id, $fields, $fieldset);
172164
print_r($result);
@@ -228,14 +220,7 @@ $apiInstance = new FattureInCloud\Api\ArchiveApi(
228220
new GuzzleHttp\Client(),
229221
$config
230222
);
231-
$company_id = 12345; // int | The ID of the company.
232-
$fields = 'fields_example'; // string | List of comma-separated fields.
233-
$fieldset = 'fieldset_example'; // string | Name of the fieldset.
234-
$sort = 'sort_example'; // string | List of comma-separated fields for result sorting (minus for desc sorting).
235-
$page = 1; // int | The page to retrieve.
236-
$per_page = 5; // int | The size of the page.
237-
$q = 'q_example'; // string | Query for filtering the results.
238-
223+
$company_id = 12345; // int | The ID of the company.$fields = 'fields_example'; // string | List of comma-separated fields.$fieldset = 'fieldset_example'; // string | Name of the fieldset.$sort = 'sort_example'; // string | List of comma-separated fields for result sorting (minus for desc sorting).$page = 1; // int | The page to retrieve.$per_page = 5; // int | The size of the page.$q = 'q_example'; // string | Query for filtering the results.
239224
try {
240225
$result = $apiInstance->listArchiveDocuments($company_id, $fields, $fieldset, $sort, $page, $per_page, $q);
241226
print_r($result);
@@ -300,10 +285,7 @@ $apiInstance = new FattureInCloud\Api\ArchiveApi(
300285
new GuzzleHttp\Client(),
301286
$config
302287
);
303-
$company_id = 12345; // int | The ID of the company.
304-
$document_id = 56; // int | The ID of the document.
305-
$modify_archive_document_request = new \FattureInCloud\Model\ModifyArchiveDocumentRequest; // \FattureInCloud\Model\ModifyArchiveDocumentRequest | Modified Archive Document
306-
288+
$company_id = 12345; // int | The ID of the company.$document_id = 56; // int | The ID of the document.$modify_archive_document_request = new \FattureInCloud\Model\ModifyArchiveDocumentRequest; // \FattureInCloud\Model\ModifyArchiveDocumentRequest | Modified Archive Document
307289
try {
308290
$result = $apiInstance->modifyArchiveDocument($company_id, $document_id, $modify_archive_document_request);
309291
print_r($result);
@@ -364,10 +346,7 @@ $apiInstance = new FattureInCloud\Api\ArchiveApi(
364346
new GuzzleHttp\Client(),
365347
$config
366348
);
367-
$company_id = 12345; // int | The ID of the company.
368-
$filename = 'filename_example'; // string | Attachment file name
369-
$attachment = "/path/to/file.txt"; // \SplFileObject | Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]
370-
349+
$company_id = 12345; // int | The ID of the company.$filename = 'filename_example'; // string | Attachment file name$attachment = "/path/to/file.txt"; // \SplFileObject | Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx]
371350
try {
372351
$result = $apiInstance->uploadArchiveDocumentAttachment($company_id, $filename, $attachment);
373352
print_r($result);

docs/Api/CashbookApi.md

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ $apiInstance = new FattureInCloud\Api\CashbookApi(
3838
new GuzzleHttp\Client(),
3939
$config
4040
);
41-
$company_id = 12345; // int | The ID of the company.
42-
$create_cashbook_entry_request = new \FattureInCloud\Model\CreateCashbookEntryRequest; // \FattureInCloud\Model\CreateCashbookEntryRequest | Cashbook entry.
43-
41+
$company_id = 12345; // int | The ID of the company.$create_cashbook_entry_request = new \FattureInCloud\Model\CreateCashbookEntryRequest; // \FattureInCloud\Model\CreateCashbookEntryRequest | Cashbook entry.
4442
try {
4543
$result = $apiInstance->createCashbookEntry($company_id, $create_cashbook_entry_request);
4644
print_r($result);
@@ -100,9 +98,7 @@ $apiInstance = new FattureInCloud\Api\CashbookApi(
10098
new GuzzleHttp\Client(),
10199
$config
102100
);
103-
$company_id = 12345; // int | The ID of the company.
104-
$document_id = 'document_id_example'; // string | The ID of the document.
105-
101+
$company_id = 12345; // int | The ID of the company.$document_id = 'document_id_example'; // string | The ID of the document.
106102
try {
107103
$apiInstance->deleteCashbookEntry($company_id, $document_id);
108104
} catch (Exception $e) {
@@ -161,11 +157,7 @@ $apiInstance = new FattureInCloud\Api\CashbookApi(
161157
new GuzzleHttp\Client(),
162158
$config
163159
);
164-
$company_id = 12345; // int | The ID of the company.
165-
$document_id = 'document_id_example'; // string | The ID of the document.
166-
$fields = 'fields_example'; // string | List of comma-separated fields.
167-
$fieldset = 'fieldset_example'; // string | Name of the fieldset.
168-
160+
$company_id = 12345; // int | The ID of the company.$document_id = 'document_id_example'; // string | The ID of the document.$fields = 'fields_example'; // string | List of comma-separated fields.$fieldset = 'fieldset_example'; // string | Name of the fieldset.
169161
try {
170162
$result = $apiInstance->getCashbookEntry($company_id, $document_id, $fields, $fieldset);
171163
print_r($result);
@@ -227,13 +219,7 @@ $apiInstance = new FattureInCloud\Api\CashbookApi(
227219
new GuzzleHttp\Client(),
228220
$config
229221
);
230-
$company_id = 12345; // int | The ID of the company.
231-
$date_from = 'date_from_example'; // string | Start date.
232-
$date_to = 'date_to_example'; // string | End date.
233-
$year = 56; // int | Filter cashbook by year.
234-
$type = 'type_example'; // string | Filter cashbook by type.
235-
$payment_account_id = 56; // int | Filter by payment account.
236-
222+
$company_id = 12345; // int | The ID of the company.$date_from = 'date_from_example'; // string | Start date.$date_to = 'date_to_example'; // string | End date.$year = 56; // int | Filter cashbook by year.$type = 'type_example'; // string | Filter cashbook by type.$payment_account_id = 56; // int | Filter by payment account.
237223
try {
238224
$result = $apiInstance->listCashbookEntries($company_id, $date_from, $date_to, $year, $type, $payment_account_id);
239225
print_r($result);
@@ -297,10 +283,7 @@ $apiInstance = new FattureInCloud\Api\CashbookApi(
297283
new GuzzleHttp\Client(),
298284
$config
299285
);
300-
$company_id = 12345; // int | The ID of the company.
301-
$document_id = 'document_id_example'; // string | The ID of the document.
302-
$modify_cashbook_entry_request = new \FattureInCloud\Model\ModifyCashbookEntryRequest; // \FattureInCloud\Model\ModifyCashbookEntryRequest | Cashbook Entry
303-
286+
$company_id = 12345; // int | The ID of the company.$document_id = 'document_id_example'; // string | The ID of the document.$modify_cashbook_entry_request = new \FattureInCloud\Model\ModifyCashbookEntryRequest; // \FattureInCloud\Model\ModifyCashbookEntryRequest | Cashbook Entry
304287
try {
305288
$result = $apiInstance->modifyCashbookEntry($company_id, $document_id, $modify_cashbook_entry_request);
306289
print_r($result);

docs/Api/ClientsApi.md

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ $apiInstance = new FattureInCloud\Api\ClientsApi(
3838
new GuzzleHttp\Client(),
3939
$config
4040
);
41-
$company_id = 12345; // int | The ID of the company.
42-
$create_client_request = new \FattureInCloud\Model\CreateClientRequest; // \FattureInCloud\Model\CreateClientRequest | The client to create
43-
41+
$company_id = 12345; // int | The ID of the company.$create_client_request = new \FattureInCloud\Model\CreateClientRequest; // \FattureInCloud\Model\CreateClientRequest | The client to create
4442
try {
4543
$result = $apiInstance->createClient($company_id, $create_client_request);
4644
print_r($result);
@@ -100,9 +98,7 @@ $apiInstance = new FattureInCloud\Api\ClientsApi(
10098
new GuzzleHttp\Client(),
10199
$config
102100
);
103-
$company_id = 12345; // int | The ID of the company.
104-
$client_id = 56; // int | The ID of the client.
105-
101+
$company_id = 12345; // int | The ID of the company.$client_id = 56; // int | The ID of the client.
106102
try {
107103
$apiInstance->deleteClient($company_id, $client_id);
108104
} catch (Exception $e) {
@@ -161,11 +157,7 @@ $apiInstance = new FattureInCloud\Api\ClientsApi(
161157
new GuzzleHttp\Client(),
162158
$config
163159
);
164-
$company_id = 12345; // int | The ID of the company.
165-
$client_id = 56; // int | The ID of the client.
166-
$fields = 'fields_example'; // string | List of comma-separated fields.
167-
$fieldset = 'fieldset_example'; // string | Name of the fieldset.
168-
160+
$company_id = 12345; // int | The ID of the company.$client_id = 56; // int | The ID of the client.$fields = 'fields_example'; // string | List of comma-separated fields.$fieldset = 'fieldset_example'; // string | Name of the fieldset.
169161
try {
170162
$result = $apiInstance->getClient($company_id, $client_id, $fields, $fieldset);
171163
print_r($result);
@@ -227,14 +219,7 @@ $apiInstance = new FattureInCloud\Api\ClientsApi(
227219
new GuzzleHttp\Client(),
228220
$config
229221
);
230-
$company_id = 12345; // int | The ID of the company.
231-
$fields = 'fields_example'; // string | List of comma-separated fields.
232-
$fieldset = 'fieldset_example'; // string | Name of the fieldset.
233-
$sort = 'sort_example'; // string | List of comma-separated fields for result sorting (minus for desc sorting).
234-
$page = 1; // int | The page to retrieve.
235-
$per_page = 5; // int | The size of the page.
236-
$q = 'q_example'; // string | Query for filtering the results.
237-
222+
$company_id = 12345; // int | The ID of the company.$fields = 'fields_example'; // string | List of comma-separated fields.$fieldset = 'fieldset_example'; // string | Name of the fieldset.$sort = 'sort_example'; // string | List of comma-separated fields for result sorting (minus for desc sorting).$page = 1; // int | The page to retrieve.$per_page = 5; // int | The size of the page.$q = 'q_example'; // string | Query for filtering the results.
238223
try {
239224
$result = $apiInstance->listClients($company_id, $fields, $fieldset, $sort, $page, $per_page, $q);
240225
print_r($result);
@@ -299,10 +284,7 @@ $apiInstance = new FattureInCloud\Api\ClientsApi(
299284
new GuzzleHttp\Client(),
300285
$config
301286
);
302-
$company_id = 12345; // int | The ID of the company.
303-
$client_id = 56; // int | The ID of the client.
304-
$modify_client_request = new \FattureInCloud\Model\ModifyClientRequest; // \FattureInCloud\Model\ModifyClientRequest | The modified Client. First level parameters are managed in delta mode.
305-
287+
$company_id = 12345; // int | The ID of the company.$client_id = 56; // int | The ID of the client.$modify_client_request = new \FattureInCloud\Model\ModifyClientRequest; // \FattureInCloud\Model\ModifyClientRequest | The modified Client. First level parameters are managed in delta mode.
306288
try {
307289
$result = $apiInstance->modifyClient($company_id, $client_id, $modify_client_request);
308290
print_r($result);

docs/Api/CompaniesApi.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ $apiInstance = new FattureInCloud\Api\CompaniesApi(
3535
new GuzzleHttp\Client(),
3636
$config
3737
);
38-
$company_id = 12345; // int | The ID of the company.
39-
38+
$company_id = 12345; // int | The ID of the company.
4039
try {
4140
$result = $apiInstance->getCompanyInfo($company_id);
4241
print_r($result);
@@ -95,9 +94,7 @@ $apiInstance = new FattureInCloud\Api\CompaniesApi(
9594
new GuzzleHttp\Client(),
9695
$config
9796
);
98-
$company_id = 12345; // int | The ID of the company.
99-
$category = 'category_example'; // string | Category
100-
97+
$company_id = 12345; // int | The ID of the company.$category = 'category_example'; // string | Category
10198
try {
10299
$result = $apiInstance->getCompanyPlanUsage($company_id, $category);
103100
print_r($result);

docs/Api/EmailsApi.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ $apiInstance = new FattureInCloud\Api\EmailsApi(
3434
new GuzzleHttp\Client(),
3535
$config
3636
);
37-
$company_id = 12345; // int | The ID of the company.
38-
37+
$company_id = 12345; // int | The ID of the company.
3938
try {
4039
$result = $apiInstance->listEmails($company_id);
4140
print_r($result);

0 commit comments

Comments
 (0)