public interface AccountUserApi extends KillbillApi
AccountUserApi
offers APIs related to account operations.Modifier and Type | Method and Description |
---|---|
void |
addEmail(java.util.UUID accountId,
AccountEmail email,
CallContext context) |
Account |
createAccount(AccountData data,
CallContext context) |
Account |
getAccountById(java.util.UUID accountId,
TenantContext context) |
Account |
getAccountByKey(java.lang.String key,
TenantContext context)
Retrieves an account by specifying its external key.
|
Pagination<Account> |
getAccounts(java.lang.Long offset,
java.lang.Long limit,
TenantContext context) |
java.util.List<AuditLogWithHistory> |
getAuditLogsWithHistoryForId(java.util.UUID accountId,
AuditLevel auditLevel,
TenantContext context)
Get all the audit entries with history for a given account.
|
java.util.List<Account> |
getChildrenAccounts(java.util.UUID parentAccountId,
TenantContext context) |
java.util.List<AuditLogWithHistory> |
getEmailAuditLogsWithHistoryForId(java.util.UUID accountEmailId,
AuditLevel auditLevel,
TenantContext context)
Get all the audit entries with history for a given account email.
|
java.util.List<AccountEmail> |
getEmails(java.util.UUID accountId,
TenantContext context) |
java.util.UUID |
getIdFromKey(java.lang.String externalKey,
TenantContext context) |
void |
removeEmail(java.util.UUID accountId,
AccountEmail email,
CallContext context) |
Pagination<Account> |
searchAccounts(java.lang.String searchKey,
java.lang.Long offset,
java.lang.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(java.lang.String key,
AccountData accountData,
CallContext context)
Updates the account by specifying the
AccountData object
|
void |
updateAccount(java.util.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 contextAccountApiException
void 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(java.lang.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(java.util.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(java.lang.String key, TenantContext context) throws AccountApiException
key
- the externalKey for the accountcontext
- the user contextAccountApiException
- if there is no such accountAccount getAccountById(java.util.UUID accountId, TenantContext context) throws AccountApiException
accountId
- the unique id for the accountcontext
- the user contextAccountApiException
- if there is no such accountPagination<Account> searchAccounts(java.lang.String searchKey, java.lang.Long offset, java.lang.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(java.lang.Long offset, java.lang.Long limit, TenantContext context)
context
- the user contextoffset
- the offset of the first resultlimit
- the maximum number of results to retrievejava.util.UUID getIdFromKey(java.lang.String externalKey, TenantContext context) throws AccountApiException
externalKey
- the externalKey for the accountcontext
- the user contextAccountApiException
- if there is no such accountjava.util.List<AccountEmail> getEmails(java.util.UUID accountId, TenantContext context)
accountId
- the account unique idcontext
- the user contextvoid addEmail(java.util.UUID accountId, AccountEmail email, CallContext context) throws AccountApiException
accountId
- the account unique idemail
- the email to be addedcontext
- the user contextAccountApiException
void removeEmail(java.util.UUID accountId, AccountEmail email, CallContext context)
accountId
- the account unique idemail
- the email to be removedcontext
- the user contextjava.util.List<Account> getChildrenAccounts(java.util.UUID parentAccountId, TenantContext context) throws AccountApiException
parentAccountId
- the parent account unique idcontext
- the user contextAccountApiException
java.util.List<AuditLogWithHistory> getAuditLogsWithHistoryForId(java.util.UUID accountId, AuditLevel auditLevel, TenantContext context) throws AccountApiException
accountId
- the account idauditLevel
- audit level (verbosity)context
- the tenant contextAccountApiException
java.util.List<AuditLogWithHistory> getEmailAuditLogsWithHistoryForId(java.util.UUID accountEmailId, AuditLevel auditLevel, TenantContext context) throws AccountApiException
accountEmailId
- the account email idauditLevel
- audit level (verbosity)context
- the tenant contextAccountApiException
Copyright © 2010-2019. All Rights Reserved.