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
6 changes: 6 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ docs/Model/GetReceiptsMonthlyTotalsResponse.md
docs/Model/GetReceivedDocumentPreCreateInfoResponse.md
docs/Model/GetReceivedDocumentResponse.md
docs/Model/GetSupplierResponse.md
docs/Model/GetTaxProfileResponse.md
docs/Model/GetUserInfoResponse.md
docs/Model/GetUserInfoResponseEmailConfirmationState.md
docs/Model/GetUserInfoResponseInfo.md
Expand Down Expand Up @@ -232,6 +233,7 @@ docs/Model/SenderEmail.md
docs/Model/ShowTotalsMode.md
docs/Model/Supplier.md
docs/Model/SupplierType.md
docs/Model/TaxProfile.md
docs/Model/TransformIssuedDocumentResponse.md
docs/Model/UploadArchiveAttachmentResponse.md
docs/Model/UploadF24AttachmentResponse.md
Expand Down Expand Up @@ -361,6 +363,7 @@ lib/Model/GetReceiptsMonthlyTotalsResponse.php
lib/Model/GetReceivedDocumentPreCreateInfoResponse.php
lib/Model/GetReceivedDocumentResponse.php
lib/Model/GetSupplierResponse.php
lib/Model/GetTaxProfileResponse.php
lib/Model/GetUserInfoResponse.php
lib/Model/GetUserInfoResponseEmailConfirmationState.php
lib/Model/GetUserInfoResponseInfo.php
Expand Down Expand Up @@ -485,6 +488,7 @@ lib/Model/SenderEmail.php
lib/Model/ShowTotalsMode.php
lib/Model/Supplier.php
lib/Model/SupplierType.php
lib/Model/TaxProfile.php
lib/Model/TransformIssuedDocumentResponse.php
lib/Model/UploadArchiveAttachmentResponse.php
lib/Model/UploadF24AttachmentResponse.php
Expand All @@ -506,3 +510,5 @@ lib/Model/WebhooksSubscriptionConfig.php
lib/Model/WebhooksSubscriptionMapping.php
lib/ObjectSerializer.php
phpunit.xml.dist
test/Model/GetTaxProfileResponseTest.php
test/Model/TaxProfileTest.php
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.6.0
7.9.0
2 changes: 1 addition & 1 deletion .php-cs-fixer.cache

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ Class | Method | HTTP request | Description
*SettingsApi* | [**deleteVatType**](docs/Api/SettingsApi.md#deletevattype) | **DELETE** /c/{company_id}/settings/vat_types/{vat_type_id} | Delete Vat Type
*SettingsApi* | [**getPaymentAccount**](docs/Api/SettingsApi.md#getpaymentaccount) | **GET** /c/{company_id}/settings/payment_accounts/{payment_account_id} | Get Payment Account
*SettingsApi* | [**getPaymentMethod**](docs/Api/SettingsApi.md#getpaymentmethod) | **GET** /c/{company_id}/settings/payment_methods/{payment_method_id} | Get Payment Method
*SettingsApi* | [**getTaxProfile**](docs/Api/SettingsApi.md#gettaxprofile) | **GET** /c/{company_id}/settings/tax_profile | Get Tax Profile
*SettingsApi* | [**getVatType**](docs/Api/SettingsApi.md#getvattype) | **GET** /c/{company_id}/settings/vat_types/{vat_type_id} | Get Vat Type
*SettingsApi* | [**modifyPaymentAccount**](docs/Api/SettingsApi.md#modifypaymentaccount) | **PUT** /c/{company_id}/settings/payment_accounts/{payment_account_id} | Modify Payment Account
*SettingsApi* | [**modifyPaymentMethod**](docs/Api/SettingsApi.md#modifypaymentmethod) | **PUT** /c/{company_id}/settings/payment_methods/{payment_method_id} | Modify Payment Method
Expand Down Expand Up @@ -270,6 +271,7 @@ Class | Method | HTTP request | Description
- [GetReceivedDocumentPreCreateInfoResponse](docs/Model/GetReceivedDocumentPreCreateInfoResponse.md)
- [GetReceivedDocumentResponse](docs/Model/GetReceivedDocumentResponse.md)
- [GetSupplierResponse](docs/Model/GetSupplierResponse.md)
- [GetTaxProfileResponse](docs/Model/GetTaxProfileResponse.md)
- [GetUserInfoResponse](docs/Model/GetUserInfoResponse.md)
- [GetUserInfoResponseEmailConfirmationState](docs/Model/GetUserInfoResponseEmailConfirmationState.md)
- [GetUserInfoResponseInfo](docs/Model/GetUserInfoResponseInfo.md)
Expand Down Expand Up @@ -393,6 +395,7 @@ Class | Method | HTTP request | Description
- [ShowTotalsMode](docs/Model/ShowTotalsMode.md)
- [Supplier](docs/Model/Supplier.md)
- [SupplierType](docs/Model/SupplierType.md)
- [TaxProfile](docs/Model/TaxProfile.md)
- [TransformIssuedDocumentResponse](docs/Model/TransformIssuedDocumentResponse.md)
- [UploadArchiveAttachmentResponse](docs/Model/UploadArchiveAttachmentResponse.md)
- [UploadF24AttachmentResponse](docs/Model/UploadF24AttachmentResponse.md)
Expand Down Expand Up @@ -480,5 +483,5 @@ [email protected]

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

- API version: `2.1.0`
- API version: `2.1.2`
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`
14 changes: 8 additions & 6 deletions docs/Api/IssuedDocumentsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ try {
## `joinIssuedDocuments()`

```php
joinIssuedDocuments($company_id, $ids, $group, $e_invoice): \FattureInCloud\Model\JoinIssuedDocumentsResponse
joinIssuedDocuments($company_id, $ids, $group, $parameter): \FattureInCloud\Model\JoinIssuedDocumentsResponse
```

Join Issued Documents
Expand All @@ -550,10 +550,10 @@ $apiInstance = new FattureInCloud\Api\IssuedDocumentsApi(
$company_id = 12345; // int | The ID of the company.
$ids = 1,2,3,4; // string | Ids of the documents.
$group = 56; // int | Group items.
$e_invoice = 56; // int | New document e_invoice.
$parameter = delivery_notes, orders, quotes, work_reports; // string | Type of the parameters to be joined

try {
$result = $apiInstance->joinIssuedDocuments($company_id, $ids, $group, $e_invoice);
$result = $apiInstance->joinIssuedDocuments($company_id, $ids, $group, $parameter);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling IssuedDocumentsApi->joinIssuedDocuments: ', $e->getMessage(), PHP_EOL;
Expand All @@ -567,7 +567,7 @@ try {
| **company_id** | **int**| The ID of the company. | |
| **ids** | **string**| Ids of the documents. | |
| **group** | **int**| Group items. | [optional] |
| **e_invoice** | **int**| New document e_invoice. | [optional] |
| **parameter** | **string**| Type of the parameters to be joined | [optional] |

### Return type

Expand Down Expand Up @@ -792,7 +792,7 @@ void (empty response body)
## `transformIssuedDocument()`

```php
transformIssuedDocument($company_id, $original_document_id, $new_type, $e_invoice, $transform_keep_copy): \FattureInCloud\Model\TransformIssuedDocumentResponse
transformIssuedDocument($company_id, $original_document_id, $new_type, $parameter, $e_invoice, $transform_keep_copy): \FattureInCloud\Model\TransformIssuedDocumentResponse
```

Transform Issued Document
Expand All @@ -819,11 +819,12 @@ $apiInstance = new FattureInCloud\Api\IssuedDocumentsApi(
$company_id = 12345; // int | The ID of the company.
$original_document_id = 56; // int | Original document id.
$new_type = 'new_type_example'; // string | New document type.
$parameter = 'parameter_example'; // string | Old document type.
$e_invoice = 56; // int | New document e_invoice.
$transform_keep_copy = 56; // int | Keep the old document.

try {
$result = $apiInstance->transformIssuedDocument($company_id, $original_document_id, $new_type, $e_invoice, $transform_keep_copy);
$result = $apiInstance->transformIssuedDocument($company_id, $original_document_id, $new_type, $parameter, $e_invoice, $transform_keep_copy);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling IssuedDocumentsApi->transformIssuedDocument: ', $e->getMessage(), PHP_EOL;
Expand All @@ -837,6 +838,7 @@ try {
| **company_id** | **int**| The ID of the company. | |
| **original_document_id** | **int**| Original document id. | |
| **new_type** | **string**| New document type. | |
| **parameter** | **string**| Old document type. | [optional] |
| **e_invoice** | **int**| New document e_invoice. | [optional] |
| **transform_keep_copy** | **int**| Keep the old document. | [optional] |

Expand Down
61 changes: 61 additions & 0 deletions docs/Api/SettingsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ All URIs are relative to https://api-v2.fattureincloud.it, except if the operati
| [**deleteVatType()**](SettingsApi.md#deleteVatType) | **DELETE** /c/{company_id}/settings/vat_types/{vat_type_id} | Delete Vat Type |
| [**getPaymentAccount()**](SettingsApi.md#getPaymentAccount) | **GET** /c/{company_id}/settings/payment_accounts/{payment_account_id} | Get Payment Account |
| [**getPaymentMethod()**](SettingsApi.md#getPaymentMethod) | **GET** /c/{company_id}/settings/payment_methods/{payment_method_id} | Get Payment Method |
| [**getTaxProfile()**](SettingsApi.md#getTaxProfile) | **GET** /c/{company_id}/settings/tax_profile | Get Tax Profile |
| [**getVatType()**](SettingsApi.md#getVatType) | **GET** /c/{company_id}/settings/vat_types/{vat_type_id} | Get Vat Type |
| [**modifyPaymentAccount()**](SettingsApi.md#modifyPaymentAccount) | **PUT** /c/{company_id}/settings/payment_accounts/{payment_account_id} | Modify Payment Account |
| [**modifyPaymentMethod()**](SettingsApi.md#modifyPaymentMethod) | **PUT** /c/{company_id}/settings/payment_methods/{payment_method_id} | Modify Payment Method |
Expand Down Expand Up @@ -519,6 +520,66 @@ try {
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `getTaxProfile()`

```php
getTaxProfile($company_id): \FattureInCloud\Model\GetTaxProfileResponse
```

Get Tax Profile

Gets the Tax Profile

### 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\SettingsApi(
// 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.

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

### Parameters

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

### Return type

[**\FattureInCloud\Model\GetTaxProfileResponse**](../Model/GetTaxProfileResponse.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)

## `getVatType()`

```php
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/Email.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | Email id | [optional]
**status** | [**\FattureInCloud\Model\EmailStatus**](EmailStatus.md) | | [optional]
**sent_date** | **\DateTime** | Email sent date | [optional]
**sent_date** | **string** | Email sent date | [optional]
**errors_count** | **int** | Email errors count | [optional]
**error_log** | **string** | Email errors log | [optional]
**from_email** | **string** | Email sender email | [optional]
Expand Down
9 changes: 9 additions & 0 deletions docs/Model/GetTaxProfileResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# # GetTaxProfileResponse

## Properties

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

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
2 changes: 1 addition & 1 deletion docs/Model/IssuedDocument.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Name | Type | Description | Notes
**year** | **int** | Issued document year | [optional]
**currency** | [**\FattureInCloud\Model\Currency**](Currency.md) | | [optional]
**language** | [**\FattureInCloud\Model\Language**](Language.md) | | [optional]
**subject** | **string** | Issued document subject | [optional]
**subject** | **string** | Issued document subject [not shown on the PDF] | [optional]
**visible_subject** | **string** | Issued document visible subject | [optional]
**rc_center** | **string** | Issued document revenue center [or cost center if type&#x3D;supplier_order]. | [optional]
**notes** | **string** | Issued document extra notes | [optional]
Expand Down
29 changes: 29 additions & 0 deletions docs/Model/TaxProfile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# # TaxProfile

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**company_type** | **string** | The company type | [optional]
**company_subtype** | **string** | The company subtype | [optional]
**profession** | **string** | The profession | [optional]
**regime** | **string** | The applied regime | [optional]
**rivalsa_name** | **string** | The name of the rivalsa | [optional]
**default_rivalsa** | **float** | The default rivalsa amount | [optional]
**cassa_name** | **string** | The name of the cassa | [optional]
**default_cassa** | **float** | The default cassa amount | [optional]
**default_cassa_taxable** | **float** | The default taxable amount for the cassa | [optional]
**cassa2_name** | **string** | The name of the second cassa | [optional]
**default_cassa2** | **float** | The default second cassa amount | [optional]
**default_cassa2_taxable** | **float** | The default taxable amount for the second cassa | [optional]
**default_withholding_tax** | **float** | The default withholding tax | [optional]
**default_withholding_tax_taxable** | **float** | The default taxable amount for the withholding tax | [optional]
**default_other_withholding_tax** | **float** | The default other withholding tax | [optional]
**enasarco** | **bool** | If it has enasarco | [optional]
**enasarco_type** | **string** | The enasarco type | [optional]
**contributions_percentage** | **float** | The contributions percentage | [optional]
**profit_coefficient** | **float** | The profit coefficient | [optional]
**med** | **bool** | If the health card system is active | [optional]
**default_vat** | [**\FattureInCloud\Model\VatType**](VatType.md) | | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
1 change: 1 addition & 0 deletions docs/Model/VatType.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ Name | Type | Description | Notes
**ei_description** | **string** | Vat type e-invoice description | [optional]
**editable** | **bool** | [Read Only] Is the vat type is editable. | [optional] [readonly]
**is_disabled** | **bool** | Is the vat type disabled | [optional]
**default** | **bool** | If the vat type is default | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Loading