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

Update billing-accounts ctrlr to validate request #397

Merged
merged 4 commits into from
Sep 1, 2023

Conversation

Cruikshanks
Copy link
Member

https://eaflood.atlassian.net/browse/WATER-4092

We are working on migrating the change billing account address functionality from the legacy code to this project.

We've previously added a new endpoint and controller that the UI will start using instead of the legacy one. But it is only a dummy, just returning a 201 in response to requests.

This change adds the new change address validator to the controller. It will mean the controller can validate the incoming requests and handle errors resulting from invalid data.

A future final step will add in a new ChangeAddressService.

https://eaflood.atlassian.net/browse/WATER-4092

We are working on migrating the change billing account address functionality from the legacy code to this project.

We've previously added a new endpoint and controller that the UI will start using instead of the legacy one. But it is only a dummy, just returning a `201` in response to requests.

This change adds the [new change address validator](#383) to the controller. It will mean the controller can validate the incoming requests and handle errors resulting from invalid data.

A future final step will add in a new `ChangeAddressService`.
@Cruikshanks Cruikshanks added the enhancement New feature or request label Aug 31, 2023
@Cruikshanks Cruikshanks self-assigned this Aug 31, 2023
@Cruikshanks Cruikshanks marked this pull request as ready for review September 1, 2023 07:44
@Cruikshanks Cruikshanks merged commit 4c2306c into main Sep 1, 2023
@Cruikshanks Cruikshanks deleted the update-billing-accounts-controller branch September 1, 2023 09:38
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.

2 participants