//
koffee-backend
/
eu.yeger.koffee.service
/
TransactionService
/
processPurchase
processPurchase
Processes a
Purchase
for the
User
with the given id. Must validate that the
User
and
Item
exist and the
Purchase
is valid.
Return
The
Result
of the operation.
Parameters
purchase
The
Purchase
to be processed.
userId
The id of the
User
.
abstract suspend fun
processPurchase
(userId:
String
, purchase:
Purchase
):
Result
<
String
>
Content copied to clipboard