src/Factory/RequestBase.php
public function setRefund($iRefundId)
    {
        //  Validate
        $oRefund = $this->oRefundModel->getById($iRefundId);

        if (empty($oRefund)) {
            throw new RequestException('Invalid refund ID.');
        }

        $this->oRefund = $oRefund;
        return $this;
    }
public function setRefund($iRefundId)
    {
        //  Validate
        $oRefund = $this->oRefundModel->getById($iRefundId);

        if (empty($oRefund)) {
            throw new RequestException('Invalid refund ID.');
        }

        $this->oRefund = $oRefund;
        return $this;
    }
public function setRefund ( $ iRefundId ) { //  Validate $ oRefund = $ this -> oRefundModel -> getById ( $ iRefundId ) ; if ( empty ( $ oRefund ) ) { throw new RequestException ( 'Invalid refund ID.' ) ; } $ this -> oRefund = $ oRefund ; return $ this ; }
Set the refund  object

@param integer $iRefundId The refund to use for the request

@return $this
@throws RequestException
Set the refund object