com.increase.api.services.async.CardServiceAsync.kt Maven / Gradle / Ivy
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.Card
import com.increase.api.models.CardCreateParams
import com.increase.api.models.CardDetails
import com.increase.api.models.CardDetailsParams
import com.increase.api.models.CardListPageAsync
import com.increase.api.models.CardListParams
import com.increase.api.models.CardRetrieveParams
import com.increase.api.models.CardUpdateParams
interface CardServiceAsync {
/** Create a Card */
suspend fun create(
params: CardCreateParams,
requestOptions: RequestOptions = RequestOptions.none()
): Card
/** Retrieve a Card */
suspend fun retrieve(
params: CardRetrieveParams,
requestOptions: RequestOptions = RequestOptions.none()
): Card
/** Update a Card */
suspend fun update(
params: CardUpdateParams,
requestOptions: RequestOptions = RequestOptions.none()
): Card
/** List Cards */
suspend fun list(
params: CardListParams,
requestOptions: RequestOptions = RequestOptions.none()
): CardListPageAsync
/** Retrieve sensitive details for a Card */
suspend fun details(
params: CardDetailsParams,
requestOptions: RequestOptions = RequestOptions.none()
): CardDetails
}