DefaultTransactionService
Default TransactionService implementation.
class DefaultTransactionService(userRepository: UserRepository,itemRepository: ItemRepository) : TransactionService
Content copied to clipboard
Constructors
<init>
Link copied to clipboard
fun <init>(userRepository: UserRepository, itemRepository: ItemRepository)
Content copied to clipboard
Functions
equals
Link copied to clipboard
getTransactionsOfUser
Link copied to clipboard
open suspend override fun getTransactionsOfUser(userId: String): Result<TransactionList>
Content copied to clipboard
processFunding
Link copied to clipboard
open suspend override fun processFunding(userId: String, funding: Funding): Result<String>
Content copied to clipboard
processPurchase
Link copied to clipboard
open suspend override fun processPurchase(userId: String, purchase: Purchase): Result<String>
Content copied to clipboard
refundLastPurchase
Link copied to clipboard
open suspend override fun refundLastPurchase(userId: String): Result<String>
Content copied to clipboard