public interface BillUnitModule extends BaseModule
Modifier and Type | Method and Description |
---|---|
void |
addOrUpdateBillUnitHierarchy(BillUnitHierarchy billUnitHierarchy,
String billUnitId)
add or updates the Parent BillUnit for given bill unit.
|
void |
changeValidity(String id,
ChangeValidity changeValidity)
This method changes the validity non currency resource
|
BillUnit |
createBillUnit(BillUnit billUnit)
Creates a new bill unit
|
TransferBalanceCreateResponse |
createTransferBalance(TransferBalance transferBalance)
Transfer the currency/non currency balances between source and
destination balance_group.
|
AccountSummary |
getAccountSummary(String id)
Retrieves consolidated summary of all bill unit for account with ID
summary contains dueNow, pendingDue, unallocatedPayments and disputed
|
BillingHierarchy |
getAllChildBillUnits(String billUnitID,
String expandFlag)
Retrieves the all child for given bill unit.
|
BillUnit |
getBalanceGroups(String id,
boolean includeBalanceMonitor)
Get List of balance groups with balances in a given bill unit
|
List<BillUnit> |
getBillUnits(String id)
Retrieves the bill unit(s) of the account
|
List<BillUnit> |
getBillUnitsFromAcctId(String accountId)
Get bill info data from accountId
|
AccountSummary |
getBillUnitSummary(String billUnitID,
String arBillUnitID,
boolean isParentBillUnit)
Retrieves the summary for given bill unit.
|
TransferBalanceDetails |
getTransferBalance(String id)
Get the details of the currency/non currency balance transfer for the
specified transfer event
|
List<TransferBalanceDetails> |
getTransferBalanceList(String id,
String sourceId,
String targetId,
String sourceRefType,
String targetRefType)
Get the details of the currency/non currency balance transfer for the
specified balance_group
|
List<BillUnit> |
moveBalanceGroup(List<NewBillUnit> billUnits)
This method will move Balance group between Bill Units
|
void |
removeBillUnitHierarchy(BillUnitHierarchy billUnitHierarchy,
String billUnitId)
removes the Parent BillUnit for given bill unit.
|
void |
setCreditLimit(String id,
CreditLimit creditLimit)
This method sets credit limit for currency/non currency balance group
|
BillUnit |
updateBillUnit(BillUnit billUnit,
Boolean billNow)
Updates the Bill unit details for the given Account
|
getBaseOps, getURIContext, getUserContext, setBaseOps, setURIContext, setUserContext
AccountSummary getAccountSummary(String id)
id
- Account number for which balance needs to be retrievedAccountSummary getBillUnitSummary(String billUnitID, String arBillUnitID, boolean isParentBillUnit)
billUnitID
- The bill unit ID for witch summary is retrievedarBillUnitID
- The AR bill unit ID for bill unitisParentBillUnit
- BillUnit updateBillUnit(BillUnit billUnit, Boolean billNow)
billUnit
- Bill Unit Object with data to updatebillNow
- true if the due is paid by current parent and want to do
Bill nowBillUnit getBalanceGroups(String id, boolean includeBalanceMonitor)
id
- Bill Unit IdincludeBalanceMonitor
- List<BillUnit> moveBalanceGroup(List<NewBillUnit> billUnits)
billUnits
- void addOrUpdateBillUnitHierarchy(BillUnitHierarchy billUnitHierarchy, String billUnitId)
billUnitHierarchy
- billUnitId
- Bill Unit Idvoid removeBillUnitHierarchy(BillUnitHierarchy billUnitHierarchy, String billUnitId)
billUnitHierarchy
- billUnitId
- Bill Unit IdBillUnit createBillUnit(BillUnit billUnit)
billUnit
- Bill Unit Object with data to be createdList<BillUnit> getBillUnits(String id)
id
- Account ID to retrieve the bill unitsList<BillUnit> getBillUnitsFromAcctId(String accountId)
accountId
- void setCreditLimit(String id, CreditLimit creditLimit)
id
- of balance groupcreditLimit
- void changeValidity(String id, ChangeValidity changeValidity)
id
- resource idchangeValidity
- BillingHierarchy getAllChildBillUnits(String billUnitID, String expandFlag)
billUnitID
- The bill unit ID for witch all children are retrievedexpandFlag
- Flag to retrieve children detailsTransferBalanceCreateResponse createTransferBalance(TransferBalance transferBalance)
transferBalance
- payload representing TransferBalance schema.List<TransferBalanceDetails> getTransferBalanceList(String id, String sourceId, String targetId, String sourceRefType, String targetRefType)
id
- The balance_group id for which the balance transfer details
needs to be fetched.sourceId
- source IdtargetId
- target IdsourceRefType
- type of the sourceIdtargetRefType
- type of the targetIdList<TransferBalanceDetails>
TransferBalanceDetails getTransferBalance(String id)
id
- The transfer event id for which the balance transfer details
needs to be fetched.