Skip to content

Commit

Permalink
chore: bumping version to 2.0.19
Browse files Browse the repository at this point in the history
  • Loading branch information
fattureincloud-bot authored Feb 15, 2023
1 parent 6d50c2e commit 3464133
Show file tree
Hide file tree
Showing 470 changed files with 2,386 additions and 3,408 deletions.
3 changes: 3 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ docs/Model/ReceivedDocumentType.md
docs/Model/ScheduleEmailRequest.md
docs/Model/SendEInvoiceRequest.md
docs/Model/SendEInvoiceRequestData.md
docs/Model/SendEInvoiceRequestOptions.md
docs/Model/SendEInvoiceResponse.md
docs/Model/SendEInvoiceResponseData.md
docs/Model/SenderEmail.md
Expand Down Expand Up @@ -454,6 +455,7 @@ lib/Model/ReceivedDocumentType.php
lib/Model/ScheduleEmailRequest.php
lib/Model/SendEInvoiceRequest.php
lib/Model/SendEInvoiceRequestData.php
lib/Model/SendEInvoiceRequestOptions.php
lib/Model/SendEInvoiceResponse.php
lib/Model/SendEInvoiceResponseData.php
lib/Model/SenderEmail.php
Expand All @@ -478,3 +480,4 @@ lib/Model/VerifyEInvoiceXmlResponse.php
lib/Model/VerifyEInvoiceXmlResponseData.php
lib/ObjectSerializer.php
phpunit.xml.dist
test/Model/SendEInvoiceRequestOptionsTest.php
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.2.1
6.3.0
2 changes: 1 addition & 1 deletion .php-cs-fixer.cache

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ Class | Method | HTTP request | Description
- [ScheduleEmailRequest](docs/Model/ScheduleEmailRequest.md)
- [SendEInvoiceRequest](docs/Model/SendEInvoiceRequest.md)
- [SendEInvoiceRequestData](docs/Model/SendEInvoiceRequestData.md)
- [SendEInvoiceRequestOptions](docs/Model/SendEInvoiceRequestOptions.md)
- [SendEInvoiceResponse](docs/Model/SendEInvoiceResponse.md)
- [SendEInvoiceResponseData](docs/Model/SendEInvoiceResponseData.md)
- [SenderEmail](docs/Model/SenderEmail.md)
Expand Down Expand Up @@ -462,5 +463,5 @@ [email protected]

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

- API version: `2.0.24`
- API version: `2.0.26`
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
}
],
"require": {
"php": "^7.1 || ^8.0",
"php": "^7.3 || ^8.0",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"guzzlehttp/guzzle": "^6.5.6 || ^7.4.3",
"guzzlehttp/psr7": "^1.8.4 || ^2.1.1"
"guzzlehttp/guzzle": "^7.4.5",
"guzzlehttp/psr7": "^2.1.1"
},
"require-dev": {
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0",
"friendsofphp/php-cs-fixer": "^2.19.3 || ^3.5"
"phpunit/phpunit": "^9.0",
"friendsofphp/php-cs-fixer": "^3.4"
},
"autoload": {
"psr-4": { "FattureInCloud\\" : "lib/" }
Expand Down
6 changes: 4 additions & 2 deletions docs/Api/IssuedDocumentsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ try {
## `listIssuedDocuments()`

```php
listIssuedDocuments($company_id, $type, $fields, $fieldset, $sort, $page, $per_page, $q): \FattureInCloud\Model\ListIssuedDocumentsResponse
listIssuedDocuments($company_id, $type, $fields, $fieldset, $sort, $page, $per_page, $q, $inclusive): \FattureInCloud\Model\ListIssuedDocumentsResponse
```

List Issued Documents
Expand Down Expand Up @@ -621,9 +621,10 @@ $sort = 'sort_example'; // string | List of comma-separated fields for result so
$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.
$inclusive = 56; // int | (Only for type = delivery_notes) Include invoices delivery notes.

try {
$result = $apiInstance->listIssuedDocuments($company_id, $type, $fields, $fieldset, $sort, $page, $per_page, $q);
$result = $apiInstance->listIssuedDocuments($company_id, $type, $fields, $fieldset, $sort, $page, $per_page, $q, $inclusive);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling IssuedDocumentsApi->listIssuedDocuments: ', $e->getMessage(), PHP_EOL;
Expand All @@ -642,6 +643,7 @@ try {
| **page** | **int**| The page to retrieve. | [optional] [default to 1] |
| **per_page** | **int**| The size of the page. | [optional] [default to 5] |
| **q** | **string**| Query for filtering the results. | [optional] |
| **inclusive** | **int**| (Only for type = delivery_notes) Include invoices delivery notes. | [optional] |

### Return type

Expand Down
1 change: 1 addition & 0 deletions docs/Model/ReceivedDocument.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Name | Type | Description | Notes
**payments_list** | [**\FattureInCloud\Model\ReceivedDocumentPaymentsListItem[]**](ReceivedDocumentPaymentsListItem.md) | | [optional]
**attachment_url** | **string** | [Temporary] [Read Only] Public url of the attached file. Authomatically set if a valid attachment token is passed via POST /received_documents or PUT /received_documents/{documentId}. | [optional] [readonly]
**attachment_preview_url** | **string** | [Temporary] [Read Only] Attachment preview url. | [optional] [readonly]
**auto_calculate** | **bool** | If set to false total items amount and total payments amount can be different. | [optional]
**attachment_token** | **string** | Uploaded attachement token. | [optional]
**created_at** | **string** | | [optional]
**updated_at** | **string** | | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/Model/SendEInvoiceRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**\FattureInCloud\Model\SendEInvoiceRequestData**](SendEInvoiceRequestData.md) | | [optional]
**options** | [**\FattureInCloud\Model\SendEInvoiceRequestOptions**](SendEInvoiceRequestOptions.md) | | [optional]

[[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/SendEInvoiceRequestOptions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# # SendEInvoiceRequestOptions

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**dry_run** | **bool** | If set to true the e-invoice will not be sent to the SDI. | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
20 changes: 10 additions & 10 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.24
* The version of the OpenAPI document: 2.0.26
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 6.2.1
* OpenAPI Generator version: 6.3.0
*/

/**
Expand Down Expand Up @@ -384,7 +384,7 @@ public function createArchiveDocumentRequest($company_id, $create_archive_docume
if (isset($create_archive_document_request)) {
if (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the body
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($create_archive_document_request));
$httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($create_archive_document_request));
} else {
$httpBody = $create_archive_document_request;
}
Expand All @@ -405,7 +405,7 @@ public function createArchiveDocumentRequest($company_id, $create_archive_docume

} elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the form parameters
$httpBody = \GuzzleHttp\json_encode($formParams);
$httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
} else {
// for HTTP post (form)
$httpBody = ObjectSerializer::buildQuery($formParams);
Expand Down Expand Up @@ -658,7 +658,7 @@ public function deleteArchiveDocumentRequest($company_id, $document_id, string $

} elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the form parameters
$httpBody = \GuzzleHttp\json_encode($formParams);
$httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
} else {
// for HTTP post (form)
$httpBody = ObjectSerializer::buildQuery($formParams);
Expand Down Expand Up @@ -995,7 +995,7 @@ public function getArchiveDocumentRequest($company_id, $document_id, $fields = n

} elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the form parameters
$httpBody = \GuzzleHttp\json_encode($formParams);
$httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
} else {
// for HTTP post (form)
$httpBody = ObjectSerializer::buildQuery($formParams);
Expand Down Expand Up @@ -1372,7 +1372,7 @@ public function listArchiveDocumentsRequest($company_id, $fields = null, $fields

} elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the form parameters
$httpBody = \GuzzleHttp\json_encode($formParams);
$httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
} else {
// for HTTP post (form)
$httpBody = ObjectSerializer::buildQuery($formParams);
Expand Down Expand Up @@ -1671,7 +1671,7 @@ public function modifyArchiveDocumentRequest($company_id, $document_id, $modify_
if (isset($modify_archive_document_request)) {
if (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the body
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($modify_archive_document_request));
$httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($modify_archive_document_request));
} else {
$httpBody = $modify_archive_document_request;
}
Expand All @@ -1692,7 +1692,7 @@ public function modifyArchiveDocumentRequest($company_id, $document_id, $modify_

} elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the form parameters
$httpBody = \GuzzleHttp\json_encode($formParams);
$httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
} else {
// for HTTP post (form)
$httpBody = ObjectSerializer::buildQuery($formParams);
Expand Down Expand Up @@ -2007,7 +2007,7 @@ public function uploadArchiveDocumentAttachmentRequest($company_id, $filename =

} elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the form parameters
$httpBody = \GuzzleHttp\json_encode($formParams);
$httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
} else {
// for HTTP post (form)
$httpBody = ObjectSerializer::buildQuery($formParams);
Expand Down
18 changes: 9 additions & 9 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.24
* The version of the OpenAPI document: 2.0.26
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 6.2.1
* OpenAPI Generator version: 6.3.0
*/

/**
Expand Down Expand Up @@ -381,7 +381,7 @@ public function createCashbookEntryRequest($company_id, $create_cashbook_entry_r
if (isset($create_cashbook_entry_request)) {
if (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the body
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($create_cashbook_entry_request));
$httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($create_cashbook_entry_request));
} else {
$httpBody = $create_cashbook_entry_request;
}
Expand All @@ -402,7 +402,7 @@ public function createCashbookEntryRequest($company_id, $create_cashbook_entry_r

} elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the form parameters
$httpBody = \GuzzleHttp\json_encode($formParams);
$httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
} else {
// for HTTP post (form)
$httpBody = ObjectSerializer::buildQuery($formParams);
Expand Down Expand Up @@ -655,7 +655,7 @@ public function deleteCashbookEntryRequest($company_id, $document_id, string $co

} elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the form parameters
$httpBody = \GuzzleHttp\json_encode($formParams);
$httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
} else {
// for HTTP post (form)
$httpBody = ObjectSerializer::buildQuery($formParams);
Expand Down Expand Up @@ -992,7 +992,7 @@ public function getCashbookEntryRequest($company_id, $document_id, $fields = nul

} elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the form parameters
$httpBody = \GuzzleHttp\json_encode($formParams);
$httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
} else {
// for HTTP post (form)
$httpBody = ObjectSerializer::buildQuery($formParams);
Expand Down Expand Up @@ -1366,7 +1366,7 @@ public function listCashbookEntriesRequest($company_id, $date_from, $date_to, $y

} elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the form parameters
$httpBody = \GuzzleHttp\json_encode($formParams);
$httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
} else {
// for HTTP post (form)
$httpBody = ObjectSerializer::buildQuery($formParams);
Expand Down Expand Up @@ -1665,7 +1665,7 @@ public function modifyCashbookEntryRequest($company_id, $document_id, $modify_ca
if (isset($modify_cashbook_entry_request)) {
if (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the body
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($modify_cashbook_entry_request));
$httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($modify_cashbook_entry_request));
} else {
$httpBody = $modify_cashbook_entry_request;
}
Expand All @@ -1686,7 +1686,7 @@ public function modifyCashbookEntryRequest($company_id, $document_id, $modify_ca

} elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the form parameters
$httpBody = \GuzzleHttp\json_encode($formParams);
$httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
} else {
// for HTTP post (form)
$httpBody = ObjectSerializer::buildQuery($formParams);
Expand Down
18 changes: 9 additions & 9 deletions lib/Api/ClientsApi.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.24
* The version of the OpenAPI document: 2.0.26
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 6.2.1
* OpenAPI Generator version: 6.3.0
*/

/**
Expand Down Expand Up @@ -381,7 +381,7 @@ public function createClientRequest($company_id, $create_client_request = null,
if (isset($create_client_request)) {
if (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the body
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($create_client_request));
$httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($create_client_request));
} else {
$httpBody = $create_client_request;
}
Expand All @@ -402,7 +402,7 @@ public function createClientRequest($company_id, $create_client_request = null,

} elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the form parameters
$httpBody = \GuzzleHttp\json_encode($formParams);
$httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
} else {
// for HTTP post (form)
$httpBody = ObjectSerializer::buildQuery($formParams);
Expand Down Expand Up @@ -655,7 +655,7 @@ public function deleteClientRequest($company_id, $client_id, string $contentType

} elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the form parameters
$httpBody = \GuzzleHttp\json_encode($formParams);
$httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
} else {
// for HTTP post (form)
$httpBody = ObjectSerializer::buildQuery($formParams);
Expand Down Expand Up @@ -992,7 +992,7 @@ public function getClientRequest($company_id, $client_id, $fields = null, $field

} elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the form parameters
$httpBody = \GuzzleHttp\json_encode($formParams);
$httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
} else {
// for HTTP post (form)
$httpBody = ObjectSerializer::buildQuery($formParams);
Expand Down Expand Up @@ -1369,7 +1369,7 @@ public function listClientsRequest($company_id, $fields = null, $fieldset = null

} elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the form parameters
$httpBody = \GuzzleHttp\json_encode($formParams);
$httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
} else {
// for HTTP post (form)
$httpBody = ObjectSerializer::buildQuery($formParams);
Expand Down Expand Up @@ -1668,7 +1668,7 @@ public function modifyClientRequest($company_id, $client_id, $modify_client_requ
if (isset($modify_client_request)) {
if (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the body
$httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($modify_client_request));
$httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($modify_client_request));
} else {
$httpBody = $modify_client_request;
}
Expand All @@ -1689,7 +1689,7 @@ public function modifyClientRequest($company_id, $client_id, $modify_client_requ

} elseif (stripos($headers['Content-Type'], 'application/json') !== false) {
# if Content-Type contains "application/json", json_encode the form parameters
$httpBody = \GuzzleHttp\json_encode($formParams);
$httpBody = \GuzzleHttp\Utils::jsonEncode($formParams);
} else {
// for HTTP post (form)
$httpBody = ObjectSerializer::buildQuery($formParams);
Expand Down
Loading

0 comments on commit 3464133

Please sign in to comment.