Skip to content

Commit 4ea1ccb

Browse files
authored
chore: Updating SDK to 2.0.24
2 parents b24842b + 1edc678 commit 4ea1ccb

257 files changed

Lines changed: 3031 additions & 900 deletions

File tree

Some content is hidden

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

.github/workflows/validate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- id: psalm-validation
5656
name: Psalm Validation
5757
run: |
58-
composer require --dev vimeo/psalm "4.30"
58+
composer require --dev vimeo/psalm "4.30" -W
5959
./vendor/bin/psalm --init
6060
composer require --dev alexeyshockov/guzzle-psalm-plugin && vendor/bin/psalm-plugin enable alexeyshockov/guzzle-psalm-plugin
6161
./vendor/bin/psalm

.openapi-generator/FILES

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,5 +500,3 @@ lib/Model/WebhooksSubscriptionConfig.php
500500
lib/Model/WebhooksSubscriptionMapping.php
501501
lib/ObjectSerializer.php
502502
phpunit.xml.dist
503-
test/Model/WebhooksSubscriptionConfigTest.php
504-
test/Model/WebhooksSubscriptionMappingTest.php

.openapi-generator/VERSION

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

.php-cs-fixer.cache

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,5 +476,5 @@ info@fattureincloud.it
476476

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

479-
- API version: `2.0.30`
479+
- API version: `2.0.31`
480480
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`

lib/Api/ArchiveApi.php

Lines changed: 144 additions & 24 deletions
Large diffs are not rendered by default.

lib/Api/CashbookApi.php

Lines changed: 116 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
*
1515
* 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.
1616
*
17-
* The version of the OpenAPI document: 2.0.30
17+
* The version of the OpenAPI document: 2.0.31
1818
* Contact: info@fattureincloud.it
1919
* Generated by: https://openapi-generator.tech
20-
* OpenAPI Generator version: 7.0.1
20+
* OpenAPI Generator version: 7.1.0
2121
*/
2222

2323
/**
@@ -144,7 +144,7 @@ public function getConfig()
144144
* @param \FattureInCloud\Model\CreateCashbookEntryRequest $create_cashbook_entry_request Cashbook entry. (optional)
145145
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['createCashbookEntry'] to see the possible values for this operation
146146
*
147-
* @throws \FattureInCloud\ApiException on non-2xx response
147+
* @throws \FattureInCloud\ApiException on non-2xx response or if the response body is not in the expected format
148148
* @throws \InvalidArgumentException
149149
* @return \FattureInCloud\Model\CreateCashbookEntryResponse
150150
*/
@@ -163,7 +163,7 @@ public function createCashbookEntry($company_id, $create_cashbook_entry_request
163163
* @param \FattureInCloud\Model\CreateCashbookEntryRequest $create_cashbook_entry_request Cashbook entry. (optional)
164164
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['createCashbookEntry'] to see the possible values for this operation
165165
*
166-
* @throws \FattureInCloud\ApiException on non-2xx response
166+
* @throws \FattureInCloud\ApiException on non-2xx response or if the response body is not in the expected format
167167
* @throws \InvalidArgumentException
168168
* @return array of \FattureInCloud\Model\CreateCashbookEntryResponse, HTTP status code, HTTP response headers (array of strings)
169169
*/
@@ -213,7 +213,19 @@ public function createCashbookEntryWithHttpInfo($company_id, $create_cashbook_en
213213
} else {
214214
$content = (string) $response->getBody();
215215
if ('\FattureInCloud\Model\CreateCashbookEntryResponse' !== 'string') {
216-
$content = json_decode($content);
216+
try {
217+
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
218+
} catch (\JsonException $exception) {
219+
throw new ApiException(
220+
sprintf(
221+
'Error JSON decoding server response (%s)',
222+
$request->getUri()
223+
),
224+
$statusCode,
225+
$response->getHeaders(),
226+
$content
227+
);
228+
}
217229
}
218230
}
219231

@@ -230,7 +242,19 @@ public function createCashbookEntryWithHttpInfo($company_id, $create_cashbook_en
230242
} else {
231243
$content = (string) $response->getBody();
232244
if ($returnType !== 'string') {
233-
$content = json_decode($content);
245+
try {
246+
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
247+
} catch (\JsonException $exception) {
248+
throw new ApiException(
249+
sprintf(
250+
'Error JSON decoding server response (%s)',
251+
$request->getUri()
252+
),
253+
$statusCode,
254+
$response->getHeaders(),
255+
$content
256+
);
257+
}
234258
}
235259
}
236260

@@ -444,7 +468,7 @@ public function createCashbookEntryRequest($company_id, $create_cashbook_entry_r
444468
* @param string $document_id The ID of the document. (required)
445469
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteCashbookEntry'] to see the possible values for this operation
446470
*
447-
* @throws \FattureInCloud\ApiException on non-2xx response
471+
* @throws \FattureInCloud\ApiException on non-2xx response or if the response body is not in the expected format
448472
* @throws \InvalidArgumentException
449473
* @return void
450474
*/
@@ -462,7 +486,7 @@ public function deleteCashbookEntry($company_id, $document_id, string $contentTy
462486
* @param string $document_id The ID of the document. (required)
463487
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteCashbookEntry'] to see the possible values for this operation
464488
*
465-
* @throws \FattureInCloud\ApiException on non-2xx response
489+
* @throws \FattureInCloud\ApiException on non-2xx response or if the response body is not in the expected format
466490
* @throws \InvalidArgumentException
467491
* @return array of null, HTTP status code, HTTP response headers (array of strings)
468492
*/
@@ -699,7 +723,7 @@ public function deleteCashbookEntryRequest($company_id, $document_id, string $co
699723
* @param string $fieldset Name of the fieldset. (optional)
700724
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCashbookEntry'] to see the possible values for this operation
701725
*
702-
* @throws \FattureInCloud\ApiException on non-2xx response
726+
* @throws \FattureInCloud\ApiException on non-2xx response or if the response body is not in the expected format
703727
* @throws \InvalidArgumentException
704728
* @return \FattureInCloud\Model\GetCashbookEntryResponse
705729
*/
@@ -720,7 +744,7 @@ public function getCashbookEntry($company_id, $document_id, $fields = null, $fie
720744
* @param string $fieldset Name of the fieldset. (optional)
721745
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCashbookEntry'] to see the possible values for this operation
722746
*
723-
* @throws \FattureInCloud\ApiException on non-2xx response
747+
* @throws \FattureInCloud\ApiException on non-2xx response or if the response body is not in the expected format
724748
* @throws \InvalidArgumentException
725749
* @return array of \FattureInCloud\Model\GetCashbookEntryResponse, HTTP status code, HTTP response headers (array of strings)
726750
*/
@@ -770,7 +794,19 @@ public function getCashbookEntryWithHttpInfo($company_id, $document_id, $fields
770794
} else {
771795
$content = (string) $response->getBody();
772796
if ('\FattureInCloud\Model\GetCashbookEntryResponse' !== 'string') {
773-
$content = json_decode($content);
797+
try {
798+
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
799+
} catch (\JsonException $exception) {
800+
throw new ApiException(
801+
sprintf(
802+
'Error JSON decoding server response (%s)',
803+
$request->getUri()
804+
),
805+
$statusCode,
806+
$response->getHeaders(),
807+
$content
808+
);
809+
}
774810
}
775811
}
776812

@@ -787,7 +823,19 @@ public function getCashbookEntryWithHttpInfo($company_id, $document_id, $fields
787823
} else {
788824
$content = (string) $response->getBody();
789825
if ($returnType !== 'string') {
790-
$content = json_decode($content);
826+
try {
827+
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
828+
} catch (\JsonException $exception) {
829+
throw new ApiException(
830+
sprintf(
831+
'Error JSON decoding server response (%s)',
832+
$request->getUri()
833+
),
834+
$statusCode,
835+
$response->getHeaders(),
836+
$content
837+
);
838+
}
791839
}
792840
}
793841

@@ -1038,7 +1086,7 @@ public function getCashbookEntryRequest($company_id, $document_id, $fields = nul
10381086
* @param int $payment_account_id Filter by payment account. (optional)
10391087
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCashbookEntries'] to see the possible values for this operation
10401088
*
1041-
* @throws \FattureInCloud\ApiException on non-2xx response
1089+
* @throws \FattureInCloud\ApiException on non-2xx response or if the response body is not in the expected format
10421090
* @throws \InvalidArgumentException
10431091
* @return \FattureInCloud\Model\ListCashbookEntriesResponse
10441092
*/
@@ -1061,7 +1109,7 @@ public function listCashbookEntries($company_id, $date_from, $date_to, $year = n
10611109
* @param int $payment_account_id Filter by payment account. (optional)
10621110
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCashbookEntries'] to see the possible values for this operation
10631111
*
1064-
* @throws \FattureInCloud\ApiException on non-2xx response
1112+
* @throws \FattureInCloud\ApiException on non-2xx response or if the response body is not in the expected format
10651113
* @throws \InvalidArgumentException
10661114
* @return array of \FattureInCloud\Model\ListCashbookEntriesResponse, HTTP status code, HTTP response headers (array of strings)
10671115
*/
@@ -1111,7 +1159,19 @@ public function listCashbookEntriesWithHttpInfo($company_id, $date_from, $date_t
11111159
} else {
11121160
$content = (string) $response->getBody();
11131161
if ('\FattureInCloud\Model\ListCashbookEntriesResponse' !== 'string') {
1114-
$content = json_decode($content);
1162+
try {
1163+
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
1164+
} catch (\JsonException $exception) {
1165+
throw new ApiException(
1166+
sprintf(
1167+
'Error JSON decoding server response (%s)',
1168+
$request->getUri()
1169+
),
1170+
$statusCode,
1171+
$response->getHeaders(),
1172+
$content
1173+
);
1174+
}
11151175
}
11161176
}
11171177

@@ -1128,7 +1188,19 @@ public function listCashbookEntriesWithHttpInfo($company_id, $date_from, $date_t
11281188
} else {
11291189
$content = (string) $response->getBody();
11301190
if ($returnType !== 'string') {
1131-
$content = json_decode($content);
1191+
try {
1192+
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
1193+
} catch (\JsonException $exception) {
1194+
throw new ApiException(
1195+
sprintf(
1196+
'Error JSON decoding server response (%s)',
1197+
$request->getUri()
1198+
),
1199+
$statusCode,
1200+
$response->getHeaders(),
1201+
$content
1202+
);
1203+
}
11321204
}
11331205
}
11341206

@@ -1409,7 +1481,7 @@ public function listCashbookEntriesRequest($company_id, $date_from, $date_to, $y
14091481
* @param \FattureInCloud\Model\ModifyCashbookEntryRequest $modify_cashbook_entry_request Cashbook Entry (optional)
14101482
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['modifyCashbookEntry'] to see the possible values for this operation
14111483
*
1412-
* @throws \FattureInCloud\ApiException on non-2xx response
1484+
* @throws \FattureInCloud\ApiException on non-2xx response or if the response body is not in the expected format
14131485
* @throws \InvalidArgumentException
14141486
* @return \FattureInCloud\Model\ModifyCashbookEntryResponse
14151487
*/
@@ -1429,7 +1501,7 @@ public function modifyCashbookEntry($company_id, $document_id, $modify_cashbook_
14291501
* @param \FattureInCloud\Model\ModifyCashbookEntryRequest $modify_cashbook_entry_request Cashbook Entry (optional)
14301502
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['modifyCashbookEntry'] to see the possible values for this operation
14311503
*
1432-
* @throws \FattureInCloud\ApiException on non-2xx response
1504+
* @throws \FattureInCloud\ApiException on non-2xx response or if the response body is not in the expected format
14331505
* @throws \InvalidArgumentException
14341506
* @return array of \FattureInCloud\Model\ModifyCashbookEntryResponse, HTTP status code, HTTP response headers (array of strings)
14351507
*/
@@ -1479,7 +1551,19 @@ public function modifyCashbookEntryWithHttpInfo($company_id, $document_id, $modi
14791551
} else {
14801552
$content = (string) $response->getBody();
14811553
if ('\FattureInCloud\Model\ModifyCashbookEntryResponse' !== 'string') {
1482-
$content = json_decode($content);
1554+
try {
1555+
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
1556+
} catch (\JsonException $exception) {
1557+
throw new ApiException(
1558+
sprintf(
1559+
'Error JSON decoding server response (%s)',
1560+
$request->getUri()
1561+
),
1562+
$statusCode,
1563+
$response->getHeaders(),
1564+
$content
1565+
);
1566+
}
14831567
}
14841568
}
14851569

@@ -1496,7 +1580,19 @@ public function modifyCashbookEntryWithHttpInfo($company_id, $document_id, $modi
14961580
} else {
14971581
$content = (string) $response->getBody();
14981582
if ($returnType !== 'string') {
1499-
$content = json_decode($content);
1583+
try {
1584+
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
1585+
} catch (\JsonException $exception) {
1586+
throw new ApiException(
1587+
sprintf(
1588+
'Error JSON decoding server response (%s)',
1589+
$request->getUri()
1590+
),
1591+
$statusCode,
1592+
$response->getHeaders(),
1593+
$content
1594+
);
1595+
}
15001596
}
15011597
}
15021598

0 commit comments

Comments
 (0)