com.lithic.api.services.async.DisputeServiceAsync.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lithic-java-core Show documentation
Show all versions of lithic-java-core Show documentation
The Lithic Developer API is designed to provide a predictable programmatic
interface for accessing your Lithic account through an API and transaction
webhooks. Note that your API key is a secret and should be treated as such.
Don't share it with anyone, including us. We will never ask you for it.
// File generated from our OpenAPI spec by Stainless.
@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
package com.lithic.api.services.async
import com.lithic.api.core.RequestOptions
import com.lithic.api.models.Dispute
import com.lithic.api.models.DisputeCreateParams
import com.lithic.api.models.DisputeDeleteEvidenceParams
import com.lithic.api.models.DisputeDeleteParams
import com.lithic.api.models.DisputeEvidence
import com.lithic.api.models.DisputeInitiateEvidenceUploadParams
import com.lithic.api.models.DisputeListEvidencesPageAsync
import com.lithic.api.models.DisputeListEvidencesParams
import com.lithic.api.models.DisputeListPageAsync
import com.lithic.api.models.DisputeListParams
import com.lithic.api.models.DisputeRetrieveEvidenceParams
import com.lithic.api.models.DisputeRetrieveParams
import com.lithic.api.models.DisputeUpdateParams
import java.util.concurrent.CompletableFuture
interface DisputeServiceAsync {
/** Initiate a dispute. */
@JvmOverloads
fun create(
params: DisputeCreateParams,
requestOptions: RequestOptions = RequestOptions.none()
): CompletableFuture
/** Get dispute. */
@JvmOverloads
fun retrieve(
params: DisputeRetrieveParams,
requestOptions: RequestOptions = RequestOptions.none()
): CompletableFuture
/** Update dispute. Can only be modified if status is `NEW`. */
@JvmOverloads
fun update(
params: DisputeUpdateParams,
requestOptions: RequestOptions = RequestOptions.none()
): CompletableFuture
/** List disputes. */
@JvmOverloads
fun list(
params: DisputeListParams,
requestOptions: RequestOptions = RequestOptions.none()
): CompletableFuture
/** Withdraw dispute. */
@JvmOverloads
fun delete(
params: DisputeDeleteParams,
requestOptions: RequestOptions = RequestOptions.none()
): CompletableFuture
/**
* Soft delete evidence for a dispute. Evidence will not be reviewed or submitted by Lithic
* after it is withdrawn.
*/
@JvmOverloads
fun deleteEvidence(
params: DisputeDeleteEvidenceParams,
requestOptions: RequestOptions = RequestOptions.none()
): CompletableFuture
/**
* Use this endpoint to upload evidences for the dispute. It will return a URL to upload your
* documents to. The URL will expire in 30 minutes.
*
* Uploaded documents must either be a `jpg`, `png` or `pdf` file, and each must be less than 5
* GiB.
*/
@JvmOverloads
fun initiateEvidenceUpload(
params: DisputeInitiateEvidenceUploadParams,
requestOptions: RequestOptions = RequestOptions.none()
): CompletableFuture
/** List evidence metadata for a dispute. */
@JvmOverloads
fun listEvidences(
params: DisputeListEvidencesParams,
requestOptions: RequestOptions = RequestOptions.none()
): CompletableFuture
/** Get a dispute's evidence metadata. */
@JvmOverloads
fun retrieveEvidence(
params: DisputeRetrieveEvidenceParams,
requestOptions: RequestOptions = RequestOptions.none()
): CompletableFuture
fun uploadEvidence(disputeToken: String, file: ByteArray): CompletableFuture
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy