For adding the rate slabs(pricing) of vehicles,consider different combination of propertyType , slum and tank capacity.
Required combination of property types and Sub-property types added in MDMS :
RESIDENTIAL and RESIDENTIAL.SUB-PROPERTY_TYPE
INSTITUTIONAL and INSTITUTIONAL.SUB-PROPERTY_TYPE
COMMERCIAL and COMMERCIAL.SUB-PROPERTY_TYPE
Sample Data for pricing :
Name of the ULB: | Anandapur Municipality |
| |
Details | Description | Vehicle-1 | Vehicle-2 |
Cesspool Tank Capacity (in Litres) | -> | 1000 | 3000 |
Per trip Pricing for Residential properties | -> | 1000 | 2000 |
Per trip Pricing for Commercial properties | -> | 1000 | 2000 |
Per trip Pricing for Institutional properties | -> | 1000 | 2000 |
Per trip Pricing for Slum areas | -> | 800 | 1500 |
Loading Rate Slabs Steps:
Import this collection - https://www.getpostman.com/collections/d039948bfdf20f7286ad
Change the request url specific to environment.
For search billing-slab(url) - https://sujog-dev.odisha.gov.in/fsm-calculator/v1/billingSlab/_search? tenantId=od.rourkela&limit=-1
For create billing-slab(url) - https://sujog-dev.odisha.gov.in/fsm-calculator/v1/billingSlab/_create
For update billing-slab(url) - https://sujog-dev.odisha.gov.in/fsm-calculator/v1/billingSlab/_update
Login from FSM_ADMINDEV credentials(for sujog-dev) which is having FSM Admin role for all the ulb’s.
Copy the auth token. Paste the auth token in the req. Body “authToken” field.
Download these files - https://drive.google.com/drive/folders/1cmEcpnvOHiGeq0pKpuznzWKoIYXL4VEI?usp=sharing
Open the runner tab (ctrl+shift+R) and import the file which is shared in the step 5. (For example: billing-athagarh.json for pushing athagarh billing slab)
Drag the api which is provided in Step 1 collection.
Hit the postman collection.
IMPORTANT POINTS:
1.The format of billing slab data is:
{
"tenantId": "{{tenantId}}",
"capacityFrom":"{{capacityFrom}}",
"capacityTo": "{{capacityTo}}",
"propertyType": "{{propertyType}}",
"slum": "{{slum}}",
"price": "{{price}}",
"status": "{{status}}"
}
Eg.{
"tenantId": "pg.rourkela",
"capacityFrom": 0,
"capacityTo": 1000,
"propertyType": "RESIDENTIAL",
"slum": "YES",
"price": 800,
"status": "ACTIVE"
}
2.The capacity always starts from 0.
3.If the given capacity is 1000 and 3000 then the range should be:
"capacityFrom": 0,
"capacityTo": 1000,
"capacityFrom": 1001,
"capacityTo": 3000,
4.Consider billing-slab for both slum and non-slum areas.
5.The status is always ACTIVE.
6.If the price of all the slums is given as 0,then mark zeroPricingStatus as true otherwise mark it as false in MDMS.
How to update billing slab data:
The format of updating billing slab data is:
{
"id": "{{id}}",
"tenantId": "{{tenantId}}",
"capacityFrom": "{{capacityFrom}}",
"capacityTo": "{{capacityTo}}",
"propertyType": "{{propertyType}}",
"slum": "{{slum}}",
"price": "{{price}}",
"status": "{{status}}",
"auditDetails": {
"createdBy": "0ea42eb0-4406-4acf-91b0-52eca31403ab",
"lastModifiedBy": "0ea42eb0-4406-4acf-91b0-52eca31403ab",
"createdTime": 1685258218048,
"lastModifiedTime": 1685258218048
}
}
2.If the need is to update the price for all the slums from 800 to 500,for this Take the response from search api for slum “YES”,make a json file with updated price and push it using runner with the syntax mentioned in point 1.
Eg. https://drive.google.com/file/d/11GqEB3mtDO2A9g5P6ilbBOUSuN0kPGgx/view?usp=sharing
Zero Pricing property in billing-slab :
Name of the ULB | Anandapur Municipality | |
E. Zero Pricing Properties of ULB | ||
Sl No. | Property Type | Property Sub Type |
1 | Institutional | CT,PT, Temple, Govt. High School, Govt. Hospital, Govt. School |
For some combination of property types and sub-property types,the zero pricing property is given.For that,the price will be considered as 0(zero) for all the capacities and slum areas.
0 Comments