Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
82 lines (63 sloc) 1.49 KB
<?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'];
}
}
You can’t perform that action at this time.