-
Notifications
You must be signed in to change notification settings - Fork 200
/
Copy pathCrmDocument.php
77 lines (73 loc) · 2.8 KB
/
CrmDocument.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
namespace Picqer\Financials\Exact;
/**
* Class CrmDocument.
*
* @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=ReadCRMDocuments
*
* @property string $ID Primary key
* @property string $Account ID of the related account of this document
* @property CrmDocumentAttachment[] $Attachments Attachments linked to the document. Binaries are not sent in the response.
* @property string $Contact ID of the related contact of this document
* @property string $Created Creation date
* @property string $Creator User ID of creator
* @property string $CreatorFullName Name of creator
* @property int $Division Division code
* @property string $DocumentDate Entry date of the incoming document
* @property string $DocumentFolder Id of document folder
* @property string $DocumentViewUrl Url to view the document
* @property bool $HasEmptyBody Indicates that the document body is empty
* @property int $HID Human-readable ID, formatted as xx.xxx.xxx. Unique. May not be equal to zero
* @property string $Modified Last modified date
* @property string $Modifier User ID of modifier
* @property string $Opportunity The opportunity linked to the document
* @property int $PurchaseInvoiceNumber Purchase invoice number.
* @property int $PurchaseOrderNumber Purchase order number.
* @property int $SalesInvoiceNumber 'Our reference' of the transaction that belongs to this document
* @property int $SalesOrderNumber Number of the sales order
* @property int $SendMethod Send Method
* @property int $Share
* @property int $SharePointConnectionStatus SharePointConnectionStatus of this document
* @property string $SharePointID SharePointID of this document
* @property int $Source Source
* @property string $SourceDescription Translated description of the Source type
* @property string $Subject Subject of this document
* @property int $Type The document type
* @property string $TypeDescription Translated description of the document type. $filter and $orderby are not supported for this property.
*/
class CrmDocument extends Model
{
use Query\Findable;
protected $fillable = [
'ID',
'Account',
'Attachments',
'Contact',
'Created',
'Creator',
'CreatorFullName',
'Division',
'DocumentDate',
'DocumentFolder',
'DocumentViewUrl',
'HasEmptyBody',
'HID',
'Modified',
'Modifier',
'Opportunity',
'PurchaseInvoiceNumber',
'PurchaseOrderNumber',
'SalesInvoiceNumber',
'SalesOrderNumber',
'SendMethod',
'Share',
'SharePointConnectionStatus',
'SharePointID',
'Source',
'SourceDescription',
'Subject',
'Type',
'TypeDescription',
];
protected $url = 'read/crm/Documents';
}