public interface AccountUserApi extends KillbillApi
AccountUserApi offers APIs related to account operations.| Modifier and Type | Method and Description |
|---|---|
void |
addEmail(UUID accountId,
AccountEmail email,
CallContext context) |
Account |
createAccount(AccountData data,
CallContext context) |
Account |
getAccountById(UUID accountId,
TenantContext context) |
Account |
getAccountByKey(String key,
TenantContext context)
Retrieves an account by specifying its external key.
|
Pagination<Account> |
getAccounts(Long offset,
Long limit,
TenantContext context) |
List<AccountEmail> |
getEmails(UUID accountId,
TenantContext context) |
UUID |
getIdFromKey(String externalKey,
TenantContext context) |
void |
removeEmail(UUID accountId,
AccountEmail email,
CallContext context) |
Pagination<Account> |
searchAccounts(String searchKey,
Long offset,
Long limit,
TenantContext context)
Find all accounts having their name, email, external_key or company_name matching the search key
|
void |
updateAccount(Account account,
CallContext context)
Updates the account by specifying the destination
Account object
|
void |
updateAccount(String key,
AccountData accountData,
CallContext context)
Updates the account by specifying the
AccountData object
|
void |
updateAccount(UUID accountId,
AccountData accountData,
CallContext context)
Updates the account by specifying the
AccountData object
|
Account createAccount(AccountData data, CallContext context) throws AccountApiException
data - the account datacontext - the user contextAccountApiExceptionvoid updateAccount(Account account, CallContext context) throws AccountApiException
Account object
account - account to be updatedcontext - contains specific information about the callAccountApiException - if a failure occursvoid updateAccount(String key, AccountData accountData, CallContext context) throws AccountApiException
AccountData object
key - account external keycontext - contains specific information about the callAccountApiException - if a failure occursvoid updateAccount(UUID accountId, AccountData accountData, CallContext context) throws AccountApiException
AccountData object
accountId - account unique idcontext - contains specific information about the callAccountApiException - if a failure occursAccount getAccountByKey(String key, TenantContext context) throws AccountApiException
key - the externalKey for the accountcontext - the user contextAccountApiException - if there is no such accountAccount getAccountById(UUID accountId, TenantContext context) throws AccountApiException
accountId - the unique id for the accountcontext - the user contextAccountApiException - if there is no such accountPagination<Account> searchAccounts(String searchKey, Long offset, Long limit, TenantContext context)
searchKey - the search keyoffset - the offset of the first resultlimit - the maximum number of results to retrievecontext - the user contextPagination<Account> getAccounts(Long offset, Long limit, TenantContext context)
context - the user contextoffset - the offset of the first resultlimit - the maximum number of results to retrieveUUID getIdFromKey(String externalKey, TenantContext context) throws AccountApiException
externalKey - the externalKey for the accountcontext - the user contextAccountApiException - if there is no such accountList<AccountEmail> getEmails(UUID accountId, TenantContext context)
accountId - the account unique idcontext - the user contextvoid addEmail(UUID accountId, AccountEmail email, CallContext context) throws AccountApiException
accountId - the account unique idemail - the email to be addedcontext - the user contextAccountApiExceptionvoid removeEmail(UUID accountId, AccountEmail email, CallContext context)
accountId - the account unique idemail - the email to be removedcontext - the user contextCopyright © 2010-2015. All Rights Reserved.