getAccountBalance
fun getAccountBalance(productType: String, apiVersion: String, currency: String?, productSubscriptionKey: String, environment: String): Flow<NetworkResult<AccountBalance>>
Gets the account balance of the entity/user initiating the transaction. This only works with the ProductType.COLLECTION. It seems to break with the other API products. User EUR as the currency on sandbox
Return
A Response containing the AccountBalance.
Parameters
currency
The currency for which to get the account balance.
productSubscriptionKey
The subscription key for the product.
accessToken
The access token for authentication.
apiVersion
The version of the API to use.
productType
The type of product for which to get the account balance.