forked from Philippe-Mange/exact-php-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContact.php
148 lines (144 loc) · 5.68 KB
/
Contact.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php namespace Picqer\Financials\Exact;
/**
* Class Contact
*
* @package Picqer\Financials\Exact
* @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=crmContacts
*
* @property Guid $ID Primary key
* @property Guid $Account The account to which the contact belongs
* @property Boolean $AccountIsCustomer Indicates if account is a customer
* @property Boolean $AccountIsSupplier Indicates if account is a supplier
* @property Guid $AccountMainContact Reference to the main contact of the account
* @property String $AccountName Name of the account
* @property String $AddressLine2 Second address line
* @property String $AddressStreet Street name of the address
* @property String $AddressStreetNumber Street number of the address
* @property String $AddressStreetNumberSuffix Street number suffix of the address
* @property Int32 $AllowMailing Obsolete
* @property DateTime $BirthDate Birth date
* @property String $BirthName Last birth name
* @property String $BirthNamePrefix Middle birth name
* @property String $BirthPlace Birth place
* @property String $BusinessEmail Email address of the contact
* @property String $BusinessFax Fax of the contact
* @property String $BusinessMobile Mobile of the contact
* @property String $BusinessPhone Phone of the contact
* @property String $BusinessPhoneExtension Phone extension of the contact
* @property String $City City
* @property String $Code Code of the account
* @property String $Country Country code
* @property DateTime $Created Creation date
* @property Guid $Creator User ID of the creator
* @property String $CreatorFullName Name of the creator
* @property Int32 $Division Division code
* @property String $Email Email address of the contact
* @property DateTime $EndDate End date
* @property String $FirstName First name. Provide at least first name or last name to create a new contact
* @property String $FullName Full name (First name Middle name Last name)
* @property String $Gender Gender: M=Male, V=Female, O=Unknown
* @property Int32 $HID Contact ID
* @property DateTime $IdentificationDate Identification date
* @property Guid $IdentificationDocument Reference to the identification document of the contact
* @property Guid $IdentificationUser Reference to the user responsible for identification
* @property String $Initials Initials
* @property Boolean $IsMailingExcluded Indicates whether contacts are excluded from the marketing list
* @property Boolean $IsMainContact Indicates if this is the main contact of the linked account
* @property String $JobTitleDescription Jobtitle of the contact
* @property String $Language Language code
* @property String $LastName Last name. Provide at least first name or last name to create a new contact
* @property String $MarketingNotes The user should be able to do a full text search on these notes to gather contacts for a marketing campaign
* @property String $MiddleName Middle name
* @property String $Mobile Business phone of the contact
* @property DateTime $Modified Last modified date
* @property Guid $Modifier User ID of modifier
* @property String $ModifierFullName Name of the last modifier
* @property String $Nationality Nationality
* @property String $Notes Extra remarks
* @property String $PartnerName Last name of partner
* @property String $PartnerNamePrefix Middlename of partner
* @property Guid $Person Reference to the personal information of this contact such as name, gender, address etc.
* @property String $Phone Phone of the contact
* @property String $PhoneExtension Phone extension of the contact
* @property Binary $Picture This field is write-only. The picture can be downloaded through PictureUrl and PictureThumbnailUrl.
* @property String $PictureName Filename of the picture
* @property String $PictureThumbnailUrl Url to retrieve the picture thumbnail
* @property String $PictureUrl Url to retrieve the picture
* @property String $Postcode Postcode
* @property String $SocialSecurityNumber Social security number
* @property DateTime $StartDate Start date
* @property String $State State
* @property String $Title Title
*/
class Contact extends Model
{
use Query\Findable;
use Persistance\Storable;
protected $fillable = [
'ID',
'Account',
'AccountIsCustomer',
'AccountIsSupplier',
'AccountMainContact',
'AccountName',
'AddressLine2',
'AddressStreet',
'AddressStreetNumber',
'AddressStreetNumberSuffix',
'AllowMailing',
'BirthDate',
'BirthName',
'BirthNamePrefix',
'BirthPlace',
'BusinessEmail',
'BusinessFax',
'BusinessMobile',
'BusinessPhone',
'BusinessPhoneExtension',
'City',
'Code',
'Country',
'Created',
'Creator',
'CreatorFullName',
'Division',
'Email',
'EndDate',
'FirstName',
'FullName',
'Gender',
'HID',
'IdentificationDate',
'IdentificationDocument',
'IdentificationUser',
'Initials',
'IsMailingExcluded',
'IsMainContact',
'JobTitleDescription',
'Language',
'LastName',
'MarketingNotes',
'MiddleName',
'Mobile',
'Modified',
'Modifier',
'ModifierFullName',
'Nationality',
'Notes',
'PartnerName',
'PartnerNamePrefix',
'Person',
'Phone',
'PhoneExtension',
'Picture',
'PictureName',
'PictureThumbnailUrl',
'PictureUrl',
'Postcode',
'SocialSecurityNumber',
'StartDate',
'State',
'Title'
];
protected $url = 'crm/Contacts';
}