From abda713f95910e1db4b36bd1dc920df22950d14d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niko=20Gran=C3=B6?= Date: Wed, 4 Aug 2021 09:54:17 +0300 Subject: [PATCH] Changes on timesheet API --- docs/Api/TimesheetApi.md | 4 +- docs/Model/TimesheetCollection.md | 2 + docs/Model/TimesheetCollectionExpanded.md | 2 + docs/Model/TimesheetEditForm.md | 4 +- docs/Model/TimesheetEntity.md | 1 + docs/Model/TimesheetEntityExpanded.md | 1 + docs/Model/Version.md | 1 + src/Api/TimesheetApi.php | 10 +- src/Model/TimesheetCollection.php | 66 ++++++++++++ src/Model/TimesheetCollectionExpanded.php | 66 ++++++++++++ src/Model/TimesheetEditForm.php | 120 +++++++++++----------- src/Model/TimesheetEntity.php | 33 ++++++ src/Model/TimesheetEntityExpanded.php | 33 ++++++ 13 files changed, 274 insertions(+), 69 deletions(-) diff --git a/docs/Api/TimesheetApi.md b/docs/Api/TimesheetApi.md index 55f8deb..21b5f99 100644 --- a/docs/Api/TimesheetApi.md +++ b/docs/Api/TimesheetApi.md @@ -121,7 +121,7 @@ $activity = 'activity_example'; // string | DEPRECATED: Activity ID to filter ti $activities = 'activities_example'; // string | Comma separated list of activity IDs to filter timesheets $page = 'page_example'; // string | The page to display, renders a 404 if not found (default: 1) $size = 'size_example'; // string | The amount of entries for each page (default: 50) -$tags = 'tags_example'; // string | The name of tags which are in the datasets +$tags = 'tags_example'; // string | Comma separated list of tag names $orderBy = 'orderBy_example'; // string | The field by which results will be ordered. Allowed values: id, begin, end, rate (default: begin) $order = 'order_example'; // string | The result order. Allowed values: ASC, DESC (default: DESC) $begin = 'begin_example'; // \DateTime | Only records after this date will be included (format: HTML5) @@ -153,7 +153,7 @@ Name | Type | Description | Notes **activities** | **string**| Comma separated list of activity IDs to filter timesheets | [optional] **page** | **string**| The page to display, renders a 404 if not found (default: 1) | [optional] **size** | **string**| The amount of entries for each page (default: 50) | [optional] - **tags** | **string**| The name of tags which are in the datasets | [optional] + **tags** | **string**| Comma separated list of tag names | [optional] **orderBy** | **string**| The field by which results will be ordered. Allowed values: id, begin, end, rate (default: begin) | [optional] **order** | **string**| The result order. Allowed values: ASC, DESC (default: DESC) | [optional] **begin** | **\DateTime**| Only records after this date will be included (format: HTML5) | [optional] diff --git a/docs/Model/TimesheetCollection.md b/docs/Model/TimesheetCollection.md index 85d5ffb..70535ac 100644 --- a/docs/Model/TimesheetCollection.md +++ b/docs/Model/TimesheetCollection.md @@ -15,6 +15,8 @@ Name | Type | Description | Notes **description** | **string** | | [optional] **rate** | **float** | | [optional] **internalRate** | **float** | | [optional] +**exported** | **bool** | | +**billable** | **bool** | | **metaFields** | [**\Fiteco\KimaiClient\Model\TimesheetMeta[]**](TimesheetMeta.md) | All visible meta (custom) fields registered with this timesheet | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/TimesheetCollectionExpanded.md b/docs/Model/TimesheetCollectionExpanded.md index 6bb356c..e4d501d 100644 --- a/docs/Model/TimesheetCollectionExpanded.md +++ b/docs/Model/TimesheetCollectionExpanded.md @@ -15,6 +15,8 @@ Name | Type | Description | Notes **description** | **string** | | [optional] **rate** | **float** | | [optional] **internalRate** | **float** | | [optional] +**exported** | **bool** | | +**billable** | **bool** | | **metaFields** | [**\Fiteco\KimaiClient\Model\TimesheetMeta[]**](TimesheetMeta.md) | All visible meta (custom) fields registered with this timesheet | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/TimesheetEditForm.md b/docs/Model/TimesheetEditForm.md index 2459444..f91a3b3 100644 --- a/docs/Model/TimesheetEditForm.md +++ b/docs/Model/TimesheetEditForm.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **begin** | [**\DateTime**](\DateTime.md) | | **end** | [**\DateTime**](\DateTime.md) | | [optional] -**duration** | **string** | | [optional] **project** | **int** | Project ID | **activity** | **int** | Activity ID | **description** | **string** | | [optional] -**tags** | **string** | Comma separated list of tags | [optional] **fixedRate** | **float** | Fixed rate | [optional] **hourlyRate** | **float** | Hourly rate | [optional] **user** | **int** | User ID | [optional] **exported** | **bool** | | [optional] +**billable** | **bool** | | [optional] +**tags** | **string** | Comma separated list of tags | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/TimesheetEntity.md b/docs/Model/TimesheetEntity.md index eb3cd02..2b4b0e1 100644 --- a/docs/Model/TimesheetEntity.md +++ b/docs/Model/TimesheetEntity.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **fixedRate** | **float** | | [optional] **hourlyRate** | **float** | | [optional] **exported** | **bool** | | +**billable** | **bool** | | **metaFields** | [**\Fiteco\KimaiClient\Model\TimesheetMeta[]**](TimesheetMeta.md) | All visible meta (custom) fields registered with this timesheet | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/TimesheetEntityExpanded.md b/docs/Model/TimesheetEntityExpanded.md index 03767ce..f23186d 100644 --- a/docs/Model/TimesheetEntityExpanded.md +++ b/docs/Model/TimesheetEntityExpanded.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **fixedRate** | **float** | | [optional] **hourlyRate** | **float** | | [optional] **exported** | **bool** | | +**billable** | **bool** | | **metaFields** | [**\Fiteco\KimaiClient\Model\TimesheetMeta[]**](TimesheetMeta.md) | All visible meta (custom) fields registered with this timesheet | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/Version.md b/docs/Model/Version.md index 3473e37..015789a 100644 --- a/docs/Model/Version.md +++ b/docs/Model/Version.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **version** | **string** | | [optional] +**versionId** | **int** | Follows the same logic as PHP_VERSION_ID, see https://www.php.net/manual/de/function.phpversion.php | [optional] **candidate** | **string** | | [optional] **semver** | **string** | | [optional] **name** | **string** | | [optional] diff --git a/src/Api/TimesheetApi.php b/src/Api/TimesheetApi.php index c576ef7..dd503b8 100644 --- a/src/Api/TimesheetApi.php +++ b/src/Api/TimesheetApi.php @@ -363,7 +363,7 @@ public function apiTimesheetsActiveGetRequest() * @param string $activities Comma separated list of activity IDs to filter timesheets (optional) * @param string $page The page to display, renders a 404 if not found (default: 1) (optional) * @param string $size The amount of entries for each page (default: 50) (optional) - * @param string $tags The name of tags which are in the datasets (optional) + * @param string $tags Comma separated list of tag names (optional) * @param string $orderBy The field by which results will be ordered. Allowed values: id, begin, end, rate (default: begin) (optional) * @param string $order The result order. Allowed values: ASC, DESC (default: DESC) (optional) * @param \DateTime $begin Only records after this date will be included (format: HTML5) (optional) @@ -400,7 +400,7 @@ public function apiTimesheetsGet($user = null, $customer = null, $customers = nu * @param string $activities Comma separated list of activity IDs to filter timesheets (optional) * @param string $page The page to display, renders a 404 if not found (default: 1) (optional) * @param string $size The amount of entries for each page (default: 50) (optional) - * @param string $tags The name of tags which are in the datasets (optional) + * @param string $tags Comma separated list of tag names (optional) * @param string $orderBy The field by which results will be ordered. Allowed values: id, begin, end, rate (default: begin) (optional) * @param string $order The result order. Allowed values: ASC, DESC (default: DESC) (optional) * @param \DateTime $begin Only records after this date will be included (format: HTML5) (optional) @@ -495,7 +495,7 @@ public function apiTimesheetsGetWithHttpInfo($user = null, $customer = null, $cu * @param string $activities Comma separated list of activity IDs to filter timesheets (optional) * @param string $page The page to display, renders a 404 if not found (default: 1) (optional) * @param string $size The amount of entries for each page (default: 50) (optional) - * @param string $tags The name of tags which are in the datasets (optional) + * @param string $tags Comma separated list of tag names (optional) * @param string $orderBy The field by which results will be ordered. Allowed values: id, begin, end, rate (default: begin) (optional) * @param string $order The result order. Allowed values: ASC, DESC (default: DESC) (optional) * @param \DateTime $begin Only records after this date will be included (format: HTML5) (optional) @@ -534,7 +534,7 @@ function ($response) { * @param string $activities Comma separated list of activity IDs to filter timesheets (optional) * @param string $page The page to display, renders a 404 if not found (default: 1) (optional) * @param string $size The amount of entries for each page (default: 50) (optional) - * @param string $tags The name of tags which are in the datasets (optional) + * @param string $tags Comma separated list of tag names (optional) * @param string $orderBy The field by which results will be ordered. Allowed values: id, begin, end, rate (default: begin) (optional) * @param string $order The result order. Allowed values: ASC, DESC (default: DESC) (optional) * @param \DateTime $begin Only records after this date will be included (format: HTML5) (optional) @@ -592,7 +592,7 @@ function ($exception) { * @param string $activities Comma separated list of activity IDs to filter timesheets (optional) * @param string $page The page to display, renders a 404 if not found (default: 1) (optional) * @param string $size The amount of entries for each page (default: 50) (optional) - * @param string $tags The name of tags which are in the datasets (optional) + * @param string $tags Comma separated list of tag names (optional) * @param string $orderBy The field by which results will be ordered. Allowed values: id, begin, end, rate (default: begin) (optional) * @param string $order The result order. Allowed values: ASC, DESC (default: DESC) (optional) * @param \DateTime $begin Only records after this date will be included (format: HTML5) (optional) diff --git a/src/Model/TimesheetCollection.php b/src/Model/TimesheetCollection.php index d9c41de..5bfa4cf 100644 --- a/src/Model/TimesheetCollection.php +++ b/src/Model/TimesheetCollection.php @@ -71,6 +71,8 @@ class TimesheetCollection implements ModelInterface, ArrayAccess, \JsonSerializa 'description' => 'string', 'rate' => 'float', 'internalRate' => 'float', + 'exported' => 'bool', + 'billable' => 'bool', 'metaFields' => '\Fiteco\KimaiClient\Model\TimesheetMeta[]', ]; @@ -93,6 +95,8 @@ class TimesheetCollection implements ModelInterface, ArrayAccess, \JsonSerializa 'description' => null, 'rate' => 'float', 'internalRate' => 'float', + 'exported' => null, + 'billable' => null, 'metaFields' => null, ]; @@ -134,6 +138,8 @@ public static function openAPIFormats() 'description' => 'description', 'rate' => 'rate', 'internalRate' => 'internalRate', + 'exported' => 'exported', + 'billable' => 'billable', 'metaFields' => 'metaFields', ]; @@ -154,6 +160,8 @@ public static function openAPIFormats() 'description' => 'setDescription', 'rate' => 'setRate', 'internalRate' => 'setInternalRate', + 'exported' => 'setExported', + 'billable' => 'setBillable', 'metaFields' => 'setMetaFields', ]; @@ -174,6 +182,8 @@ public static function openAPIFormats() 'description' => 'getDescription', 'rate' => 'getRate', 'internalRate' => 'getInternalRate', + 'exported' => 'getExported', + 'billable' => 'getBillable', 'metaFields' => 'getMetaFields', ]; @@ -244,6 +254,8 @@ public function __construct(array $data = null) $this->container['description'] = $data['description'] ?? null; $this->container['rate'] = $data['rate'] ?? null; $this->container['internalRate'] = $data['internalRate'] ?? null; + $this->container['exported'] = $data['exported'] ?? null; + $this->container['billable'] = $data['billable'] ?? null; $this->container['metaFields'] = $data['metaFields'] ?? null; } @@ -259,6 +271,12 @@ public function listInvalidProperties() if (null === $this->container['begin']) { $invalidProperties[] = "'begin' can't be null"; } + if (null === $this->container['exported']) { + $invalidProperties[] = "'exported' can't be null"; + } + if (null === $this->container['billable']) { + $invalidProperties[] = "'billable' can't be null"; + } return $invalidProperties; } @@ -538,6 +556,54 @@ public function setInternalRate($internalRate) return $this; } + /** + * Gets exported. + * + * @return bool + */ + public function getExported() + { + return $this->container['exported']; + } + + /** + * Sets exported. + * + * @param bool $exported exported + * + * @return self + */ + public function setExported($exported) + { + $this->container['exported'] = $exported; + + return $this; + } + + /** + * Gets billable. + * + * @return bool + */ + public function getBillable() + { + return $this->container['billable']; + } + + /** + * Sets billable. + * + * @param bool $billable billable + * + * @return self + */ + public function setBillable($billable) + { + $this->container['billable'] = $billable; + + return $this; + } + /** * Gets metaFields. * diff --git a/src/Model/TimesheetCollectionExpanded.php b/src/Model/TimesheetCollectionExpanded.php index 3955993..5d59876 100644 --- a/src/Model/TimesheetCollectionExpanded.php +++ b/src/Model/TimesheetCollectionExpanded.php @@ -71,6 +71,8 @@ class TimesheetCollectionExpanded implements ModelInterface, ArrayAccess, \JsonS 'description' => 'string', 'rate' => 'float', 'internalRate' => 'float', + 'exported' => 'bool', + 'billable' => 'bool', 'metaFields' => '\Fiteco\KimaiClient\Model\TimesheetMeta[]', ]; @@ -93,6 +95,8 @@ class TimesheetCollectionExpanded implements ModelInterface, ArrayAccess, \JsonS 'description' => null, 'rate' => 'float', 'internalRate' => 'float', + 'exported' => null, + 'billable' => null, 'metaFields' => null, ]; @@ -134,6 +138,8 @@ public static function openAPIFormats() 'description' => 'description', 'rate' => 'rate', 'internalRate' => 'internalRate', + 'exported' => 'exported', + 'billable' => 'billable', 'metaFields' => 'metaFields', ]; @@ -154,6 +160,8 @@ public static function openAPIFormats() 'description' => 'setDescription', 'rate' => 'setRate', 'internalRate' => 'setInternalRate', + 'exported' => 'setExported', + 'billable' => 'setBillable', 'metaFields' => 'setMetaFields', ]; @@ -174,6 +182,8 @@ public static function openAPIFormats() 'description' => 'getDescription', 'rate' => 'getRate', 'internalRate' => 'getInternalRate', + 'exported' => 'getExported', + 'billable' => 'getBillable', 'metaFields' => 'getMetaFields', ]; @@ -244,6 +254,8 @@ public function __construct(array $data = null) $this->container['description'] = $data['description'] ?? null; $this->container['rate'] = $data['rate'] ?? null; $this->container['internalRate'] = $data['internalRate'] ?? null; + $this->container['exported'] = $data['exported'] ?? null; + $this->container['billable'] = $data['billable'] ?? null; $this->container['metaFields'] = $data['metaFields'] ?? null; } @@ -265,6 +277,12 @@ public function listInvalidProperties() if (null === $this->container['project']) { $invalidProperties[] = "'project' can't be null"; } + if (null === $this->container['exported']) { + $invalidProperties[] = "'exported' can't be null"; + } + if (null === $this->container['billable']) { + $invalidProperties[] = "'billable' can't be null"; + } return $invalidProperties; } @@ -544,6 +562,54 @@ public function setInternalRate($internalRate) return $this; } + /** + * Gets exported. + * + * @return bool + */ + public function getExported() + { + return $this->container['exported']; + } + + /** + * Sets exported. + * + * @param bool $exported exported + * + * @return self + */ + public function setExported($exported) + { + $this->container['exported'] = $exported; + + return $this; + } + + /** + * Gets billable. + * + * @return bool + */ + public function getBillable() + { + return $this->container['billable']; + } + + /** + * Sets billable. + * + * @param bool $billable billable + * + * @return self + */ + public function setBillable($billable) + { + $this->container['billable'] = $billable; + + return $this; + } + /** * Gets metaFields. * diff --git a/src/Model/TimesheetEditForm.php b/src/Model/TimesheetEditForm.php index 18640a3..7b18814 100644 --- a/src/Model/TimesheetEditForm.php +++ b/src/Model/TimesheetEditForm.php @@ -62,15 +62,15 @@ class TimesheetEditForm implements ModelInterface, ArrayAccess, \JsonSerializabl protected static $openAPITypes = [ 'begin' => '\DateTime', 'end' => '\DateTime', - 'duration' => 'string', 'project' => 'int', 'activity' => 'int', 'description' => 'string', - 'tags' => 'string', 'fixedRate' => 'float', 'hourlyRate' => 'float', 'user' => 'int', 'exported' => 'bool', + 'billable' => 'bool', + 'tags' => 'string', ]; /** @@ -83,15 +83,15 @@ class TimesheetEditForm implements ModelInterface, ArrayAccess, \JsonSerializabl protected static $openAPIFormats = [ 'begin' => 'date-time', 'end' => 'date-time', - 'duration' => null, 'project' => null, 'activity' => null, 'description' => null, - 'tags' => null, 'fixedRate' => null, 'hourlyRate' => null, 'user' => null, 'exported' => null, + 'billable' => null, + 'tags' => null, ]; /** @@ -123,15 +123,15 @@ public static function openAPIFormats() protected static $attributeMap = [ 'begin' => 'begin', 'end' => 'end', - 'duration' => 'duration', 'project' => 'project', 'activity' => 'activity', 'description' => 'description', - 'tags' => 'tags', 'fixedRate' => 'fixedRate', 'hourlyRate' => 'hourlyRate', 'user' => 'user', 'exported' => 'exported', + 'billable' => 'billable', + 'tags' => 'tags', ]; /** @@ -142,15 +142,15 @@ public static function openAPIFormats() protected static $setters = [ 'begin' => 'setBegin', 'end' => 'setEnd', - 'duration' => 'setDuration', 'project' => 'setProject', 'activity' => 'setActivity', 'description' => 'setDescription', - 'tags' => 'setTags', 'fixedRate' => 'setFixedRate', 'hourlyRate' => 'setHourlyRate', 'user' => 'setUser', 'exported' => 'setExported', + 'billable' => 'setBillable', + 'tags' => 'setTags', ]; /** @@ -161,15 +161,15 @@ public static function openAPIFormats() protected static $getters = [ 'begin' => 'getBegin', 'end' => 'getEnd', - 'duration' => 'getDuration', 'project' => 'getProject', 'activity' => 'getActivity', 'description' => 'getDescription', - 'tags' => 'getTags', 'fixedRate' => 'getFixedRate', 'hourlyRate' => 'getHourlyRate', 'user' => 'getUser', 'exported' => 'getExported', + 'billable' => 'getBillable', + 'tags' => 'getTags', ]; /** @@ -230,15 +230,15 @@ public function __construct(array $data = null) { $this->container['begin'] = $data['begin'] ?? null; $this->container['end'] = $data['end'] ?? null; - $this->container['duration'] = $data['duration'] ?? null; $this->container['project'] = $data['project'] ?? null; $this->container['activity'] = $data['activity'] ?? null; $this->container['description'] = $data['description'] ?? null; - $this->container['tags'] = $data['tags'] ?? null; $this->container['fixedRate'] = $data['fixedRate'] ?? null; $this->container['hourlyRate'] = $data['hourlyRate'] ?? null; $this->container['user'] = $data['user'] ?? null; $this->container['exported'] = $data['exported'] ?? null; + $this->container['billable'] = $data['billable'] ?? null; + $this->container['tags'] = $data['tags'] ?? null; } /** @@ -322,30 +322,6 @@ public function setEnd($end) return $this; } - /** - * Gets duration. - * - * @return string|null - */ - public function getDuration() - { - return $this->container['duration']; - } - - /** - * Sets duration. - * - * @param string|null $duration duration - * - * @return self - */ - public function setDuration($duration) - { - $this->container['duration'] = $duration; - - return $this; - } - /** * Gets project. * @@ -418,30 +394,6 @@ public function setDescription($description) return $this; } - /** - * Gets tags. - * - * @return string|null - */ - public function getTags() - { - return $this->container['tags']; - } - - /** - * Sets tags. - * - * @param string|null $tags Comma separated list of tags - * - * @return self - */ - public function setTags($tags) - { - $this->container['tags'] = $tags; - - return $this; - } - /** * Gets fixedRate. * @@ -538,6 +490,54 @@ public function setExported($exported) return $this; } + /** + * Gets billable. + * + * @return bool|null + */ + public function getBillable() + { + return $this->container['billable']; + } + + /** + * Sets billable. + * + * @param bool|null $billable billable + * + * @return self + */ + public function setBillable($billable) + { + $this->container['billable'] = $billable; + + return $this; + } + + /** + * Gets tags. + * + * @return string|null + */ + public function getTags() + { + return $this->container['tags']; + } + + /** + * Sets tags. + * + * @param string|null $tags Comma separated list of tags + * + * @return self + */ + public function setTags($tags) + { + $this->container['tags'] = $tags; + + return $this; + } + /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/TimesheetEntity.php b/src/Model/TimesheetEntity.php index a1d9820..e7feabc 100644 --- a/src/Model/TimesheetEntity.php +++ b/src/Model/TimesheetEntity.php @@ -74,6 +74,7 @@ class TimesheetEntity implements ModelInterface, ArrayAccess, \JsonSerializable 'fixedRate' => 'float', 'hourlyRate' => 'float', 'exported' => 'bool', + 'billable' => 'bool', 'metaFields' => '\Fiteco\KimaiClient\Model\TimesheetMeta[]', ]; @@ -99,6 +100,7 @@ class TimesheetEntity implements ModelInterface, ArrayAccess, \JsonSerializable 'fixedRate' => 'float', 'hourlyRate' => 'float', 'exported' => null, + 'billable' => null, 'metaFields' => null, ]; @@ -143,6 +145,7 @@ public static function openAPIFormats() 'fixedRate' => 'fixedRate', 'hourlyRate' => 'hourlyRate', 'exported' => 'exported', + 'billable' => 'billable', 'metaFields' => 'metaFields', ]; @@ -166,6 +169,7 @@ public static function openAPIFormats() 'fixedRate' => 'setFixedRate', 'hourlyRate' => 'setHourlyRate', 'exported' => 'setExported', + 'billable' => 'setBillable', 'metaFields' => 'setMetaFields', ]; @@ -189,6 +193,7 @@ public static function openAPIFormats() 'fixedRate' => 'getFixedRate', 'hourlyRate' => 'getHourlyRate', 'exported' => 'getExported', + 'billable' => 'getBillable', 'metaFields' => 'getMetaFields', ]; @@ -262,6 +267,7 @@ public function __construct(array $data = null) $this->container['fixedRate'] = $data['fixedRate'] ?? null; $this->container['hourlyRate'] = $data['hourlyRate'] ?? null; $this->container['exported'] = $data['exported'] ?? null; + $this->container['billable'] = $data['billable'] ?? null; $this->container['metaFields'] = $data['metaFields'] ?? null; } @@ -280,6 +286,9 @@ public function listInvalidProperties() if (null === $this->container['exported']) { $invalidProperties[] = "'exported' can't be null"; } + if (null === $this->container['billable']) { + $invalidProperties[] = "'billable' can't be null"; + } return $invalidProperties; } @@ -631,6 +640,30 @@ public function setExported($exported) return $this; } + /** + * Gets billable. + * + * @return bool + */ + public function getBillable() + { + return $this->container['billable']; + } + + /** + * Sets billable. + * + * @param bool $billable billable + * + * @return self + */ + public function setBillable($billable) + { + $this->container['billable'] = $billable; + + return $this; + } + /** * Gets metaFields. * diff --git a/src/Model/TimesheetEntityExpanded.php b/src/Model/TimesheetEntityExpanded.php index 780c764..507e408 100644 --- a/src/Model/TimesheetEntityExpanded.php +++ b/src/Model/TimesheetEntityExpanded.php @@ -74,6 +74,7 @@ class TimesheetEntityExpanded implements ModelInterface, ArrayAccess, \JsonSeria 'fixedRate' => 'float', 'hourlyRate' => 'float', 'exported' => 'bool', + 'billable' => 'bool', 'metaFields' => '\Fiteco\KimaiClient\Model\TimesheetMeta[]', ]; @@ -99,6 +100,7 @@ class TimesheetEntityExpanded implements ModelInterface, ArrayAccess, \JsonSeria 'fixedRate' => 'float', 'hourlyRate' => 'float', 'exported' => null, + 'billable' => null, 'metaFields' => null, ]; @@ -143,6 +145,7 @@ public static function openAPIFormats() 'fixedRate' => 'fixedRate', 'hourlyRate' => 'hourlyRate', 'exported' => 'exported', + 'billable' => 'billable', 'metaFields' => 'metaFields', ]; @@ -166,6 +169,7 @@ public static function openAPIFormats() 'fixedRate' => 'setFixedRate', 'hourlyRate' => 'setHourlyRate', 'exported' => 'setExported', + 'billable' => 'setBillable', 'metaFields' => 'setMetaFields', ]; @@ -189,6 +193,7 @@ public static function openAPIFormats() 'fixedRate' => 'getFixedRate', 'hourlyRate' => 'getHourlyRate', 'exported' => 'getExported', + 'billable' => 'getBillable', 'metaFields' => 'getMetaFields', ]; @@ -262,6 +267,7 @@ public function __construct(array $data = null) $this->container['fixedRate'] = $data['fixedRate'] ?? null; $this->container['hourlyRate'] = $data['hourlyRate'] ?? null; $this->container['exported'] = $data['exported'] ?? null; + $this->container['billable'] = $data['billable'] ?? null; $this->container['metaFields'] = $data['metaFields'] ?? null; } @@ -286,6 +292,9 @@ public function listInvalidProperties() if (null === $this->container['exported']) { $invalidProperties[] = "'exported' can't be null"; } + if (null === $this->container['billable']) { + $invalidProperties[] = "'billable' can't be null"; + } return $invalidProperties; } @@ -637,6 +646,30 @@ public function setExported($exported) return $this; } + /** + * Gets billable. + * + * @return bool + */ + public function getBillable() + { + return $this->container['billable']; + } + + /** + * Sets billable. + * + * @param bool $billable billable + * + * @return self + */ + public function setBillable($billable) + { + $this->container['billable'] = $billable; + + return $this; + } + /** * Gets metaFields. *