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