Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Charging Module generate bill run service #141

Merged
merged 2 commits into from
Mar 4, 2023

Conversation

Cruikshanks
Copy link
Member

@Cruikshanks Cruikshanks commented Mar 4, 2023

https://eaflood.atlassian.net/browse/WATER-3906
https://eaflood.atlassian.net/browse/WATER-3917

Once all the transactions have been added to the Charging Module bill run it needs to be generated. This is where it confirms the final values and calculates any additional transaction lines needed.

So, in this change, we add app/services/charging-module/generate-bill-run.service.js which will handle calling the /generate endpoint in the sroc-charging-module-api.

@Cruikshanks Cruikshanks added the enhancement New feature or request label Mar 4, 2023
@Cruikshanks Cruikshanks self-assigned this Mar 4, 2023
Once all the transactions have been added to the Charging Module bill run it needs to be [generated](https://defra.github.io/sroc-charging-module-api-docs/#/bill-run/GenerateBillRun). This is where it confirms the final values and calculates any additional transaction lines needed.

So, in this change we add app/services/charging-module/generate-bill-run.service.js which will handle calling the `/generate` endpoint in the [sroc-charging-module-api](https://github.com/DEFRA/sroc-charging-module-api).
@Cruikshanks Cruikshanks force-pushed the add-charging-module-generate-service branch from c6e460c to 219fb0f Compare March 4, 2023 11:22
@Cruikshanks Cruikshanks marked this pull request as ready for review March 4, 2023 12:59
@Cruikshanks Cruikshanks merged commit 1dc7c34 into main Mar 4, 2023
@Cruikshanks Cruikshanks deleted the add-charging-module-generate-service branch March 4, 2023 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant