public class DefaultAccountInternalApi extends Object implements AccountInternalApi
| Constructor and Description |
|---|
DefaultAccountInternalApi(AccountDao accountDao) |
| Modifier and Type | Method and Description |
|---|---|
Account |
getAccountById(UUID accountId,
InternalTenantContext context) |
Account |
getAccountByKey(String key,
InternalTenantContext context) |
Account |
getAccountByRecordId(Long recordId,
InternalTenantContext context) |
UUID |
getByRecordId(Long recordId,
InternalTenantContext context) |
List<AccountEmail> |
getEmails(UUID accountId,
InternalTenantContext context) |
void |
removePaymentMethod(UUID accountId,
InternalCallContext context) |
void |
updateAccount(String externalKey,
AccountData accountData,
InternalCallContext context) |
void |
updatePaymentMethod(UUID accountId,
UUID paymentMethodId,
InternalCallContext context) |
@Inject public DefaultAccountInternalApi(AccountDao accountDao)
public Account getAccountById(UUID accountId, InternalTenantContext context) throws AccountApiException
getAccountById in interface AccountInternalApiAccountApiExceptionpublic Account getAccountByRecordId(Long recordId, InternalTenantContext context) throws AccountApiException
getAccountByRecordId in interface AccountInternalApiAccountApiExceptionpublic void updateAccount(String externalKey, AccountData accountData, InternalCallContext context) throws AccountApiException
updateAccount in interface AccountInternalApiAccountApiExceptionpublic List<AccountEmail> getEmails(UUID accountId, InternalTenantContext context)
getEmails in interface AccountInternalApipublic Account getAccountByKey(String key, InternalTenantContext context) throws AccountApiException
getAccountByKey in interface AccountInternalApiAccountApiExceptionpublic void removePaymentMethod(UUID accountId, InternalCallContext context) throws AccountApiException
removePaymentMethod in interface AccountInternalApiAccountApiExceptionpublic void updatePaymentMethod(UUID accountId, UUID paymentMethodId, InternalCallContext context) throws AccountApiException
updatePaymentMethod in interface AccountInternalApiAccountApiExceptionpublic UUID getByRecordId(Long recordId, InternalTenantContext context) throws AccountApiException
getByRecordId in interface AccountInternalApiAccountApiExceptionCopyright © 2010-2015. All Rights Reserved.