cancelInvoice
fun cancelInvoice(apiVersion: String, referenceId: String, productSubscriptionKey: String, environment: String): ERROR CLASS: Symbol not found for Flow<io/rekast/sdk/repository/data/NetworkResult<kotlin/Unit>>
Cancels a pending Collection invoice before it is paid or expires.
Return
A Flow emitting a NetworkResult with an empty Unit body on success.
Parameters
apiVersion
The version of the API to use.
referenceId
The UUID V4 reference ID used when calling createInvoice.
productSubscriptionKey
The subscription key for the Collection product.
environment
The target environment (e.g., sandbox or production).