Skip to content

Commit 9604291

Browse files
committed
Expanding the documented properties of Assets
1 parent 2a4ddd2 commit 9604291

File tree

1 file changed

+47
-5
lines changed

1 file changed

+47
-5
lines changed

src/Asset.php

Lines changed: 47 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,48 @@
22

33
namespace Spinen\Halo;
44

5+
use Spinen\Halo\Support\Collection;
56
use Spinen\Halo\Support\Model;
67

78
/**
89
* Class Asset
910
*
11+
* @property bool $bookmarked
1012
* @property bool $inactive
1113
* @property bool $non_consignable
12-
* @property float $key_field3
14+
* @property Collection $custombuttons
15+
* @property Collection $customfields
16+
* @property Collection $fields
17+
* @property int $access_control_level
1318
* @property int $assettype_id
1419
* @property int $automate_id
1520
* @property int $business_owner_cab_id
1621
* @property int $business_owner_id
1722
* @property int $client_id
23+
* @property int $commissioned
24+
* @property int $contract_id
25+
* @property int $criticality
1826
* @property int $datto_alternate_id
1927
* @property int $defaultsequence
2028
* @property int $device_number
29+
* @property int $device42_id
30+
* @property int $goodsin_po_id
2131
* @property int $id
2232
* @property int $issue_consignment_line_id
33+
* @property int $item_cost
2334
* @property int $item_id
2435
* @property int $itemstock_id
36+
* @property int $ncentral_details_id
2537
* @property int $ninjarmm_id
38+
* @property int $passportal_id
39+
* @property int $priority_id
40+
* @property int $prtg_id
2641
* @property int $reserved_salesorder_id
2742
* @property int $reserved_salesorder_line_id
2843
* @property int $site_id
29-
* @property int $snow_id
44+
* @property int $sla_id
3045
* @property int $status_id
46+
* @property int $stockbin_id
3147
* @property int $supplier_contract_id
3248
* @property int $supplier_id
3349
* @property int $supplier_priority_id
@@ -36,29 +52,55 @@
3652
* @property int $technical_owner_cab_id
3753
* @property int $technical_owner_id
3854
* @property int $third_party_id
55+
* @property string $addigy_id
3956
* @property string $assettype_name
57+
* @property string $ateraid
4058
* @property string $auvik_device_id
41-
* @property string $auvik_url
59+
* @property string $auvik_network_id
60+
* @property string $azureTenantId
61+
* @property string $business_owner_name
4262
* @property string $client_name
4363
* @property string $colour
64+
* @property string $contract_ref
4465
* @property string $datto_id
4566
* @property string $datto_url
67+
* @property string $dlastupdate
68+
* @property string $icon
69+
* @property string $intune_id
4670
* @property string $inventory_number
47-
* @property string $item_name
71+
* @property string $itglue_id
4872
* @property string $itglue_url
4973
* @property string $key_field
5074
* @property string $key_field2
75+
* @property string $key_field3
76+
* @property string $lansweeper_id
77+
* @property string $lansweeper_url
78+
* @property string $last_modified
79+
* @property string $qualys_id
5180
* @property string $site_name
81+
* @property string $supplier_contract_ref
82+
* @property string $supplier_name
83+
* @property string $technical_owner_name
5284
* @property string $use
5385
*/
5486
class Asset extends Model
5587
{
88+
/**
89+
* The name of the "updated at" column.
90+
*
91+
* @var string
92+
*/
93+
const UPDATED_AT = 'last_modified';
94+
5695
/**
5796
* The attributes that should be cast to native types.
5897
*
5998
* @var array
6099
*/
61-
protected $casts = [];
100+
protected $casts = [
101+
'dlastupdate' => 'datetime',
102+
'last_modified' => 'datetime',
103+
];
62104

63105
/**
64106
* Path to API endpoint.

0 commit comments

Comments
 (0)