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

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

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

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

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