123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Sales\Api\Data;
- /**
- * Order status history interface.
- *
- * An order is a document that a web store issues to a customer. Magento generates a sales order that lists the product
- * items, billing and shipping addresses, and shipping and payment methods. A corresponding external document, known as
- * a purchase order, is emailed to the customer.
- * @api
- * @since 100.0.2
- */
- interface OrderStatusHistoryInterface extends \Magento\Framework\Api\ExtensibleDataInterface
- {
- /**#@+
- * Constants for keys of data array. Identical to the name of the getter in snake case.
- */
- /*
- * Entity ID.
- */
- const ENTITY_ID = 'entity_id';
- /*
- * Parent ID.
- */
- const PARENT_ID = 'parent_id';
- /*
- * Is-customer-notified flag.
- */
- const IS_CUSTOMER_NOTIFIED = 'is_customer_notified';
- /*
- * Is-visible-on-storefront flag.
- */
- const IS_VISIBLE_ON_FRONT = 'is_visible_on_front';
- /*
- * Comment.
- */
- const COMMENT = 'comment';
- /*
- * Status.
- */
- const STATUS = 'status';
- /*
- * Create-at timestamp.
- */
- const CREATED_AT = 'created_at';
- /*
- * Entity name.
- */
- const ENTITY_NAME = 'entity_name';
- /**
- * Gets the comment for the order status history.
- *
- * @return string Comment.
- */
- public function getComment();
- /**
- * Gets the created-at timestamp for the order status history.
- *
- * @return string|null Created-at timestamp.
- */
- public function getCreatedAt();
- /**
- * Sets the created-at timestamp for the order status history.
- *
- * @param string $createdAt timestamp
- * @return $this
- */
- public function setCreatedAt($createdAt);
- /**
- * Gets the ID for the order status history.
- *
- * @return int|null Order status history ID.
- */
- public function getEntityId();
- /**
- * Sets entity ID.
- *
- * @param int $entityId
- * @return $this
- */
- public function setEntityId($entityId);
- /**
- * Gets the entity name for the order status history.
- *
- * @return string|null Entity name.
- */
- public function getEntityName();
- /**
- * Gets the is-customer-notified flag value for the order status history.
- *
- * @return int Is-customer-notified flag value.
- */
- public function getIsCustomerNotified();
- /**
- * Gets the is-visible-on-storefront flag value for the order status history.
- *
- * @return int Is-visible-on-storefront flag value.
- */
- public function getIsVisibleOnFront();
- /**
- * Gets the parent ID for the order status history.
- *
- * @return int Parent ID.
- */
- public function getParentId();
- /**
- * Gets the status for the order status history.
- *
- * @return string|null Status.
- */
- public function getStatus();
- /**
- * Sets the parent ID for the order status history.
- *
- * @param int $id
- * @return $this
- */
- public function setParentId($id);
- /**
- * Sets the is-customer-notified flag value for the order status history.
- *
- * @param int $isCustomerNotified
- * @return $this
- */
- public function setIsCustomerNotified($isCustomerNotified);
- /**
- * Sets the is-visible-on-storefront flag value for the order status history.
- *
- * @param int $isVisibleOnFront
- * @return $this
- */
- public function setIsVisibleOnFront($isVisibleOnFront);
- /**
- * Sets the comment for the order status history.
- *
- * @param string $comment
- * @return $this
- */
- public function setComment($comment);
- /**
- * Sets the status for the order status history.
- *
- * @param string $status
- * @return $this
- */
- public function setStatus($status);
- /**
- * Sets the entity name for the order status history.
- *
- * @param string $entityName
- * @return $this
- */
- public function setEntityName($entityName);
- /**
- * Retrieve existing extension attributes object or create a new one.
- *
- * @return \Magento\Sales\Api\Data\OrderStatusHistoryExtensionInterface|null
- */
- public function getExtensionAttributes();
- /**
- * Set an extension attributes object.
- *
- * @param \Magento\Sales\Api\Data\OrderStatusHistoryExtensionInterface $extensionAttributes
- * @return $this
- */
- public function setExtensionAttributes(
- \Magento\Sales\Api\Data\OrderStatusHistoryExtensionInterface $extensionAttributes
- );
- }
|