original_string: 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);
      }
code: 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);
      }
code_tokens: 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); }
docstring: 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
docstring_tokens: Apply coupon code to basket