Skip to content

Latest commit

 

History

History
executable file
·
361 lines (250 loc) · 10.6 KB

COATreeViewsApi.md

File metadata and controls

executable file
·
361 lines (250 loc) · 10.6 KB

OpenAPI\Client\COATreeViewsApi

All URIs are relative to https://topal.vitan.ch:9001, except if the operation defines another base path.

Method HTTP request Description
cOATreeViewsDelete() DELETE /api/v1/clients/{clientId}/fiscalYears/{fiscalYearId}/coaTreeViews/{id} Delete coaTreeViewTreeView
cOATreeViewsGet() GET /api/v1/clients/{clientId}/fiscalYears/{fiscalYearId}/coatreeviews get list of coatreeViews
cOATreeViewsGetByCOA() GET /api/v1/clients/{clientId}/fiscalYears/{fiscalYearId}/coas/{coaId}/coatreeviews Get coaTreeView by id within given coa
cOATreeViewsGet_0() GET /api/v1/clients/{clientId}/fiscalYears/{fiscalYearId}/coatreeviews/{id} Get coaTreeView by id
cOATreeViewsGet_1() GET /api/v1/clients/{clientId}/fiscalYears/{fiscalYearId}/coatreeviews/byCode/{code} Get coaTreeView by code
cOATreeViewsPost() POST /api/v1/clients/{clientId}/fiscalYears/{fiscalYearId}/coatreeviews saves CoaTreeView COATreeView item type: - Account = 1 - COA Group = 2 - Counter = 3 - Mirror Account = 4 - Account Copy = 5 - Result = 6 - Commentary Line = 7

cOATreeViewsDelete()

cOATreeViewsDelete($id, $client_id, $fiscal_year_id): object

Delete coaTreeViewTreeView

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Topal\Client\Api\COATreeViewsApi(
    // 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()
);
$id = 56; // int
$client_id = 'client_id_example'; // string
$fiscal_year_id = 'fiscal_year_id_example'; // string

try {
    $result = $apiInstance->cOATreeViewsDelete($id, $client_id, $fiscal_year_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling COATreeViewsApi->cOATreeViewsDelete: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id int
client_id string
fiscal_year_id string

Return type

object

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

cOATreeViewsGet()

cOATreeViewsGet($client_id, $fiscal_year_id): \Topal\Client\Model\COATreeView[]

get list of coatreeViews

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Topal\Client\Api\COATreeViewsApi(
    // 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()
);
$client_id = 'client_id_example'; // string
$fiscal_year_id = 'fiscal_year_id_example'; // string

try {
    $result = $apiInstance->cOATreeViewsGet($client_id, $fiscal_year_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling COATreeViewsApi->cOATreeViewsGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
client_id string
fiscal_year_id string

Return type

\Topal\Client\Model\COATreeView[]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

cOATreeViewsGetByCOA()

cOATreeViewsGetByCOA($coa_id, $client_id, $fiscal_year_id): \Topal\Client\Model\COATreeView[]

Get coaTreeView by id within given coa

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Topal\Client\Api\COATreeViewsApi(
    // 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()
);
$coa_id = 56; // int
$client_id = 'client_id_example'; // string
$fiscal_year_id = 'fiscal_year_id_example'; // string

try {
    $result = $apiInstance->cOATreeViewsGetByCOA($coa_id, $client_id, $fiscal_year_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling COATreeViewsApi->cOATreeViewsGetByCOA: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
coa_id int
client_id string
fiscal_year_id string

Return type

\Topal\Client\Model\COATreeView[]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

cOATreeViewsGet_0()

cOATreeViewsGet_0($id, $client_id, $fiscal_year_id): \Topal\Client\Model\COATreeView

Get coaTreeView by id

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Topal\Client\Api\COATreeViewsApi(
    // 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()
);
$id = 56; // int
$client_id = 'client_id_example'; // string
$fiscal_year_id = 'fiscal_year_id_example'; // string

try {
    $result = $apiInstance->cOATreeViewsGet_0($id, $client_id, $fiscal_year_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling COATreeViewsApi->cOATreeViewsGet_0: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id int
client_id string
fiscal_year_id string

Return type

\Topal\Client\Model\COATreeView

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

cOATreeViewsGet_1()

cOATreeViewsGet_1($code, $client_id, $fiscal_year_id): \Topal\Client\Model\COATreeView

Get coaTreeView by code

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Topal\Client\Api\COATreeViewsApi(
    // 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()
);
$code = 'code_example'; // string
$client_id = 'client_id_example'; // string
$fiscal_year_id = 'fiscal_year_id_example'; // string

try {
    $result = $apiInstance->cOATreeViewsGet_1($code, $client_id, $fiscal_year_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling COATreeViewsApi->cOATreeViewsGet_1: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
code string
client_id string
fiscal_year_id string

Return type

\Topal\Client\Model\COATreeView

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

cOATreeViewsPost()

cOATreeViewsPost($client_id, $fiscal_year_id, $coa_tree_view, $parent_group_code): \Topal\Client\Model\COATreeView

saves CoaTreeView COATreeView item type: - Account = 1 - COA Group = 2 - Counter = 3 - Mirror Account = 4 - Account Copy = 5 - Result = 6 - Commentary Line = 7

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Topal\Client\Api\COATreeViewsApi(
    // 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()
);
$client_id = 'client_id_example'; // string
$fiscal_year_id = 'fiscal_year_id_example'; // string
$coa_tree_view = new \Topal\Client\Model\COATreeView(); // \Topal\Client\Model\COATreeView
$parent_group_code = 'parent_group_code_example'; // string | parent group

try {
    $result = $apiInstance->cOATreeViewsPost($client_id, $fiscal_year_id, $coa_tree_view, $parent_group_code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling COATreeViewsApi->cOATreeViewsPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
client_id string
fiscal_year_id string
coa_tree_view \Topal\Client\Model\COATreeView
parent_group_code string parent group [optional]

Return type

\Topal\Client\Model\COATreeView

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]