original_string: public function voidCharge($chargeId , RequestModels\ChargeVoid
                                              $requestModel)
      {
  
          $chargeMapper = new ChargesMapper($requestModel);
  
          $requestPayload = array (
              'authorization' => $this->_apiSetting->getSecretKey(),
              'mode'          => $this->_apiSetting->getMode(),
              'postedParam'   => $chargeMapper->requestPayloadConverter(),
  
          );
          $refundUri = sprintf ($this->_apiUrl->getVoidChargesApiUri(),$chargeId);
  
          $processCharge = \com\checkout\helpers\ApiHttpClient::postRequest($refundUri,
              $this->_apiSetting->getSecretKey(),$requestPayload);
  
          $responseModel = new ResponseModels\Charge($processCharge);
  
  
          return $responseModel;
      }
code: public function voidCharge($chargeId , RequestModels\ChargeVoid
                                              $requestModel)
      {
  
          $chargeMapper = new ChargesMapper($requestModel);
  
          $requestPayload = array (
              'authorization' => $this->_apiSetting->getSecretKey(),
              'mode'          => $this->_apiSetting->getMode(),
              'postedParam'   => $chargeMapper->requestPayloadConverter(),
  
          );
          $refundUri = sprintf ($this->_apiUrl->getVoidChargesApiUri(),$chargeId);
  
          $processCharge = \com\checkout\helpers\ApiHttpClient::postRequest($refundUri,
              $this->_apiSetting->getSecretKey(),$requestPayload);
  
          $responseModel = new ResponseModels\Charge($processCharge);
  
  
          return $responseModel;
      }
code_tokens: public function voidCharge ( $ chargeId , RequestModels \ ChargeVoid $ requestModel ) { $ chargeMapper = new ChargesMapper ( $ requestModel ) ; $ requestPayload = array ( 'authorization' => $ this -> _apiSetting -> getSecretKey ( ) , 'mode' => $ this -> _apiSetting -> getMode ( ) , 'postedParam' => $ chargeMapper -> requestPayloadConverter ( ) , ) ; $ refundUri = sprintf ( $ this -> _apiUrl -> getVoidChargesApiUri ( ) , $ chargeId ) ; $ processCharge = \ com \ checkout \ helpers \ ApiHttpClient :: postRequest ( $ refundUri , $ this -> _apiSetting -> getSecretKey ( ) , $ requestPayload ) ; $ responseModel = new ResponseModels \ Charge ( $ processCharge ) ; return $ responseModel ; }
docstring: void a charge
  @param RequestModels\ChargeVoid $requestModel
  @return ResponseModels\Charge
docstring_tokens: void a charge