DisputesAPI

Provides suspend and callback-based functions for managing disputes via the Frame API.

Functions

Link copied to clipboard
suspend fun getDispute(disputeId: String): Pair<Dispute?, NetworkingError?>

Retrieves a single dispute by its identifier.

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

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

Link copied to clipboard
suspend fun getDisputes(chargeId: String? = null, chargeIntentId: String? = null, perPage: Int = 10, page: Int = 1): Pair<DisputeResponses.ListDisputesResponse?, NetworkingError?>

Retrieves a paginated list of disputes, optionally filtered by charge or charge intent.

fun getDisputes(chargeId: String? = null, chargeIntentId: String? = null, perPage: Int = 10, page: Int = 1, completionHandler: (DisputeResponses.ListDisputesResponse?, NetworkingError?) -> Unit)

Retrieves a paginated list of disputes and delivers the result via a callback, optionally filtered by charge or charge intent.

Link copied to clipboard

Updates an existing dispute with the supplied evidence details.

fun updateDispute(disputeId: String, request: DisputeRequests.UpdateDisputeRequest, completionHandler: (Dispute?, NetworkingError?) -> Unit)

Updates an existing dispute with the supplied evidence details and delivers the result via a callback.