AccountServiceImpl

Functions

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

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

List account configurations.

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

open 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 fun retrieveSpendLimits(accountToken: String, requestOptions: RequestOptions): AccountSpendLimits

open 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 fun update(accountToken: String, requestOptions: RequestOptions): Account
open override fun update(params: AccountUpdateParams, requestOptions: RequestOptions): Account

open 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): AccountService

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.