Account Service Impl
Functions
Link copied to clipboard
List account configurations.
Link copied to clipboard
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 override fun retrieveSpendLimits(params: AccountRetrieveSpendLimitsParams, 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, 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
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.