Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview


Trade License Calculator service is used to calculate the Trade license fees / renewal fees based on the defined billing slabs. This service enables the TL admins to create billing slab with different combination of license type, trade type, structure type and accessory type.
The service is designed in such way that it can be used to serve different type of licenses.

...

Code Block
[
  {
    "rolecode": "TL_ADMIN",
    "actionid": "{{PLACEHOLDER1}}",
    "actioncode": "",
    "tenantId": "pb"
  },
  {
    "rolecode": "TL_ADMIN",
    "actionid": "{{PLACEHOLDER2}}",
    "actioncode": "",
    "tenantId": "pb"
  },
  {
    "rolecode": "TL_CREATOR",
    "actionid": "{{PLACEHOLDER3}}",
    "actioncode": "",
    "tenantId": "pb"
  },
  {
    "rolecode": "TL_CEMP",
    "actionid": "{{PLACEHOLDER3}}",
    "actioncode": "",
    "tenantId": "pb"
  },
  {
    "rolecode": "TL_CEMP",
    "actionid": "{{PLACEHOLDER4}}",
    "actioncode": "",
    "tenantId": "pb"
  }
]



Integration

Integration Scope

tl-calculator will be integrated with tl-services. tl-services internally invoke the tl-calculator service to calculate and generate demand for the charges.

Integration Benefits

Tl calculator application is used to calculate the Trade license Fees based on the different billing slabs in the DB that's why the calculation and demand generation logic will be separate out from TL services.
So in future, if calculation logic need to modify then changes can be carry out for each implementation without modifying the TL services.

Steps to Integration

  1. TL application to call /tl-calculator/v1/_calculate to calculate and generate the demand for the TL application

  2. ULB Employee can create billing slab calling /tl-calculator/billingslab/_create

  3. ULB Employee can update billing slab calling /tl-calculator/billingslab/_update

  4. ULB Employee can search billing slab calling /tl-calculator/billingslab/_search

...

Reference Docs

API List

(Note: All the API’s are in the same postman collection therefore same link is added in each row)