getDispute

suspend fun getDispute(disputeId: String): Pair<Dispute?, NetworkingError?>

Retrieves a single dispute by its identifier.

Return

A Pair containing the Dispute on success, or a NetworkingError on failure.

Parameters

disputeId

The unique identifier of the dispute to retrieve.


fun getDispute(disputeId: String, completionHandler: (Dispute?, NetworkingError?) -> Unit)

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

Parameters

disputeId

The unique identifier of the dispute to retrieve.

completionHandler

Callback invoked with the Dispute on success, or a NetworkingError on failure.