com.increase.api.services.async.AccountServiceAsync.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.Account
import com.increase.api.models.AccountBalanceParams
import com.increase.api.models.AccountCloseParams
import com.increase.api.models.AccountCreateParams
import com.increase.api.models.AccountListPageAsync
import com.increase.api.models.AccountListParams
import com.increase.api.models.AccountRetrieveParams
import com.increase.api.models.AccountUpdateParams
import com.increase.api.models.BalanceLookup
interface AccountServiceAsync {
/** Create an Account */
suspend fun create(
params: AccountCreateParams,
requestOptions: RequestOptions = RequestOptions.none()
): Account
/** Retrieve an Account */
suspend fun retrieve(
params: AccountRetrieveParams,
requestOptions: RequestOptions = RequestOptions.none()
): Account
/** Update an Account */
suspend fun update(
params: AccountUpdateParams,
requestOptions: RequestOptions = RequestOptions.none()
): Account
/** List Accounts */
suspend fun list(
params: AccountListParams,
requestOptions: RequestOptions = RequestOptions.none()
): AccountListPageAsync
/** Retrieve an Account Balance */
suspend fun balance(
params: AccountBalanceParams,
requestOptions: RequestOptions = RequestOptions.none()
): BalanceLookup
/** Close an Account */
suspend fun close(
params: AccountCloseParams,
requestOptions: RequestOptions = RequestOptions.none()
): Account
}