Package com.lithic.api.services.async
Interface AccountServiceAsync
-
- All Implemented Interfaces:
public interface AccountServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceAccountServiceAsync.WithRawResponseA view of AccountServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract AccountServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
retrieve
CompletableFuture<Account> retrieve(AccountRetrieveParams params)
Get account configuration such as spend limits.
-
retrieve
abstract CompletableFuture<Account> retrieve(AccountRetrieveParams params, RequestOptions requestOptions)
-
update
CompletableFuture<Account> update(AccountUpdateParams params)
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
PAUSEDstate will not be able to transact or create new cards.
-
update
abstract CompletableFuture<Account> update(AccountUpdateParams params, RequestOptions requestOptions)
-
list
CompletableFuture<AccountListPageAsync> list()
List account configurations.
-
list
abstract CompletableFuture<AccountListPageAsync> list(AccountListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<AccountListPageAsync> list(AccountListParams params)
-
list
CompletableFuture<AccountListPageAsync> list(RequestOptions requestOptions)
-
retrieveSpendLimits
CompletableFuture<AccountSpendLimits> retrieveSpendLimits(AccountRetrieveSpendLimitsParams params)
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.
-
retrieveSpendLimits
abstract CompletableFuture<AccountSpendLimits> retrieveSpendLimits(AccountRetrieveSpendLimitsParams params, RequestOptions requestOptions)
-
-
-
-