![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-sales/Api/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Sales\Api; /** * Credit memo add comment interface. * * After a customer places and pays for an order and an invoice has been issued, the merchant can create a credit memo * to refund all or part of the amount paid for any returned or undelivered items. The memo restores funds to the * customer account so that the customer can make future purchases. * @api * @since 100.0.2 */ interface CreditmemoManagementInterface { /** * Cancels a specified credit memo. * * @param int $id The credit memo ID. * @return bool * @throws \Magento\Framework\Exception\LocalizedException */ public function cancel($id); /** * Lists comments for a specified credit memo. * * @param int $id The credit memo ID. * @return \Magento\Sales\Api\Data\CreditmemoCommentSearchResultInterface Credit memo comment search * results interface. */ public function getCommentsList($id); /** * Emails a user a specified credit memo. * * @param int $id The credit memo ID. * @return bool */ public function notify($id); /** * Prepare creditmemo to refund and save it. * * @param \Magento\Sales\Api\Data\CreditmemoInterface $creditmemo * @param bool $offlineRequested * @return \Magento\Sales\Api\Data\CreditmemoInterface */ public function refund( \Magento\Sales\Api\Data\CreditmemoInterface $creditmemo, $offlineRequested = false ); }