All URIs are relative to https://avacloud-api.dangl-it.com
Method | HTTP request | Description |
---|---|---|
xRechnungConversionConvertAvaToXRechnung | POST /conversion/xrechnung/ava-wrapper/xrechnung | This will convert an AVA wrapper object to an XRechnung file |
xRechnungConversionConvertInvoiceToXRechnung | POST /conversion/xrechnung/invoice/xrechnung | This will convert an Invoice object to an XRechnung file |
xRechnungConversionConvertXRechnungToAva | POST /conversion/xrechnung/ava-wrapper | This will read an XRechnung file and convert it to an AVA wrapper object |
xRechnungConversionConvertXRechnungToInvoice | POST /conversion/xrechnung/invoice | This will read an XRechnung file and convert it to an Invoice object |
\SplFileObject xRechnungConversionConvertAvaToXRechnung($ava_wrapper)
This will convert an AVA wrapper object to an XRechnung file
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: Dangl.Identity
$config = Dangl\AVACloud\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Dangl\AVACloud\Api\XRechnungConversionApi(
// 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
);
$ava_wrapper = new \Dangl\AVACloud\Model\AvaProjectWrapper(); // \Dangl\AVACloud\Model\AvaProjectWrapper |
try {
$result = $apiInstance->xRechnungConversionConvertAvaToXRechnung($ava_wrapper);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling XRechnungConversionApi->xRechnungConversionConvertAvaToXRechnung: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
ava_wrapper | \Dangl\AVACloud\Model\AvaProjectWrapper |
- Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
- Accept: text/plain, application/json, text/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\SplFileObject xRechnungConversionConvertInvoiceToXRechnung($invoice)
This will convert an Invoice object to an XRechnung file
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: Dangl.Identity
$config = Dangl\AVACloud\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Dangl\AVACloud\Api\XRechnungConversionApi(
// 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
);
$invoice = new \Dangl\AVACloud\Model\Invoice(); // \Dangl\AVACloud\Model\Invoice |
try {
$result = $apiInstance->xRechnungConversionConvertInvoiceToXRechnung($invoice);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling XRechnungConversionApi->xRechnungConversionConvertInvoiceToXRechnung: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
invoice | \Dangl\AVACloud\Model\Invoice |
- Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
- Accept: text/plain, application/json, text/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Dangl\AVACloud\Model\AvaProjectWrapper xRechnungConversionConvertXRechnungToAva($xrechnung_file)
This will read an XRechnung file and convert it to an AVA wrapper object
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: Dangl.Identity
$config = Dangl\AVACloud\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Dangl\AVACloud\Api\XRechnungConversionApi(
// 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
);
$xrechnung_file = "/path/to/file.txt"; // \SplFileObject |
try {
$result = $apiInstance->xRechnungConversionConvertXRechnungToAva($xrechnung_file);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling XRechnungConversionApi->xRechnungConversionConvertXRechnungToAva: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
xrechnung_file | \SplFileObject | [optional] |
\Dangl\AVACloud\Model\AvaProjectWrapper
- Content-Type: multipart/form-data
- Accept: text/plain, application/json, text/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Dangl\AVACloud\Model\Invoice xRechnungConversionConvertXRechnungToInvoice($xrechnung_file)
This will read an XRechnung file and convert it to an Invoice object
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: Dangl.Identity
$config = Dangl\AVACloud\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Dangl\AVACloud\Api\XRechnungConversionApi(
// 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
);
$xrechnung_file = "/path/to/file.txt"; // \SplFileObject |
try {
$result = $apiInstance->xRechnungConversionConvertXRechnungToInvoice($xrechnung_file);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling XRechnungConversionApi->xRechnungConversionConvertXRechnungToInvoice: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
xrechnung_file | \SplFileObject | [optional] |
- Content-Type: multipart/form-data
- Accept: text/plain, application/json, text/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]