protected function getInvoiceForEvent(int $iInvoiceId): Resource
    {
        $oInvoice = $this->getById($iInvoiceId, ['expand' => ['customer', 'items']]);
        if (empty($oInvoice)) {
            throw new ModelException('Invalid invoice ID');
        }
        return $oInvoice;
    }