order admin
This commit is contained in:
@@ -36,6 +36,7 @@ class OrderEvent extends ActionEvent
|
||||
protected $postage = null;
|
||||
protected $ref = null;
|
||||
protected $status = null;
|
||||
protected $deliveryRef = null;
|
||||
|
||||
/**
|
||||
* @param Order $order
|
||||
@@ -117,6 +118,14 @@ class OrderEvent extends ActionEvent
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $deliveryRef
|
||||
*/
|
||||
public function setDeliveryRef($deliveryRef)
|
||||
{
|
||||
$this->deliveryRef = $deliveryRef;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return null|Order
|
||||
*/
|
||||
@@ -188,4 +197,12 @@ class OrderEvent extends ActionEvent
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return null|string
|
||||
*/
|
||||
public function getDeliveryRef()
|
||||
{
|
||||
return $this->deliveryRef;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -302,6 +302,7 @@ final class TheliaEvents
|
||||
const ORDER_BEFORE_PAYMENT = "action.order.beforePayment";
|
||||
|
||||
const ORDER_UPDATE_STATUS = "action.order.updateStatus";
|
||||
const ORDER_UPDATE_DELIVERY_REF = "action.order.updateDeliveryRef";
|
||||
|
||||
const ORDER_PRODUCT_BEFORE_CREATE = "action.orderProduct.beforeCreate";
|
||||
const ORDER_PRODUCT_AFTER_CREATE = "action.orderProduct.afterCreate";
|
||||
|
||||
Reference in New Issue
Block a user