public interface AccountModule extends BaseModule
Modifier and Type | Method and Description |
---|---|
Account |
accountDetails(String accountId,
boolean retrieveDetails)
Returns an existing BRM account
|
void |
addAccountToHierarchy(List<String> ids,
String parentId) |
String |
createAccount(RegistrationAccount registrationPayload)
Creates a new subscriber account
|
BalanceGroup |
getLimits(String accountId,
String balanceGroupId,
String resourceId,
String endDate)
Get balance group with limits for a given account id
|
OrganizationHierarchy |
getOrganizationHierarchy(String accountId,
boolean expandFlag)
Return 'OrganizationHierarchy' payload represented by
'organizationHierarchy.xsd' for the requested account id.
|
TaxInfo |
getTaxInfo(String id)
Retrieves tax information
|
void |
moveHierarchy(List<String> childIds,
String primaryId,
String primaryParentId,
String childrenParentId,
boolean moveChildren) |
void |
purchaseBundle(String id,
CustomizedBundleForPurchase custbundle)
Adds new bundle to an existing service or an account
|
void |
removeAccountFromHierarchy(List<String> childIds,
String id,
String childrenParentId,
boolean removeChildren) |
void |
saveTaxInfo(String id,
TaxInfo taxInfo)
Save tax information
|
void |
subscribePackage(String accountId,
PackageBasedOrder order)
Add new services to an existing account
|
void |
updateAccountGeneralInfo(Account account)
Updates account general information like contacts, security question and
answer, account status, customer type and language
|
void |
validateAccount(RegistrationAccount registrationPayload)
Validates the subscriber account data
|
getBaseOps, getURIContext, getUserContext, setBaseOps, setURIContext, setUserContext
Account accountDetails(String accountId, boolean retrieveDetails)
accountId
- Specified using the REST ID format (db + unique object
ID: i.e. 0.0.0.1-54321)retrieveDetails
- retrieves the detailed account information if the
values is true If more detailed account information is not needed then
the retrieveDetails should be passed as falsevoid updateAccountGeneralInfo(Account account) throws ApplicationException
account
- account object with updated general info dataApplicationException
void saveTaxInfo(String id, TaxInfo taxInfo)
id
- Account idtaxInfo
- String with tax informationsTaxInfo getTaxInfo(String id)
id
- Account idString createAccount(RegistrationAccount registrationPayload)
registrationPayload
- payload representing RegistrationAccount
schemavoid subscribePackage(String accountId, PackageBasedOrder order)
order
- payload representing PackageBasedOrder schemaaccountId
- id of an account to which a new plan needs to be addedvoid validateAccount(RegistrationAccount registrationPayload)
registrationPayload
- payload representing RegistrationAccount
schemavoid purchaseBundle(String id, CustomizedBundleForPurchase custbundle)
custbundle
- payload representing CustomizedBundleForPurchase schemaid
- represents the serviceid or the accountId(in case of account
level bundles) to which the bundle needs to be added. This is a mandatory
parametervoid addAccountToHierarchy(List<String> ids, String parentId)
ids
- parentId
- void moveHierarchy(List<String> childIds, String primaryId, String primaryParentId, String childrenParentId, boolean moveChildren)
childIds
- represents the accountIds of the direct children accts.childrenParentId
- represents the accountId of the node in which direct children node will move as direct childrenprimaryId
- Primary Node Account IDprimaryParentId
- account Id of the node in which primary node will move as a childmoveChildren
- flag to tell if operation is move children operationvoid removeAccountFromHierarchy(List<String> childIds, String id, String childrenParentId, boolean removeChildren)
childIds
- id
- represents the accountId of the a/c to be removed from
hierarchy. This is a mandatory parameter the method returns no response
when the a/c is removed successfully on success;exception will be raised
on failure, status 500 if the operation failedchildrenParentId
- removeChildren
- flag to tell us if it is a remove children operationOrganizationHierarchy getOrganizationHierarchy(String accountId, boolean expandFlag)
accountId
- Account Id for which organization hierarchy is to be
retrievedexpandFlag
- when this flag is true we return child details, other wise
we just return total number of childBalanceGroup getLimits(String accountId, String balanceGroupId, String resourceId, String endDate)
accountId
- Account IDbalanceGroupId
- Balance group ID, to retrieve the specified balance group.
this is an optional field if not passed default balanceGroup will be retrieved for the account.resourceId
- Resource ID, to retrieve for the specified resource id.
this is an optional field if not passed all the resources will be retrieved for the balance group.endDate
- End Date, to retrieve the balance groups till the valid to date.
this is an optional field if not passed all the resources will be retrieved for the balance group.