createPreApproval
fun createPreApproval(apiVersion: String, preApproval: PreApproval, uuid: String, productSubscriptionKey: String, environment: String): ERROR CLASS: Symbol not found for Flow<io/rekast/sdk/repository/data/NetworkResult<kotlin/Unit>>
Creates a Collection pre-approval, authorising the merchant to debit the payer's wallet without requiring per-transaction consent until the pre-approval expires.
Return
A Flow emitting a NetworkResult with an empty Unit body on success (HTTP 202).
Parameters
apiVersion
The version of the API to use.
preApproval
The pre-approval payload containing the payer, currency, and validity duration.
uuid
A UUID V4 used as the X-Reference-Id; reuse this same ID when calling getPreApprovalStatus.
productSubscriptionKey
The subscription key for the Collection product.
environment
The target environment (e.g., sandbox or production).