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

Refactor CreateBillingBatchService #74

Merged
merged 3 commits into from
Jan 2, 2023

Conversation

Cruikshanks
Copy link
Member

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

To support our work on adding an endpoint that will allow us to create a new SROC bill run we need to refactor the existing CreateBillingBatchService a little bit!

Some of the stuff it's currently defaulting we're now going to pass in. We also need it to bring back the instance with .region populated. This is to support creating the 'new' billing batch event record.

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

To support our work on adding an endpoint that will allow us to create a new SROC bill run we need to refactor the existing `CreateBillingBatchService` a little bit!

Some of the stuff it's currently defaulting we're now going to pass in. We also need it to bring back the instance with `.region` populated. This is to support creating the 'new' billing batch event record.
@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Jan 2, 2023
@Cruikshanks Cruikshanks self-assigned this Jan 2, 2023
Now allows for some values to be overridden (though we still default them for ease). We also ensure that the instance which gets returned includes the populated region.

Update the tests to reflect these changes.
@Cruikshanks Cruikshanks marked this pull request as ready for review January 2, 2023 22:06
@Cruikshanks Cruikshanks merged commit 5c90a5d into main Jan 2, 2023
@Cruikshanks Cruikshanks deleted the refactor-create-billing-batch-service branch January 2, 2023 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Refactoring, tidying up or other work which supports the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant