public function run() { if (!isset($this->caseManagementActionService->actionCode) || !isset($this->caseManagementActionService->requestID)) { throw new CaseManagementActionException("Required fields are not set"); } parent::run(); $result = $this->_soapClient->runTransaction($this); return new BaseReply($result); }
public function run() { if ($this->billTo == null || !isset($this->billTo->firstName) || !isset($this->billTo->street1)) { throw new AfsException("Billing information is not set"); } if ($this->card == null && $this->_transactionType == "CC") { throw new AfsException("Card information is not set"); } parent::run(); $result = $this->_soapClient->runTransaction($this); return new BaseReply($result); }