getRefundWith

suspend fun getRefundWith(refundId: String): Pair<Refund?, NetworkingError?>

Retrieves a single refund by its unique identifier.

Return

A pair containing the matching Refund on success, or a NetworkingError on failure.

Parameters

refundId

The unique ID of the refund to retrieve.


fun getRefundWith(refundId: String, completionHandler: (Refund?, NetworkingError?) -> Unit)

Retrieves a single refund by its unique identifier and delivers the result via callback.

Parameters

refundId

The unique ID of the refund to retrieve.

completionHandler

Invoked with the matching Refund on success, or a NetworkingError on failure.