/**
  * Service Call: DoCancel
  *
  * @param DoCancelReq $doCancelReq
  *
  * @return DoCancelResponseType
  * @throws APIException
  */
 public function DoCancel($doCancelReq, $apiUsername = null)
 {
     $this->setStandardParams($doCancelReq->DoCancelRequest);
     $ret = new DoCancelResponseType();
     $resp = $this->call("DoCancel", $doCancelReq, $apiUsername);
     $ret->init(PPUtils::xmlToArray($resp));
     return $ret;
 }
 /**
  * Service Call: DoCancel
  * @param DoCancelReq $doCancelReq
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically 		
  * @return DoCancelResponseType
  * @throws APIException
  */
 public function DoCancel($doCancelReq, $apiCredential = NULL)
 {
     $this->setStandardParams($doCancelReq->DoCancelRequest);
     $ret = new DoCancelResponseType();
     $resp = $this->call('PayPalAPIAA', 'DoCancel', $doCancelReq, $apiCredential);
     $ret->init(PPUtils::xmlToArray($resp));
     return $ret;
 }
 /**
  * Service Call: DoCancel
  * @param DoCancelReq $doCancelReq
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically 		
  * @return DoCancelResponseType
  * @throws APIException
  */
 public function DoCancel($doCancelReq, $apiCredential = NULL)
 {
     $this->setStandardParams($doCancelReq->DoCancelRequest);
     $apiContext = new PPApiContext($this->config);
     $handlers = array(new PPMerchantServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION));
     $ret = new DoCancelResponseType();
     $resp = $this->call('PayPalAPIAA', 'DoCancel', $doCancelReq, $apiContext, $handlers);
     $ret->init(PPUtils::xmlToArray($resp));
     return $ret;
 }