getBalanceInfo

abstract fun getBalanceInfo(legacySessionToken: String, identityAccessToken: String): Single<BalanceInfo>

Gets the latest balanceInfo returned from updateBalance or pollForBalance. If no balance have been returned before an updateBalance will be called to get the BalanceInfo

Parameters

legacySessionToken

the legacy session token of the user (sent as x-session)

identityAccessToken

the identity access token (JWT) of the user (sent as Authorization: Bearer)

Throws

HttpException

if the network request fails

SocketTimeoutException

if the network request times out (in case of no or slow network)