CreditmemoCommentInterface.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. * Credit memo comment interface.
  9. *
  10. * After a customer places and pays for an order and an invoice has been issued, the merchant can create a credit memo
  11. * to refund all or part of the amount paid for any returned or undelivered items. The memo restores funds to the
  12. * customer account so that the customer can make future purchases. A credit memo usually includes comments that detail
  13. * why the credit memo amount was credited to the customer.
  14. * @api
  15. * @since 100.0.2
  16. */
  17. interface CreditmemoCommentInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  18. {
  19. /**#@+
  20. * Constants for keys of data array. Identical to the name of the getter in snake case.
  21. */
  22. /*
  23. * Entity ID.
  24. */
  25. const ENTITY_ID = 'entity_id';
  26. /*
  27. * Parent ID.
  28. */
  29. const PARENT_ID = 'parent_id';
  30. /*
  31. * Is-customer-notified flag.
  32. */
  33. const IS_CUSTOMER_NOTIFIED = 'is_customer_notified';
  34. /*
  35. * Is-visible-on-storefront flag.
  36. */
  37. const IS_VISIBLE_ON_FRONT = 'is_visible_on_front';
  38. /*
  39. * Comment.
  40. */
  41. const COMMENT = 'comment';
  42. /*
  43. * Created-at timestamp.
  44. */
  45. const CREATED_AT = 'created_at';
  46. /**
  47. * Gets the credit memo comment.
  48. *
  49. * @return string Comment.
  50. */
  51. public function getComment();
  52. /**
  53. * Gets the credit memo created-at timestamp.
  54. *
  55. * @return string|null Created-at timestamp.
  56. */
  57. public function getCreatedAt();
  58. /**
  59. * Sets the credit memo created-at timestamp.
  60. *
  61. * @param string $createdAt timestamp
  62. * @return $this
  63. */
  64. public function setCreatedAt($createdAt);
  65. /**
  66. * Gets the credit memo ID.
  67. *
  68. * @return int|null Credit memo ID.
  69. */
  70. public function getEntityId();
  71. /**
  72. * Sets entity ID.
  73. *
  74. * @param int $entityId
  75. * @return $this
  76. */
  77. public function setEntityId($entityId);
  78. /**
  79. * Gets the is-customer-notified flag value for the credit memo.
  80. *
  81. * @return int Is-customer-notified flag value.
  82. */
  83. public function getIsCustomerNotified();
  84. /**
  85. * Gets the is-visible-on-storefront flag value for the credit memo.
  86. *
  87. * @return int Is-visible-on-storefront flag value.
  88. */
  89. public function getIsVisibleOnFront();
  90. /**
  91. * Gets the parent ID for the credit memo.
  92. *
  93. * @return int Parent ID.
  94. */
  95. public function getParentId();
  96. /**
  97. * Sets the parent ID for the credit memo.
  98. *
  99. * @param int $id
  100. * @return $this
  101. */
  102. public function setParentId($id);
  103. /**
  104. * Sets the is-customer-notified flag value for the credit memo.
  105. *
  106. * @param int $isCustomerNotified
  107. * @return $this
  108. */
  109. public function setIsCustomerNotified($isCustomerNotified);
  110. /**
  111. * Sets the is-visible-on-storefront flag value for the credit memo.
  112. *
  113. * @param int $isVisibleOnFront
  114. * @return $this
  115. */
  116. public function setIsVisibleOnFront($isVisibleOnFront);
  117. /**
  118. * Sets the credit memo comment.
  119. *
  120. * @param string $comment
  121. * @return $this
  122. */
  123. public function setComment($comment);
  124. /**
  125. * Retrieve existing extension attributes object or create a new one.
  126. *
  127. * @return \Magento\Sales\Api\Data\CreditmemoCommentExtensionInterface|null
  128. */
  129. public function getExtensionAttributes();
  130. /**
  131. * Set an extension attributes object.
  132. *
  133. * @param \Magento\Sales\Api\Data\CreditmemoCommentExtensionInterface $extensionAttributes
  134. * @return $this
  135. */
  136. public function setExtensionAttributes(
  137. \Magento\Sales\Api\Data\CreditmemoCommentExtensionInterface $extensionAttributes
  138. );
  139. }