getAccountBalance

fun getAccountBalance(productType: String, apiVersion: String, currency: String?, productSubscriptionKey: String, environment: String): ERROR CLASS: Symbol not found for Flow<io/rekast/sdk/repository/data/NetworkResult<io/rekast/sdk/model/AccountBalance>>

Retrieves the account balance, optionally filtered by currency.

Currently only works reliably with io.rekast.sdk.utils.ProductType.COLLECTION. Use EUR as the currency value when testing on the sandbox environment.

Return

A Flow emitting a NetworkResult containing the AccountBalance.

Parameters

productType

The type of product for which to get the account balance.

apiVersion

The version of the API to use.

currency

An optional ISO currency code; when provided, the balance is returned for that currency only.

productSubscriptionKey

The subscription key for the product.

environment

The target environment (e.g., sandbox or production).