public function cancelCoupon($basketId, string $couponCode, $userId)  // !! DEPRECATED moved to basket
    {
        $params = [
          "basketId" => $basketId,
          "couponCode" => $couponCode,
          "userId" => $userId
        ];

        $response = $this->handler->handle('POST', $params, 'discard');

        //TODO: refactor to make method
        return $response;
        //        return $this->make($response, false);
    }
public function cancelCoupon($basketId, string $couponCode, $userId)  // !! DEPRECATED moved to basket
    {
        $params = [
          "basketId" => $basketId,
          "couponCode" => $couponCode,
          "userId" => $userId
        ];

        $response = $this->handler->handle('POST', $params, 'discard');

        //TODO: refactor to make method
        return $response;
        //        return $this->make($response, false);
    }
public function cancelCoupon ( $ basketId , string $ couponCode , $ userId ) // !! DEPRECATED moved to basket { $ params = [ "basketId" => $ basketId , "couponCode" => $ couponCode , "userId" => $ userId ] ; $ response = $ this -> handler -> handle ( 'POST' , $ params , 'discard' ) ; //TODO: refactor to make method return $ response ; //        return $this->make($response, false); }
Discard coupon code for basket
@param integer $basketId
@param string $couponCode
@param integer $userId
@return \GuzzleHttp\Promise\PromiseInterface|\SphereMall\MS\Lib\Http\Response
@throws \Exception
@throws \GuzzleHttp\Exception\GuzzleException
Discard coupon code for basket