public interface BillingIntegrationService
ServiceDetails class. updateReceiptDetails will be called by collections system whenever an event occurs that needs to be
communicated to the billing system e.g. receipt creation, receipt cancellation or instrument (related to a receipt) bounced. BillReceiptInfo object, apart from the receipt information, also provides this event code.| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_INSTRUMENT_BOUNCED
A
String indicating the event when the instrument for this receipt has bounced |
static String |
EVENT_RECEIPT_CANCELLED
A
String indicating the event that the receipt has been cancelled at the Collections end |
static String |
EVENT_RECEIPT_CREATED
A
String indicating the event that the receipt has been created at the Collections end |
| Modifier and Type | Method and Description |
|---|---|
void |
apportionPaidAmount(String billReferenceNumber,
BigDecimal actualAmountPaid,
ArrayList<ReceiptDetail> receiptDetailsArray)
Collection system will invoke this method when the billing system send "<enablebillapportioning> as true in the
bill-xml.
|
String |
constructAdditionalInfoForReceipt(BillReceiptInfo billReceiptInfo)
Collection system will invoke billing system to frame up the additional message to be printed in receipt
|
ReceiptAmountInfo |
receiptAmountBifurcation(BillReceiptInfo billReceiptInfo)
Collection system invokes billing system to get the amount bifurcation information from
|
List<ReceiptDetail> |
reconstructReceiptDetail(String billReferenceNumber,
BigDecimal actualAmountPaid,
List<ReceiptDetail> receiptDetailList)
Collection system will invoke this method only when this receipt status is PENDING and there is one more receipt in system
created on later/same day with status as APPROVED/SUBMITTED/TO_BE_SUBMITTED
|
void |
updateReceiptDetails(Set<BillReceiptInfo> billReceipts)
This method needs to be implemented in order to update the billing system with the bill receipt information
|
static final String EVENT_INSTRUMENT_BOUNCED
String indicating the event when the instrument for this receipt has bouncedstatic final String EVENT_RECEIPT_CREATED
String indicating the event that the receipt has been created at the Collections endstatic final String EVENT_RECEIPT_CANCELLED
String indicating the event that the receipt has been cancelled at the Collections endvoid updateReceiptDetails(Set<BillReceiptInfo> billReceipts) throws org.egov.infra.exception.ApplicationRuntimeException
billReceipts - a Set of BillReceiptInfo containing the bill receipt, receipt account and
receipt instrument information. The information also includes the event for which the billing system needs to be updated.org.egov.infra.exception.ApplicationRuntimeExceptionvoid apportionPaidAmount(String billReferenceNumber, BigDecimal actualAmountPaid, ArrayList<ReceiptDetail> receiptDetailsArray)
billReferenceNumber - Bill Reference Number of the bill send by billing systemactualAmountPaid - Acutal amount paid at the counterreceiptDetailsArray - List of ReceiptDetails object associated with this billList<ReceiptDetail> reconstructReceiptDetail(String billReferenceNumber, BigDecimal actualAmountPaid, List<ReceiptDetail> receiptDetailList)
billReferenceNumber - Bill Reference Number of the bill send by billing systemactualAmountPaid - Actual amount paid by the citizenreceiptDetailList - List of existing receipt detailsString constructAdditionalInfoForReceipt(BillReceiptInfo billReceiptInfo)
billReceiptInfo - ReceiptAmountInfo receiptAmountBifurcation(BillReceiptInfo billReceiptInfo)
billReceiptInfo - Copyright © 2015–2016 eGovernments Foundation. All rights reserved.