com.increase.api.services.async.FileServiceAsync.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of increase-java-core Show documentation
Show all versions of increase-java-core Show documentation
An SDK library for increase
The newest version!
// File generated from our OpenAPI spec by Stainless.
@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
package com.increase.api.services.async
import com.increase.api.core.RequestOptions
import com.increase.api.models.File
import com.increase.api.models.FileCreateParams
import com.increase.api.models.FileListPageAsync
import com.increase.api.models.FileListParams
import com.increase.api.models.FileRetrieveParams
import java.util.concurrent.CompletableFuture
interface FileServiceAsync {
/**
* To upload a file to Increase, you'll need to send a request of Content-Type
* `multipart/form-data`. The request should contain the file you would like to upload, as well
* as the parameters for creating a file.
*/
@JvmOverloads
fun create(
params: FileCreateParams,
requestOptions: RequestOptions = RequestOptions.none()
): CompletableFuture
/** Retrieve a File */
@JvmOverloads
fun retrieve(
params: FileRetrieveParams,
requestOptions: RequestOptions = RequestOptions.none()
): CompletableFuture
/** List Files */
@JvmOverloads
fun list(
params: FileListParams,
requestOptions: RequestOptions = RequestOptions.none()
): CompletableFuture
}