|
5 | 5 | namespace Magento\Sales\Api\Data;
|
6 | 6 |
|
7 | 7 | /**
|
8 |
| - * Interface CreditmemoCommentInterface |
| 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. |
9 | 14 | */
|
10 | 15 | interface CreditmemoCommentInterface extends \Magento\Framework\Api\ExtensibleDataInterface
|
11 | 16 | {
|
12 | 17 | /**#@+
|
13 |
| - * Constants for keys of data array. Identical to the name of the getter in snake case |
| 18 | + * Constants for keys of data array. Identical to the name of the getter in snake case. |
| 19 | + */ |
| 20 | + /* |
| 21 | + * Entity ID. |
14 | 22 | */
|
15 | 23 | const ENTITY_ID = 'entity_id';
|
| 24 | + /* |
| 25 | + * Parent ID. |
| 26 | + */ |
16 | 27 | const PARENT_ID = 'parent_id';
|
| 28 | + /* |
| 29 | + * Is-customer-notified flag. |
| 30 | + */ |
17 | 31 | const IS_CUSTOMER_NOTIFIED = 'is_customer_notified';
|
| 32 | + /* |
| 33 | + * Is-visible-on-storefront flag. |
| 34 | + */ |
18 | 35 | const IS_VISIBLE_ON_FRONT = 'is_visible_on_front';
|
| 36 | + /* |
| 37 | + * Comment. |
| 38 | + */ |
19 | 39 | const COMMENT = 'comment';
|
| 40 | + /* |
| 41 | + * Created-at timestamp. |
| 42 | + */ |
20 | 43 | const CREATED_AT = 'created_at';
|
21 | 44 |
|
22 | 45 | /**
|
23 |
| - * Returns comment |
| 46 | + * Gets the credit memo comment. |
24 | 47 | *
|
25 |
| - * @return string |
| 48 | + * @return string Comment. |
26 | 49 | */
|
27 | 50 | public function getComment();
|
28 | 51 |
|
29 | 52 | /**
|
30 |
| - * Returns created_at |
| 53 | + * Gets the credit memo created-at timestamp. |
31 | 54 | *
|
32 |
| - * @return string |
| 55 | + * @return string Created-at timestamp. |
33 | 56 | */
|
34 | 57 | public function getCreatedAt();
|
35 | 58 |
|
36 | 59 | /**
|
37 |
| - * Returns entity_id |
| 60 | + * Gets the credit memo ID. |
38 | 61 | *
|
39 |
| - * @return int |
| 62 | + * @return int Credit memo ID. |
40 | 63 | */
|
41 | 64 | public function getEntityId();
|
42 | 65 |
|
43 | 66 | /**
|
44 |
| - * Returns is_customer_notified |
| 67 | + * Gets the is-customer-notified flag value for the credit memo. |
45 | 68 | *
|
46 |
| - * @return int |
| 69 | + * @return int Is-customer-notified flag value. |
47 | 70 | */
|
48 | 71 | public function getIsCustomerNotified();
|
49 | 72 |
|
50 | 73 | /**
|
51 |
| - * Returns is_visible_on_front |
| 74 | + * Gets the is-visible-on-storefront flag value for the credit memo. |
52 | 75 | *
|
53 |
| - * @return int |
| 76 | + * @return int Is-visible-on-storefront flag value. |
54 | 77 | */
|
55 | 78 | public function getIsVisibleOnFront();
|
56 | 79 |
|
57 | 80 | /**
|
58 |
| - * Returns parent_id |
| 81 | + * Gets the parent ID for the credit memo. |
59 | 82 | *
|
60 |
| - * @return int |
| 83 | + * @return int Parent ID. |
61 | 84 | */
|
62 | 85 | public function getParentId();
|
63 | 86 | }
|
0 commit comments