subscribe To Transactions
suspend fun SudoVirtualCardsClient.subscribeToTransactions(id: String, onConnectionChange: (status: TransactionSubscriber.ConnectionState) -> Unit = {}, onTransactionChange: (transaction: Transaction) -> Unit)
Subscribes to be notified of new, updated and deleted Transactions.
Parameters
id
String Unique identifier of the subscriber.
on Connection Change
lambda that is called when the subscription connection state changes.
on Transaction Change
lambda that receives updates as Transactions change.