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
<?php
/**
*
*/
namespace Commercetools\Core\Model\OrderEdit;
use Commercetools\Core\Model\Common\DateTimeDecorator;
use DateTime;
/**
* @package Commercetools\Core\Model\OrderEdit
*
* @method DateTimeDecorator getAppliedAt()
* @method OrderEditApplied setAppliedAt(DateTime $appliedAt = null)
* @method OrderExcerpt getExcerptBeforeEdit()
* @method OrderEditApplied setExcerptBeforeEdit(OrderExcerpt $excerptBeforeEdit = null)
* @method OrderExcerpt getExcerptAfterEdit()
* @method OrderEditApplied setExcerptAfterEdit(OrderExcerpt $excerptAfterEdit = null)
* @method string getType()
* @method OrderEditApplied setType(string $type = null)
*/
class OrderEditApplied extends OrderEditResult
{
const ORDER_EDIT_RESULT_TYPE = 'Applied';
public function fieldDefinitions()
{
return [
'type' => [static::TYPE => 'string'],
'appliedAt' => [
static::TYPE => DateTime::class,
static::DECORATOR => DateTimeDecorator::class
],
'excerptBeforeEdit' => [static::TYPE => OrderExcerpt::class],
'excerptAfterEdit' => [static::TYPE => OrderExcerpt::class]
];
}
}