Skip to content

Latest commit

 

History

History
313 lines (235 loc) · 11.2 KB

File metadata and controls

313 lines (235 loc) · 11.2 KB

Tripletex\ProjectperiodApi

All URIs are relative to https://tripletex.no/v2

Method HTTP request Description
hourlistReport GET /project/{id}/period/hourlistReport Find hourlist report by project period.
invoiced GET /project/{id}/period/invoiced Find invoiced info by project period.
invoicingReserve GET /project/{id}/period/invoicingReserve Find invoicing reserve by project period.
monthlyStatus GET /project/{id}/period/monthlyStatus Find overall status by project period.
overallStatus GET /project/{id}/period/overallStatus Find overall status by project period.

hourlistReport

\Tripletex\Model\ResponseWrapperProjectPeriodHourlyReport hourlistReport($date_from, $date_to, $id, $fields)

Find hourlist report by project period.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new Tripletex\Api\ProjectperiodApi(
    // 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
);
$date_from = "date_from_example"; // string | Format is yyyy-MM-dd (from and incl.).
$date_to = "date_to_example"; // string | Format is yyyy-MM-dd (to and excl.).
$id = 56; // int | Element ID
$fields = "fields_example"; // string | Fields filter pattern

try {
    $result = $apiInstance->hourlistReport($date_from, $date_to, $id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectperiodApi->hourlistReport: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
date_from string Format is yyyy-MM-dd (from and incl.).
date_to string Format is yyyy-MM-dd (to and excl.).
id int Element ID
fields string Fields filter pattern [optional]

Return type

\Tripletex\Model\ResponseWrapperProjectPeriodHourlyReport

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

invoiced

\Tripletex\Model\ResponseWrapperProjectPeriodInvoiced invoiced($date_from, $date_to, $id, $fields)

Find invoiced info by project period.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new Tripletex\Api\ProjectperiodApi(
    // 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
);
$date_from = "date_from_example"; // string | Format is yyyy-MM-dd (from and incl.).
$date_to = "date_to_example"; // string | Format is yyyy-MM-dd (to and excl.).
$id = 56; // int | Element ID
$fields = "fields_example"; // string | Fields filter pattern

try {
    $result = $apiInstance->invoiced($date_from, $date_to, $id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectperiodApi->invoiced: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
date_from string Format is yyyy-MM-dd (from and incl.).
date_to string Format is yyyy-MM-dd (to and excl.).
id int Element ID
fields string Fields filter pattern [optional]

Return type

\Tripletex\Model\ResponseWrapperProjectPeriodInvoiced

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

invoicingReserve

\Tripletex\Model\ResponseWrapperProjectPeriodInvoicingReserve invoicingReserve($date_from, $date_to, $id, $fields)

Find invoicing reserve by project period.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new Tripletex\Api\ProjectperiodApi(
    // 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
);
$date_from = "date_from_example"; // string | Format is yyyy-MM-dd (from and incl.).
$date_to = "date_to_example"; // string | Format is yyyy-MM-dd (to and excl.).
$id = 56; // int | Element ID
$fields = "fields_example"; // string | Fields filter pattern

try {
    $result = $apiInstance->invoicingReserve($date_from, $date_to, $id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectperiodApi->invoicingReserve: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
date_from string Format is yyyy-MM-dd (from and incl.).
date_to string Format is yyyy-MM-dd (to and excl.).
id int Element ID
fields string Fields filter pattern [optional]

Return type

\Tripletex\Model\ResponseWrapperProjectPeriodInvoicingReserve

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

monthlyStatus

\Tripletex\Model\ListResponseProjectPeriodMonthlyStatus monthlyStatus($date_from, $date_to, $id, $from, $count, $sorting, $fields)

Find overall status by project period.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new Tripletex\Api\ProjectperiodApi(
    // 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
);
$date_from = "date_from_example"; // string | Format is yyyy-MM-dd (from and incl.).
$date_to = "date_to_example"; // string | Format is yyyy-MM-dd (to and excl.).
$id = 56; // int | Element ID
$from = 56; // int | From index
$count = 56; // int | Number of elements to return
$sorting = "sorting_example"; // string | Sorting pattern
$fields = "fields_example"; // string | Fields filter pattern

try {
    $result = $apiInstance->monthlyStatus($date_from, $date_to, $id, $from, $count, $sorting, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectperiodApi->monthlyStatus: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
date_from string Format is yyyy-MM-dd (from and incl.).
date_to string Format is yyyy-MM-dd (to and excl.).
id int Element ID
from int From index [optional]
count int Number of elements to return [optional]
sorting string Sorting pattern [optional]
fields string Fields filter pattern [optional]

Return type

\Tripletex\Model\ListResponseProjectPeriodMonthlyStatus

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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

overallStatus

\Tripletex\Model\ResponseWrapperProjectPeriodOverallStatus overallStatus($date_from, $date_to, $id, $fields)

Find overall status by project period.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: tokenAuthScheme
$config = Tripletex\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new Tripletex\Api\ProjectperiodApi(
    // 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
);
$date_from = "date_from_example"; // string | Format is yyyy-MM-dd (from and incl.).
$date_to = "date_to_example"; // string | Format is yyyy-MM-dd (to and excl.).
$id = 56; // int | Element ID
$fields = "fields_example"; // string | Fields filter pattern

try {
    $result = $apiInstance->overallStatus($date_from, $date_to, $id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectperiodApi->overallStatus: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
date_from string Format is yyyy-MM-dd (from and incl.).
date_to string Format is yyyy-MM-dd (to and excl.).
id int Element ID
fields string Fields filter pattern [optional]

Return type

\Tripletex\Model\ResponseWrapperProjectPeriodOverallStatus

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

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