/
Notification.php
81 lines (63 loc) · 1.49 KB
/
Notification.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
<?php
/**
* Snipcart plugin for Craft CMS 3.x
*
* @link https://workingconcept.com
* @copyright Copyright (c) 2018 Working Concept Inc.
*/
namespace workingconcept\snipcart\models;
/**
* https://docs.snipcart.com/api-reference/notifications
*/
class Notification extends \craft\base\Model
{
// Constants
// =========================================================================
const TYPE_COMMENT = 'Comment';
const TYPE_INVOICE = 'Invoice';
const DELIVERY_METHOD_EMAIL = 'Email';
const DELIVERY_METHOD_NONE = 'None';
// Properties
// =========================================================================
/**
* @var string "0c3ac0bb-a94a-45c5-a4d8-a7934a7f180a"
*/
public $id;
/**
* @var \DateTime "2017-07-09T14:59:57.987Z"
*/
public $creationDate;
/**
* @var string `Comment`, `Invoice`, maybe other possibilities?
*/
public $type;
/**
* @var string `email`
*/
public $deliveryMethod;
/**
* @var string
*/
public $body;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $subject;
/**
* @var string "2017-06-07T19:09:31.933Z"
*/
public $sentOn;
// Public Methods
// =========================================================================
/**
* @inheritdoc
*/
public function datetimeAttributes(): array
{
return ['creationDate'];
}
}