cashTransfer

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

Initiates a Remittance cash transfer using the V2 endpoint with optional KYC fields about the sending party. This replaces the legacy V1 transfer for cross-border remittance use cases where the sender is not a registered MTN mobile money subscriber.

Poll getCashTransferStatus with the same uuid as the reference ID to check the outcome.

Return

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

Parameters

apiVersion

The API version to target; use v2_0 for this endpoint.

cashTransfer

The cash transfer payload including recipient, amounts, and optional KYC fields.

uuid

A UUID V4 used as the X-Reference-Id; reuse this same ID when calling getCashTransferStatus.

productSubscriptionKey

The subscription key for the Remittance product.

environment

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