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.
-
withOptions
abstract AccountServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
retrieve
CompletableFuture<Account> retrieve(String accountToken)
Get account configuration such as spend limits.
-
retrieve
CompletableFuture<Account> retrieve(String accountToken, AccountRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<Account> retrieve(String accountToken, AccountRetrieveParams params)
-
retrieve
abstract CompletableFuture<Account> retrieve(AccountRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<Account> retrieve(AccountRetrieveParams params)
-
retrieve
CompletableFuture<Account> retrieve(String accountToken, RequestOptions requestOptions)
-
update
CompletableFuture<Account> update(String accountToken)
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
CompletableFuture<Account> update(String accountToken, AccountUpdateParams params, RequestOptions requestOptions)
-
update
CompletableFuture<Account> update(String accountToken, AccountUpdateParams params)
-
update
abstract CompletableFuture<Account> update(AccountUpdateParams params, RequestOptions requestOptions)
-
update
CompletableFuture<Account> update(AccountUpdateParams params)
-
update
CompletableFuture<Account> update(String accountToken, 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(String accountToken)
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
CompletableFuture<AccountSpendLimits> retrieveSpendLimits(String accountToken, AccountRetrieveSpendLimitsParams params, RequestOptions requestOptions)
-
retrieveSpendLimits
CompletableFuture<AccountSpendLimits> retrieveSpendLimits(String accountToken, AccountRetrieveSpendLimitsParams params)
-
retrieveSpendLimits
abstract CompletableFuture<AccountSpendLimits> retrieveSpendLimits(AccountRetrieveSpendLimitsParams params, RequestOptions requestOptions)
-
retrieveSpendLimits
CompletableFuture<AccountSpendLimits> retrieveSpendLimits(AccountRetrieveSpendLimitsParams params)
-
retrieveSpendLimits
CompletableFuture<AccountSpendLimits> retrieveSpendLimits(String accountToken, RequestOptions requestOptions)
-
-
-
-