...
Parameters required for Searching a bill:
Service Category → It is a mandatory parameter
Locality → It is a mandatory parameter
Consumer ID/Property ID → It is a dynamic ID which is dependent on the selection of Service Category.
→ If selected service category is either Water or Sewerage then Consumer ID is used
...
Hooks/Utils Used:
To Download a bill → A util function named downloadBill is used which is defined in this file
This util function is inside Digit Utils hence it can be called anywhere throughout the application like this Digit.Utils.downloadBill(consumerCode, businessService, "consolidatedreceipt")
To Search a bill → A hook named useBillSearch is used to search bills which is defined in this file
Merge & Download(other than water/sewerage) → Two hooks are used in combination to accomplish this task which are shown below
Code Block |
---|
Digit.PaymentService.generatePdf() // To fetch all the bills(inside reuslt there are filestore ids) Digit.UploadServices.Filefetch() // filestore ids are used to fetch all these bills pdf |
...
Usage of these hooks can be found in this file: Hooks
Merge & Download(water/sewerage) → The following hook is used to accomplish this task.
Code Block |
---|
Digit.WSService.wnsGroupBill() |
...
API Endpoint | API description | Access Roles |
---|---|---|
| → Bills search API | Employee, Bill Genie Employee |
| → Bill Download APIEmployee, Bill Genie Employee |
|
| → Merge & Download(other than Water/Sewerage) | Employee, Bill Genie Employee |
| → Merge & Download (Water and Sewerage Bills) | Employee, Bill Genie Employee |