refund

fun refund(refund: Refund, apiVersion: String, productSubscriptionKey: String, uuid: String): ERROR CLASS: Symbol not found for Flow<io/rekast/sdk/repository/data/NetworkResult<kotlin/Unit>>

Initiates a refund via the Disbursements service, reversing a previous transaction.

Return

A Flow emitting a NetworkResult with an empty Unit body on success (HTTP 202).

Parameters

refund

The refund payload; set Refund.referenceIdToRefund to the original transaction ID.

apiVersion

The API version to target (e.g., v1_0 or v2_0).

productSubscriptionKey

The Ocp-Apim-Subscription-Key for the Disbursements product.

uuid

A UUID V4 used as the X-Reference-Id to uniquely identify this request.