Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SalesEventInterface.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
16 {
20  const EVENT_ORDER_PLACED = 'order_placed';
21  const EVENT_ORDER_CANCELED = 'order_canceled';
22  const EVENT_SHIPMENT_CREATED = 'shipment_created';
23  const EVENT_CREDITMEMO_CREATED = 'creditmemo_created';
24  const EVENT_INVOICE_CREATED = 'invoice_created';
30  const OBJECT_TYPE_ORDER = 'order';
36  public function getType(): string;
37 
41  public function getObjectType(): string;
42 
46  public function getObjectId(): string;
47 
53  public function getExtensionAttributes(): ?\Magento\InventorySalesApi\Api\Data\SalesEventExtensionInterface;
54 
61  public function setExtensionAttributes(
62  \Magento\InventorySalesApi\Api\Data\SalesEventExtensionInterface $extensionAttributes
63  ): void;
64 }
setExtensionAttributes(\Magento\InventorySalesApi\Api\Data\SalesEventExtensionInterface $extensionAttributes)
$extensionAttributes
Definition: payment.php:22