Skip to content

Commit

Permalink
fix: extracted enums from models and fixed some types
Browse files Browse the repository at this point in the history
  • Loading branch information
fattureincloud-bot authored Dec 1, 2021
1 parent c6a6538 commit eed0a3b
Show file tree
Hide file tree
Showing 500 changed files with 4,536 additions and 3,647 deletions.
56 changes: 42 additions & 14 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,21 @@ docs/Model/CashbookEntryDataDocument.md
docs/Model/CashbookEntryIn.md
docs/Model/CashbookEntryInData.md
docs/Model/CashbookEntryInOut.md
docs/Model/CashbookEntryKind.md
docs/Model/CashbookEntryOut.md
docs/Model/CashbookEntryOutData.md
docs/Model/CashbookEntryType.md
docs/Model/City.md
docs/Model/Client.md
docs/Model/ClientType.md
docs/Model/Company.md
docs/Model/CompanyInfo.md
docs/Model/CompanyInfoAccessInfo.md
docs/Model/CompanyInfoPlanInfo.md
docs/Model/CompanyInfoPlanInfoFunctions.md
docs/Model/CompanyInfoPlanInfoFunctionsStatus.md
docs/Model/CompanyInfoPlanInfoLimits.md
docs/Model/CompanyType.md
docs/Model/CreateArchiveDocumentRequest.md
docs/Model/CreateArchiveDocumentResponse.md
docs/Model/CreateCashbookEntryRequest.md
Expand All @@ -58,6 +62,7 @@ docs/Model/CreateReceivedDocumentResponse.md
docs/Model/CreateSupplierRequest.md
docs/Model/CreateSupplierResponse.md
docs/Model/Currency.md
docs/Model/DefaultPaymentTermsType.md
docs/Model/DocumentTemplate.md
docs/Model/EmailData.md
docs/Model/EmailDataDefaultSenderEmail.md
Expand All @@ -67,6 +72,7 @@ docs/Model/EmailScheduleInclude.md
docs/Model/Entity.md
docs/Model/EntityOptions.md
docs/Model/F24.md
docs/Model/F24Status.md
docs/Model/FunctionStatus.md
docs/Model/GetArchiveDocumentResponse.md
docs/Model/GetCashbookEntryResponse.md
Expand Down Expand Up @@ -106,6 +112,7 @@ docs/Model/IssuedDocumentPreCreateInfoDefaultValues.md
docs/Model/IssuedDocumentPreCreateInfoExtraDataDefaultValues.md
docs/Model/IssuedDocumentPreCreateInfoItemsDefaultValues.md
docs/Model/IssuedDocumentRefersTo.md
docs/Model/IssuedDocumentStatus.md
docs/Model/IssuedDocumentTotals.md
docs/Model/IssuedDocumentTotalsVatList.md
docs/Model/IssuedDocumentTotalsVatListVatItem.md
Expand Down Expand Up @@ -170,10 +177,13 @@ docs/Model/ModifyReceivedDocumentResponse.md
docs/Model/ModifySupplierRequest.md
docs/Model/ModifySupplierResponse.md
docs/Model/MonthlyTotal.md
docs/Model/OriginalDocumentType.md
docs/Model/Pagination.md
docs/Model/PaymentAccount.md
docs/Model/PaymentAccountType.md
docs/Model/PaymentMethod.md
docs/Model/PaymentMethodDetails.md
docs/Model/PaymentMethodType.md
docs/Model/PermissionLevel.md
docs/Model/Permissions.md
docs/Model/PermissionsFicIssuedDocumentsDetailed.md
Expand All @@ -197,14 +207,18 @@ docs/Model/SendEInvoiceRequest.md
docs/Model/SendEInvoiceRequestData.md
docs/Model/SendEInvoiceResponse.md
docs/Model/SendEInvoiceResponseData.md
docs/Model/ShowTotalsMode.md
docs/Model/Supplier.md
docs/Model/SupplierType.md
docs/Model/UploadArchiveAttachmentResponse.md
docs/Model/UploadF24AttachmentResponse.md
docs/Model/UploadIssuedDocumentAttachmentResponse.md
docs/Model/UploadIssuedDocumentAttachmentResponseData.md
docs/Model/UploadReceivedDocumentAttachmentResponse.md
docs/Model/UploadReceivedDocumentAttachmentResponseData.md
docs/Model/User.md
docs/Model/UserCompanyRole.md
docs/Model/VatKind.md
docs/Model/VatType.md
docs/Model/VerifyEInvoiceXmlErrorResponse.md
docs/Model/VerifyEInvoiceXmlErrorResponseError.md
Expand Down Expand Up @@ -236,17 +250,21 @@ lib/Model/CashbookEntryDataDocument.php
lib/Model/CashbookEntryIn.php
lib/Model/CashbookEntryInData.php
lib/Model/CashbookEntryInOut.php
lib/Model/CashbookEntryKind.php
lib/Model/CashbookEntryOut.php
lib/Model/CashbookEntryOutData.php
lib/Model/CashbookEntryType.php
lib/Model/City.php
lib/Model/Client.php
lib/Model/ClientType.php
lib/Model/Company.php
lib/Model/CompanyInfo.php
lib/Model/CompanyInfoAccessInfo.php
lib/Model/CompanyInfoPlanInfo.php
lib/Model/CompanyInfoPlanInfoFunctions.php
lib/Model/CompanyInfoPlanInfoFunctionsStatus.php
lib/Model/CompanyInfoPlanInfoLimits.php
lib/Model/CompanyType.php
lib/Model/CreateArchiveDocumentRequest.php
lib/Model/CreateArchiveDocumentResponse.php
lib/Model/CreateCashbookEntryRequest.php
Expand All @@ -270,6 +288,7 @@ lib/Model/CreateReceivedDocumentResponse.php
lib/Model/CreateSupplierRequest.php
lib/Model/CreateSupplierResponse.php
lib/Model/Currency.php
lib/Model/DefaultPaymentTermsType.php
lib/Model/DocumentTemplate.php
lib/Model/EmailData.php
lib/Model/EmailDataDefaultSenderEmail.php
Expand All @@ -279,6 +298,7 @@ lib/Model/EmailScheduleInclude.php
lib/Model/Entity.php
lib/Model/EntityOptions.php
lib/Model/F24.php
lib/Model/F24Status.php
lib/Model/FunctionStatus.php
lib/Model/GetArchiveDocumentResponse.php
lib/Model/GetCashbookEntryResponse.php
Expand Down Expand Up @@ -318,6 +338,7 @@ lib/Model/IssuedDocumentPreCreateInfoDefaultValues.php
lib/Model/IssuedDocumentPreCreateInfoExtraDataDefaultValues.php
lib/Model/IssuedDocumentPreCreateInfoItemsDefaultValues.php
lib/Model/IssuedDocumentRefersTo.php
lib/Model/IssuedDocumentStatus.php
lib/Model/IssuedDocumentTotals.php
lib/Model/IssuedDocumentTotalsVatList.php
lib/Model/IssuedDocumentTotalsVatListVatItem.php
Expand Down Expand Up @@ -383,10 +404,13 @@ lib/Model/ModifyReceivedDocumentResponse.php
lib/Model/ModifySupplierRequest.php
lib/Model/ModifySupplierResponse.php
lib/Model/MonthlyTotal.php
lib/Model/OriginalDocumentType.php
lib/Model/Pagination.php
lib/Model/PaymentAccount.php
lib/Model/PaymentAccountType.php
lib/Model/PaymentMethod.php
lib/Model/PaymentMethodDetails.php
lib/Model/PaymentMethodType.php
lib/Model/PermissionLevel.php
lib/Model/Permissions.php
lib/Model/PermissionsFicIssuedDocumentsDetailed.php
Expand All @@ -410,14 +434,18 @@ lib/Model/SendEInvoiceRequest.php
lib/Model/SendEInvoiceRequestData.php
lib/Model/SendEInvoiceResponse.php
lib/Model/SendEInvoiceResponseData.php
lib/Model/ShowTotalsMode.php
lib/Model/Supplier.php
lib/Model/SupplierType.php
lib/Model/UploadArchiveAttachmentResponse.php
lib/Model/UploadF24AttachmentResponse.php
lib/Model/UploadIssuedDocumentAttachmentResponse.php
lib/Model/UploadIssuedDocumentAttachmentResponseData.php
lib/Model/UploadReceivedDocumentAttachmentResponse.php
lib/Model/UploadReceivedDocumentAttachmentResponseData.php
lib/Model/User.php
lib/Model/UserCompanyRole.php
lib/Model/VatKind.php
lib/Model/VatType.php
lib/Model/VerifyEInvoiceXmlErrorResponse.php
lib/Model/VerifyEInvoiceXmlErrorResponseError.php
Expand All @@ -427,17 +455,17 @@ lib/Model/VerifyEInvoiceXmlSuccessResponse.php
lib/Model/VerifyEInvoiceXmlSuccessResponseData.php
lib/ObjectSerializer.php
phpunit.xml.dist
test/Api/SettingsApiTest.php
test/Model/CashbookEntryInOutTest.php
test/Model/CreatePaymentAccountRequestTest.php
test/Model/CreatePaymentAccountResponseTest.php
test/Model/CreatePaymentMethodRequestTest.php
test/Model/CreatePaymentMethodResponseTest.php
test/Model/GetPaymentAccountResponseTest.php
test/Model/GetPaymentMethodResponseTest.php
test/Model/ModifyPaymentAccountRequestTest.php
test/Model/ModifyPaymentAccountResponseTest.php
test/Model/ModifyPaymentMethodRequestTest.php
test/Model/ModifyPaymentMethodResponseTest.php
test/Model/VerifyEInvoiceXmlSuccessResponseDataTest.php
test/Model/VerifyEInvoiceXmlSuccessResponseTest.php
test/Model/CashbookEntryKindTest.php
test/Model/CashbookEntryTypeTest.php
test/Model/ClientTypeTest.php
test/Model/CompanyTypeTest.php
test/Model/DefaultPaymentTermsTypeTest.php
test/Model/F24StatusTest.php
test/Model/IssuedDocumentStatusTest.php
test/Model/OriginalDocumentTypeTest.php
test/Model/PaymentAccountTypeTest.php
test/Model/PaymentMethodTypeTest.php
test/Model/ShowTotalsModeTest.php
test/Model/SupplierTypeTest.php
test/Model/UserCompanyRoleTest.php
test/Model/VatKindTest.php
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.2.1
5.3.0
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

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.0.4 (2021-12-01)

### 2.0.3 (2021-10-19)

### [2.0.2](https://github.com/fattureincloud/fattureincloud-php-sdk/compare/v2.0.1...v2.0.2) (2021-10-13)
Expand Down
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ Connect your software with Fatture in Cloud, the invoicing platform chosen by mo

The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.

For more information, please visit https://www.fattureincloud.it.

For more information, please visit [https://www.fattureincloud.it](https://www.fattureincloud.it).

## Installation & Usage
Expand Down Expand Up @@ -159,7 +157,7 @@ Class | Method | HTTP request | Description
*TaxesApi* | [**modifyF24**](docs/Api/TaxesApi.md#modifyf24) | **PUT** /c/{company_id}/taxes/{document_id} | Modify F24
*TaxesApi* | [**uploadF24Attachment**](docs/Api/TaxesApi.md#uploadf24attachment) | **POST** /c/{company_id}/taxes/attachment | Upload F24 Attachment
*UserApi* | [**getUserInfo**](docs/Api/UserApi.md#getuserinfo) | **GET** /user/info | Get User Info
*UserApi* | [**listUserCompanies**](docs/Api/UserApi.md#listusercompanies) | **GET** /user/companies | Get User Companies
*UserApi* | [**listUserCompanies**](docs/Api/UserApi.md#listusercompanies) | **GET** /user/companies | List User Companies

## Models

Expand All @@ -170,17 +168,21 @@ Class | Method | HTTP request | Description
- [CashbookEntryIn](docs/Model/CashbookEntryIn.md)
- [CashbookEntryInData](docs/Model/CashbookEntryInData.md)
- [CashbookEntryInOut](docs/Model/CashbookEntryInOut.md)
- [CashbookEntryKind](docs/Model/CashbookEntryKind.md)
- [CashbookEntryOut](docs/Model/CashbookEntryOut.md)
- [CashbookEntryOutData](docs/Model/CashbookEntryOutData.md)
- [CashbookEntryType](docs/Model/CashbookEntryType.md)
- [City](docs/Model/City.md)
- [Client](docs/Model/Client.md)
- [ClientType](docs/Model/ClientType.md)
- [Company](docs/Model/Company.md)
- [CompanyInfo](docs/Model/CompanyInfo.md)
- [CompanyInfoAccessInfo](docs/Model/CompanyInfoAccessInfo.md)
- [CompanyInfoPlanInfo](docs/Model/CompanyInfoPlanInfo.md)
- [CompanyInfoPlanInfoFunctions](docs/Model/CompanyInfoPlanInfoFunctions.md)
- [CompanyInfoPlanInfoFunctionsStatus](docs/Model/CompanyInfoPlanInfoFunctionsStatus.md)
- [CompanyInfoPlanInfoLimits](docs/Model/CompanyInfoPlanInfoLimits.md)
- [CompanyType](docs/Model/CompanyType.md)
- [CreateArchiveDocumentRequest](docs/Model/CreateArchiveDocumentRequest.md)
- [CreateArchiveDocumentResponse](docs/Model/CreateArchiveDocumentResponse.md)
- [CreateCashbookEntryRequest](docs/Model/CreateCashbookEntryRequest.md)
Expand All @@ -204,6 +206,7 @@ Class | Method | HTTP request | Description
- [CreateSupplierRequest](docs/Model/CreateSupplierRequest.md)
- [CreateSupplierResponse](docs/Model/CreateSupplierResponse.md)
- [Currency](docs/Model/Currency.md)
- [DefaultPaymentTermsType](docs/Model/DefaultPaymentTermsType.md)
- [DocumentTemplate](docs/Model/DocumentTemplate.md)
- [EmailData](docs/Model/EmailData.md)
- [EmailDataDefaultSenderEmail](docs/Model/EmailDataDefaultSenderEmail.md)
Expand All @@ -213,6 +216,7 @@ Class | Method | HTTP request | Description
- [Entity](docs/Model/Entity.md)
- [EntityOptions](docs/Model/EntityOptions.md)
- [F24](docs/Model/F24.md)
- [F24Status](docs/Model/F24Status.md)
- [FunctionStatus](docs/Model/FunctionStatus.md)
- [GetArchiveDocumentResponse](docs/Model/GetArchiveDocumentResponse.md)
- [GetCashbookEntryResponse](docs/Model/GetCashbookEntryResponse.md)
Expand Down Expand Up @@ -252,6 +256,7 @@ Class | Method | HTTP request | Description
- [IssuedDocumentPreCreateInfoExtraDataDefaultValues](docs/Model/IssuedDocumentPreCreateInfoExtraDataDefaultValues.md)
- [IssuedDocumentPreCreateInfoItemsDefaultValues](docs/Model/IssuedDocumentPreCreateInfoItemsDefaultValues.md)
- [IssuedDocumentRefersTo](docs/Model/IssuedDocumentRefersTo.md)
- [IssuedDocumentStatus](docs/Model/IssuedDocumentStatus.md)
- [IssuedDocumentTotals](docs/Model/IssuedDocumentTotals.md)
- [IssuedDocumentTotalsVatList](docs/Model/IssuedDocumentTotalsVatList.md)
- [IssuedDocumentTotalsVatListVatItem](docs/Model/IssuedDocumentTotalsVatListVatItem.md)
Expand Down Expand Up @@ -316,10 +321,13 @@ Class | Method | HTTP request | Description
- [ModifySupplierRequest](docs/Model/ModifySupplierRequest.md)
- [ModifySupplierResponse](docs/Model/ModifySupplierResponse.md)
- [MonthlyTotal](docs/Model/MonthlyTotal.md)
- [OriginalDocumentType](docs/Model/OriginalDocumentType.md)
- [Pagination](docs/Model/Pagination.md)
- [PaymentAccount](docs/Model/PaymentAccount.md)
- [PaymentAccountType](docs/Model/PaymentAccountType.md)
- [PaymentMethod](docs/Model/PaymentMethod.md)
- [PaymentMethodDetails](docs/Model/PaymentMethodDetails.md)
- [PaymentMethodType](docs/Model/PaymentMethodType.md)
- [PermissionLevel](docs/Model/PermissionLevel.md)
- [Permissions](docs/Model/Permissions.md)
- [PermissionsFicIssuedDocumentsDetailed](docs/Model/PermissionsFicIssuedDocumentsDetailed.md)
Expand All @@ -343,14 +351,18 @@ Class | Method | HTTP request | Description
- [SendEInvoiceRequestData](docs/Model/SendEInvoiceRequestData.md)
- [SendEInvoiceResponse](docs/Model/SendEInvoiceResponse.md)
- [SendEInvoiceResponseData](docs/Model/SendEInvoiceResponseData.md)
- [ShowTotalsMode](docs/Model/ShowTotalsMode.md)
- [Supplier](docs/Model/Supplier.md)
- [SupplierType](docs/Model/SupplierType.md)
- [UploadArchiveAttachmentResponse](docs/Model/UploadArchiveAttachmentResponse.md)
- [UploadF24AttachmentResponse](docs/Model/UploadF24AttachmentResponse.md)
- [UploadIssuedDocumentAttachmentResponse](docs/Model/UploadIssuedDocumentAttachmentResponse.md)
- [UploadIssuedDocumentAttachmentResponseData](docs/Model/UploadIssuedDocumentAttachmentResponseData.md)
- [UploadReceivedDocumentAttachmentResponse](docs/Model/UploadReceivedDocumentAttachmentResponse.md)
- [UploadReceivedDocumentAttachmentResponseData](docs/Model/UploadReceivedDocumentAttachmentResponseData.md)
- [User](docs/Model/User.md)
- [UserCompanyRole](docs/Model/UserCompanyRole.md)
- [VatKind](docs/Model/VatKind.md)
- [VatType](docs/Model/VatType.md)
- [VerifyEInvoiceXmlErrorResponse](docs/Model/VerifyEInvoiceXmlErrorResponse.md)
- [VerifyEInvoiceXmlErrorResponseError](docs/Model/VerifyEInvoiceXmlErrorResponseError.md)
Expand Down Expand Up @@ -420,5 +432,5 @@ [email protected]

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

- API version: `2.0.1`
- API version: `2.0.6`
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fattureincloud/fattureincloud-php-sdk",
"description": "Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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. For more information, please visit https://www.fattureincloud.it.",
"description": "Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.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.",
"keywords": [
"openapitools",
"openapi-generator",
Expand All @@ -10,20 +10,21 @@
"rest",
"api"
],
"homepage": "https://openapi-generator.tech",
"homepage": "https://www.fattureincloud.it",
"license": "MIT",
"authors": [
{
"name": "OpenAPI-Generator contributors",
"homepage": "https://openapi-generator.tech"
"name": "Fatture in Cloud API Team",
"homepage": "https://www.fattureincloud.it"
}
],
"require": {
"php": "^7.1 || ^8.0",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"guzzlehttp/guzzle": "^6.2"
"guzzlehttp/guzzle": "^6.2 || ^7.3",
"guzzlehttp/psr7": "^1.8 || ^2.0"
},
"require-dev": {
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0",
Expand Down
2 changes: 1 addition & 1 deletion docs/Api/SettingsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ $company_id = 12345; // int | The ID of the company.
$payment_account_id = 1; // string | The Referred Payment Account Id.
$fields = 'fields_example'; // string | List of comma-separated fields.
$fieldset = 'fieldset_example'; // string | Name of the fieldset.
$body = new \stdClass; // object
$body = array('key' => new \stdClass); // object

try {
$result = $apiInstance->getPaymentAccount($company_id, $payment_account_id, $fields, $fieldset, $body);
Expand Down
4 changes: 2 additions & 2 deletions docs/Api/UserApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All URIs are relative to https://api-v2.fattureincloud.it.
Method | HTTP request | Description
------------- | ------------- | -------------
[**getUserInfo()**](UserApi.md#getUserInfo) | **GET** /user/info | Get User Info
[**listUserCompanies()**](UserApi.md#listUserCompanies) | **GET** /user/companies | Get User Companies
[**listUserCompanies()**](UserApi.md#listUserCompanies) | **GET** /user/companies | List User Companies


## `getUserInfo()`
Expand Down Expand Up @@ -71,7 +71,7 @@ This endpoint does not need any parameter.
listUserCompanies(): \FattureInCloud\Model\ListUserCompaniesResponse
```

Get User Companies
List User Companies

Lists the companies controlled by the current user.

Expand Down
2 changes: 1 addition & 1 deletion docs/Model/ArchiveDocument.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | Archive document unique identifier. | [optional]
**date** | [**\DateTime**](\DateTime.md) | Archive document date. |
**date** | **\DateTime** | Archive document date. |
**description** | **string** | Archive Document description. |
**attachment_url** | **string** | [Read Only] Absolute url of the attached file. Authomatically set if a valid attachment token is passed via POST /archive or PUT /archive/{documentId}. | [optional] [readonly]
**category** | **string** | Archive document category. |
Expand Down
6 changes: 3 additions & 3 deletions docs/Model/CashbookEntry.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **string** | Cashbook unique identifier. |
**date** | [**\DateTime**](\DateTime.md) | Cashbook date. |
**date** | **\DateTime** | Cashbook date. |
**description** | **string** | Cashbook description. |
**kind** | **string** | Cashbook kind. |
**type** | **string** | Cashbook type. |
**kind** | [**\FattureInCloud\Model\CashbookEntryKind**](CashbookEntryKind.md) | |
**type** | [**\FattureInCloud\Model\CashbookEntryType**](CashbookEntryType.md) | |
**entity_name** | **string** | Entity name. | [optional]
**document** | [**\FattureInCloud\Model\CashbookEntryDataDocument**](CashbookEntryDataDocument.md) | | [optional]
**amount_in** | **float** | Total amount in. | [optional]
Expand Down
Loading

0 comments on commit eed0a3b

Please sign in to comment.