updateBalance

abstract fun updateBalance(legacySessionToken: String, identityAccessToken: String): Completable

Updates the balance and returns a completable that tells whether it succeeded or not.

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)