Skip to content

Commit 50171a7

Browse files
authored
Update WorkTimeEntity.php
1 parent fd5acd3 commit 50171a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/WorkTime/WorkTimeEntity.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class WorkTimeEntity
2525

2626
public $comment;
2727

28-
// not documented property https://github.com/fastbill/fastbill-php-sdk/issues/61
29-
public $billed;
28+
// not documented property IS_CALCULATED (1 == billed)
29+
public $isCalculated;
3030

3131
public const FIELD_MAPPING = [
3232
'TIME_ID' => 'timeId',
@@ -39,7 +39,7 @@ class WorkTimeEntity
3939
'MINUTES' => 'minutes',
4040
'BILLABLE_MINUTES' => 'billableMinutes',
4141
'COMMENT' => 'comment',
42-
'BILLED' => 'billed',
42+
'IS_CALCULATED' => 'isCalculated',
4343
];
4444

4545
public const XML_FIELD_MAPPING = [
@@ -53,7 +53,7 @@ class WorkTimeEntity
5353
'minutes' => 'MINUTES',
5454
'billableMinutes' => 'BILLABLE_MINUTES',
5555
'comment' => 'COMMENT',
56-
'billed' => 'BILLED',
56+
'isCalculated' => 'IS_CALCULATED',
5757
];
5858

5959
public function __construct(?\SimpleXMLElement $data = null)

0 commit comments

Comments
 (0)