Calls pay-invoice on the invoice that belongs to the passed invoice transaction.
Syntax
Boolean
callPayInvoice
(
final long
trxId
,
final Long
actorId
) throws MobiliserServiceException, DataAccessException, TransactionException
Parameters
-
trxId –
the invoice transaction to pay
-
actorId –
the authenticated user
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