forked from Philippe-Mange/exact-php-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMailMessage.php
57 lines (52 loc) · 3.48 KB
/
MailMessage.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
<?php namespace Picqer\Financials\Exact;
/**
* Class MailMessage
*
* @package Picqer\Financials\Exact
* @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=mailboxMailMessages
*
* @property Guid $ID Primary key
* @property Guid $Bank Bank to/from which the mail message is sent/received. This is used for mail messages of type Bank only. It has an attachment containing the bank file. When used for a mail message of type bank, the value is reserved for internal use and will then be ignored.
* @property String $BankAccount Bank account for which the mail message is sent. This is used for mail messages of type Bank only. It has an attachment containing the bank export file. When used for a mail message of type bank, the value is reserved for internal use and will then be ignored.
* @property Int32 $ForDivision Administration from which the mail message is sent. This is used for mail messages of type Bank only. When used for a mail message of type bank, the value is reserved for internal use and will then be ignored.
* @property Int16 $Operation Specifies the operation upon dealing with the mailmessage (Kirean scan service)
* @property Guid $OriginalMessage Provides a link to another MailMessage (Kirean scan service)
* @property Guid $PartnerKey The partner key that was used: this refers to the application from which the message is originating. It is filled with a fixed partnerkey when created from within Exact Online
* @property Double $Quantit Specifies the number of lines of the returned MailMessage attachment (Kirean scan service)
* @property Byte $RecipientDelete Indiciates if the recipient deleted this message. If this is the case the recipient can't see it anymore and the sender can actually delete it
* @property Guid $RecipientMailboxID Mailbox ID of the recipient. The owner of this mailbox will see the message in the inbox
* @property Int16 $RecipientStatus Status of the mail message, only the recipient can update this
* @property DateTime $SenderDateSent Date the message was sent. Default the date the message is created, can be an earlier date when imported from xml (the date the xml was sent)
* @property Byte $SenderDeleted Indicates if the sender deleted the message. This means the sender can't see it anymore and the recipient can actually delete it
* @property String $SenderIPAddress IP address of the sender
* @property Guid $SenderMailboxID Mailbox ID of the sender. The owner of this mailbox will see the message in the sent items
* @property String $Subject Subject of the OriginalMessage
* @property String $SynchronizationCode Provides a link between Exact Online and the banks
* @property Guid $Type Bank to/from which the mail message is sent/received. This is used for mail messages of type Bank only. It has an attachment containing the bank file. When used for a mail message of type bank, the value is reserved for internal use and will then be ignored.
*/
class MailMessage extends Model
{
use Query\Findable;
use Persistance\Storable;
protected $fillable = [
'ID',
'Bank',
'BankAccount',
'ForDivision',
'Operation',
'OriginalMessage',
'PartnerKey',
'Quantit',
'RecipientDelete',
'RecipientMailboxID',
'RecipientStatus',
'SenderDateSent',
'SenderDeleted',
'SenderIPAddress',
'SenderMailboxID',
'Subject',
'SynchronizationCode',
'Type'
];
protected $url = 'mailbox/MailMessages';
}