OrderStatusHistoryInterface.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Api\Data;
  7. /**
  8. * Order status history interface.
  9. *
  10. * An order is a document that a web store issues to a customer. Magento generates a sales order that lists the product
  11. * items, billing and shipping addresses, and shipping and payment methods. A corresponding external document, known as
  12. * a purchase order, is emailed to the customer.
  13. * @api
  14. * @since 100.0.2
  15. */
  16. interface OrderStatusHistoryInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  17. {
  18. /**#@+
  19. * Constants for keys of data array. Identical to the name of the getter in snake case.
  20. */
  21. /*
  22. * Entity ID.
  23. */
  24. const ENTITY_ID = 'entity_id';
  25. /*
  26. * Parent ID.
  27. */
  28. const PARENT_ID = 'parent_id';
  29. /*
  30. * Is-customer-notified flag.
  31. */
  32. const IS_CUSTOMER_NOTIFIED = 'is_customer_notified';
  33. /*
  34. * Is-visible-on-storefront flag.
  35. */
  36. const IS_VISIBLE_ON_FRONT = 'is_visible_on_front';
  37. /*
  38. * Comment.
  39. */
  40. const COMMENT = 'comment';
  41. /*
  42. * Status.
  43. */
  44. const STATUS = 'status';
  45. /*
  46. * Create-at timestamp.
  47. */
  48. const CREATED_AT = 'created_at';
  49. /*
  50. * Entity name.
  51. */
  52. const ENTITY_NAME = 'entity_name';
  53. /**
  54. * Gets the comment for the order status history.
  55. *
  56. * @return string Comment.
  57. */
  58. public function getComment();
  59. /**
  60. * Gets the created-at timestamp for the order status history.
  61. *
  62. * @return string|null Created-at timestamp.
  63. */
  64. public function getCreatedAt();
  65. /**
  66. * Sets the created-at timestamp for the order status history.
  67. *
  68. * @param string $createdAt timestamp
  69. * @return $this
  70. */
  71. public function setCreatedAt($createdAt);
  72. /**
  73. * Gets the ID for the order status history.
  74. *
  75. * @return int|null Order status history ID.
  76. */
  77. public function getEntityId();
  78. /**
  79. * Sets entity ID.
  80. *
  81. * @param int $entityId
  82. * @return $this
  83. */
  84. public function setEntityId($entityId);
  85. /**
  86. * Gets the entity name for the order status history.
  87. *
  88. * @return string|null Entity name.
  89. */
  90. public function getEntityName();
  91. /**
  92. * Gets the is-customer-notified flag value for the order status history.
  93. *
  94. * @return int Is-customer-notified flag value.
  95. */
  96. public function getIsCustomerNotified();
  97. /**
  98. * Gets the is-visible-on-storefront flag value for the order status history.
  99. *
  100. * @return int Is-visible-on-storefront flag value.
  101. */
  102. public function getIsVisibleOnFront();
  103. /**
  104. * Gets the parent ID for the order status history.
  105. *
  106. * @return int Parent ID.
  107. */
  108. public function getParentId();
  109. /**
  110. * Gets the status for the order status history.
  111. *
  112. * @return string|null Status.
  113. */
  114. public function getStatus();
  115. /**
  116. * Sets the parent ID for the order status history.
  117. *
  118. * @param int $id
  119. * @return $this
  120. */
  121. public function setParentId($id);
  122. /**
  123. * Sets the is-customer-notified flag value for the order status history.
  124. *
  125. * @param int $isCustomerNotified
  126. * @return $this
  127. */
  128. public function setIsCustomerNotified($isCustomerNotified);
  129. /**
  130. * Sets the is-visible-on-storefront flag value for the order status history.
  131. *
  132. * @param int $isVisibleOnFront
  133. * @return $this
  134. */
  135. public function setIsVisibleOnFront($isVisibleOnFront);
  136. /**
  137. * Sets the comment for the order status history.
  138. *
  139. * @param string $comment
  140. * @return $this
  141. */
  142. public function setComment($comment);
  143. /**
  144. * Sets the status for the order status history.
  145. *
  146. * @param string $status
  147. * @return $this
  148. */
  149. public function setStatus($status);
  150. /**
  151. * Sets the entity name for the order status history.
  152. *
  153. * @param string $entityName
  154. * @return $this
  155. */
  156. public function setEntityName($entityName);
  157. /**
  158. * Retrieve existing extension attributes object or create a new one.
  159. *
  160. * @return \Magento\Sales\Api\Data\OrderStatusHistoryExtensionInterface|null
  161. */
  162. public function getExtensionAttributes();
  163. /**
  164. * Set an extension attributes object.
  165. *
  166. * @param \Magento\Sales\Api\Data\OrderStatusHistoryExtensionInterface $extensionAttributes
  167. * @return $this
  168. */
  169. public function setExtensionAttributes(
  170. \Magento\Sales\Api\Data\OrderStatusHistoryExtensionInterface $extensionAttributes
  171. );
  172. }