This is the backend microservice that handles duty calculations for Alcohol Duty Service.
- Calculate adjustment duty:
POST /alcohol-duty-calculator/calculate-adjustment-duty
- Calculate duty due by tax type:
POST /alcohol-duty-calculator/calculate-duty-due-by-tax-type
- Calculate repackaged duty change:
POST /alcohol-duty-calculator/calculate-repackaged-duty-change
- Calculate total adjustment:
POST /alcohol-duty-calculator/calculate-total-adjustment
- Calculate total duty:
POST /alcohol-duty-calculator/calculate-total-duty
- Get a rate band for a tax code in period:
GET /alcohol-duty-calculator/rate-band
- Get rates for a period:
GET /alcohol-duty-calculator/rates
sbt run
The service runs on port16003
by default.
sbt test
sbt it/test
To check if all the scala files in the project are formatted correctly:
sbt scalafmtCheckAll
To format all the scala files in the project correctly:
sbt scalafmtAll
To check if there are any scalastyle errors, warnings or infos:
sbt scalastyle
This is an sbt command alias specific to this project. It will run a scala format check, run a scala style check, run unit tests, run integration tests and produce a coverage report:
sbt runAllChecks
This code is open source software licensed under the Apache 2.0 License.