ministryofjustice / laa-fee-calculator

Fee calculator for LAA
MIT License
4 stars 3 forks source link

CTSKF-849 London Rate Apply - API Changes #445

Closed AlexRyanShep closed 2 months ago

AlexRyanShep commented 3 months ago

What

This ticket modifies the API endpoints to accept london_rates_apply in requests to the Prices and Calculate endpoints.

Manual testing through the API documentation screen has shown that when fed a test Price (actual price rolled back for this commit), both the Prices and Calculate endpoints can locate this new price when filtering by london_rates_apply

Note: This PR is not to be merged into production. It will be merged into a feature branch when reviewed and approved

Ticket

CTSKF-846

How

london_rates_apply added to the price model as an optional boolean and migration generated london_rates_apply added to the serializers for the Price and Calculate endpoints, and the PriceFilter, to make it allowable in api calls ** london_rates_apply added to the total calculation in the calculator view and model

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud