![]() 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/cartforge.co/vendor/magento/module-quote/Api/ |
<?php /** * * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Quote\Api; /** * Coupon management service interface. * @api * @since 100.0.2 */ interface CouponManagementInterface { /** * Returns information for a coupon in a specified cart. * * @param int $cartId The cart ID. * @return string The coupon code data. * @throws \Magento\Framework\Exception\NoSuchEntityException The specified cart does not exist. */ public function get($cartId); /** * Adds a coupon by code to a specified cart. * * @param int $cartId The cart ID. * @param string $couponCode The coupon code data. * @return bool * @throws \Magento\Framework\Exception\NoSuchEntityException The specified cart does not exist. * @throws \Magento\Framework\Exception\CouldNotSaveException The specified coupon could not be added. */ public function set($cartId, $couponCode); /** * Deletes a coupon from a specified cart. * * @param int $cartId The cart ID. * @return bool * @throws \Magento\Framework\Exception\NoSuchEntityException The specified cart does not exist. * @throws \Magento\Framework\Exception\CouldNotDeleteException The specified coupon could not be deleted. */ public function remove($cartId); }