Performs a check-invoice on the passed invoice.
Syntax
Boolean
callCheckInvoice
(
final long
authorisationId
,
final Long
actorId
,
final Long
invoiceId
) throws MobiliserServiceException, DataAccessException, TransactionException
Parameters
-
authorisationId –
-
actorId –
the authenticated user
-
invoiceId –
the invoice to check; this id is mandatory.
Returns
always true
Exceptions
-
MobiliserServiceException –
if initializing the transaction fails for some reason (business rules)
-
DataAccessException –
if some error occurs communicating / writing / reading persistent storage
-
TransactionException –
if some error occurs while handling the transactions related to persistent storage
Usage
If the checking is successful, the passed authorization will be linked with the invoice through an
InvoiceTransaction
.
always true