public class AccountService extends Object
Constructor and Description |
---|
AccountService(AccountApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
void |
addAccountRole(AccountRole accountRole) |
void |
addDelegate(String senderId,
DelegationUser delegationUser)
Add a new delegate to the sender
|
UserAccountRole |
assignAccountRoleToUser(String userId,
UserAccountRole sdkUserAccountRole) |
void |
clearDelegates(String senderId)
Delete all delegates from the sender
|
Account |
createSubAccount(SubAccount subAccount)
Create new subAccount for the account base on page request
|
void |
deleteAccountRole(String accountRoleId) |
void |
deleteSender(String senderId)
Delete a sender from the account
|
void |
deleteSenderImageSignature(String senderId)
Delete the information of a sender image signature
|
List<AccessibleAccountResponse> |
getAccessibleAccounts()
Get a list of accessible subAccounts from the account base on page request
|
AccountRole |
getAccountRole(String accountRoleId) |
List<AccountRole> |
getAccountRoles() |
List<String> |
getAccountRoleUsers(String accountRoleId) |
List<UserAccountRole> |
getAssignedAccountRoles(String userId) |
List<UserAccountRole> |
getAssignedAccountRoles(String userId,
String accountId) |
Map<String,Sender> |
getContacts()
Get the contacts from account
|
List<DelegationUser> |
getDelegates(String senderId)
Get a list of delegation users of the sender
|
Sender |
getSender(String senderId)
Get the sender
|
SenderImageSignature |
getSenderImageSignature(String senderId)
Get the information of a sender image signature
|
Map<String,Sender> |
getSenders(Direction direction,
PageRequest request)
Get a list of senders from the account base on page request
|
List<SubAccountApiKey> |
getSubAccountApiKeys()
Retrieves a list of API keys for this current user in the subaccounts
|
List<Account> |
getSubAccounts()
Get a list of subAccounts from the account base on page request
|
List<VerificationType> |
getVerificationTypes() |
Sender |
inviteUser(AccountMember accountMember)
Invite a new member to the account
|
void |
removeDelegate(String senderId,
String delegateId)
Delete a delegate from the sender
|
void |
sendInvite(String senderId)
Send a reminder invite to a sender
|
void |
updateAccountRole(String accountRoleId,
AccountRole accountRole) |
void |
updateDelegates(String senderId,
List<String> delegateIds)
Update the information of delegates
|
void |
updateDelegationWithDelegationUsers(String senderId,
List<DelegationUser> delegates)
Update the information of delegates
|
void |
updateSender(SenderInfo sender,
String senderId)
Update the information of a sender
|
void |
updateSenderImageSignature(String fileName,
byte[] fileContent,
String senderId)
Update the information of a sender image signature
|
void |
updateSubAccount(SubAccount subAccount,
String accountId)
Update the information of a subAccount
|
public AccountService(AccountApiClient apiClient)
public Sender inviteUser(AccountMember accountMember)
accountMember
- The member to be invitedpublic void sendInvite(String senderId)
senderId
- The sender Idpublic Map<String,Sender> getSenders(Direction direction, PageRequest request)
direction
- of retrieved list to be sorted in ascending or descending order by name.request
- Identifying which page of results to return.public Sender getSender(String senderId)
senderId
- The sender Idpublic void deleteSender(String senderId)
senderId
- The sender Idpublic void updateSender(SenderInfo sender, String senderId)
sender
- The updated info of the sendersenderId
- The sender Idpublic void updateSenderImageSignature(String fileName, byte[] fileContent, String senderId)
fileName
- uploaded image file namefileContent
- uploaded image file contentsenderId
- The sender Idpublic SenderImageSignature getSenderImageSignature(String senderId)
senderId
- The sender Idpublic void deleteSenderImageSignature(String senderId)
senderId
- The sender Idpublic Map<String,Sender> getContacts()
public List<DelegationUser> getDelegates(String senderId)
senderId
- Id of the sender who's delegation users we are to retrieve.public void updateDelegates(String senderId, List<String> delegateIds)
senderId
- Id of the sender who's delegation users we are to update.delegateIds
- The delegate Ids to be updated.public void updateDelegationWithDelegationUsers(String senderId, List<DelegationUser> delegates)
senderId
- Id of the sender who's delegation users we are to update.delegates
- The delegates to be updated.public void addDelegate(String senderId, DelegationUser delegationUser)
senderId
- Id of the sender who's delegation users we are to add.delegationUser
- The delegation user to be added.public void removeDelegate(String senderId, String delegateId)
senderId
- Id of the sender who's delegation user we are to delete.delegateId
- The delegate's Ids to be deleted.public void clearDelegates(String senderId)
senderId
- Id of the sender who's all delegation users we are to delete.public List<VerificationType> getVerificationTypes()
public List<AccountRole> getAccountRoles()
public void addAccountRole(AccountRole accountRole)
public void updateAccountRole(String accountRoleId, AccountRole accountRole)
public AccountRole getAccountRole(String accountRoleId)
public List<Account> getSubAccounts()
public List<SubAccountApiKey> getSubAccountApiKeys()
public List<AccessibleAccountResponse> getAccessibleAccounts()
public Account createSubAccount(SubAccount subAccount)
subAccount
- The created info of the subAccountpublic void updateSubAccount(SubAccount subAccount, String accountId)
subAccount
- The updated info of the subAccountaccountId
- The subAccount Idpublic void deleteAccountRole(String accountRoleId)
public List<UserAccountRole> getAssignedAccountRoles(String userId)
public List<UserAccountRole> getAssignedAccountRoles(String userId, String accountId)
public UserAccountRole assignAccountRoleToUser(String userId, UserAccountRole sdkUserAccountRole)
Copyright 2022 OneSpan All rights reserved.