src/Model/Refund.php
protected function getRefundForEvent(int $iRefundId): Resource
    {
        $oRefund = $this->getById($iRefundId);
        if (empty($oRefund)) {
            throw new ModelException('Invalid refund ID');
        }
        return $oRefund;
    }
protected function getRefundForEvent(int $iRefundId): Resource
    {
        $oRefund = $this->getById($iRefundId);
        if (empty($oRefund)) {
            throw new ModelException('Invalid refund ID');
        }
        return $oRefund;
    }
protected function getRefundForEvent ( int $ iRefundId ) : Resource { $ oRefund = $ this -> getById ( $ iRefundId ) ; if ( empty ( $ oRefund ) ) { throw new ModelException ( 'Invalid refund ID' ) ; } return $ oRefund ; }
Get a refund in a suitable format for the event triggers

@param int $iRefundId The refund ID

@return Resource
@throws ModelException
Get a refund in a suitable format for the event triggers