AccountServiceAsyncImpl

Functions

Link copied to clipboard
open suspend fun list(requestOptions: RequestOptions): AccountListPageAsync

open suspend override fun list(params: AccountListParams, requestOptions: RequestOptions): AccountListPageAsync

List account configurations.

Link copied to clipboard
open suspend fun retrieve(accountToken: String, requestOptions: RequestOptions): Account
open suspend override fun retrieve(params: AccountRetrieveParams, requestOptions: RequestOptions): Account

open suspend fun retrieve(accountToken: String, params: AccountRetrieveParams = AccountRetrieveParams.none(), requestOptions: RequestOptions = RequestOptions.none()): Account

Get account configuration such as spend limits.

Link copied to clipboard
open suspend fun retrieveSpendLimits(accountToken: String, requestOptions: RequestOptions): AccountSpendLimits
open suspend override fun retrieveSpendLimits(params: AccountRetrieveSpendLimitsParams, requestOptions: RequestOptions): AccountSpendLimits

open suspend fun retrieveSpendLimits(accountToken: String, params: AccountRetrieveSpendLimitsParams = AccountRetrieveSpendLimitsParams.none(), requestOptions: RequestOptions = RequestOptions.none()): AccountSpendLimits

Get an Account's available spend limits, which is based on the spend limit configured on the Account and the amount already spent over the spend limit's duration. For example, if the Account has a daily spend limit of

$1000 configured, and has spent $

600 in the last 24 hours, the available spend limit returned would be $400.

Link copied to clipboard
open suspend fun update(accountToken: String, requestOptions: RequestOptions): Account
open suspend override fun update(params: AccountUpdateParams, requestOptions: RequestOptions): Account

open suspend fun update(accountToken: String, params: AccountUpdateParams = AccountUpdateParams.none(), requestOptions: RequestOptions = RequestOptions.none()): Account

Update account configuration such as state or spend limits. Can only be run on accounts that are part of the program managed by this API key. Accounts that are in the PAUSED state will not be able to transact or create new cards.

Link copied to clipboard
open override fun withOptions(modifier: (ClientOptions.Builder) -> Unit): AccountServiceAsync

Returns a view of this service with the given option modifications applied.

Link copied to clipboard

Returns a view of this service that provides access to raw HTTP responses for each method.