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

Get Return Status as part of Matching Algorithm #360

Merged
merged 3 commits into from
Aug 17, 2023
Merged

Conversation

Jozzey
Copy link
Contributor

@Jozzey Jozzey commented Aug 16, 2023

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

As a billing and data user, I need the status of the returns to be assessed.

Once the charge element is matched to a return, the next step is to assess the status of the return, so that the relevant volumes and status can be recorded or error recorded.

This PR adds a new returnStatus array to the chargeVersions object displaying the unique statuses of the returns matched to the charge version.

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

As a billing and data user, I need the status of the returns to be assessed.

Once the charge element is matched to a return, the next step is to assess the status of the return, so that the relevant volumes and status can be recorded or error recorded.

This PR adds a new `returnStatus` array to the `chargeVersions` object displaying the unique statuses of the returns matched to the charge version.
@Jozzey Jozzey added the enhancement New feature or request label Aug 16, 2023
@Jozzey Jozzey self-assigned this Aug 16, 2023
@Jozzey Jozzey marked this pull request as ready for review August 16, 2023 15:19
Copy link
Member

@Cruikshanks Cruikshanks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a really minor tweak if its ok @Jozzey

app/services/check/two-part.service.js Outdated Show resolved Hide resolved
@Jozzey Jozzey requested a review from Cruikshanks August 16, 2023 16:04
Copy link
Member

@Cruikshanks Cruikshanks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cruikshanks added a commit that referenced this pull request Aug 17, 2023
https://eaflood.atlassian.net/browse/WATER-4081

After the changes made in [Get Return Status as part of Matching Algorithm](#360) we need to update the 'friendly' response the two-part tariff `/check` endpoint returns.

Namely, matched returns have been moved back to be assigned against the matching charge element (charge reference in the friendly response). And the return statuses are now a distinct array of statues for all returns matched within a charge version (charge information).
@Jozzey Jozzey merged commit 0104512 into main Aug 17, 2023
@Jozzey Jozzey deleted the get-return-statuses branch August 17, 2023 08:49
Cruikshanks added a commit that referenced this pull request Aug 17, 2023
https://eaflood.atlassian.net/browse/WATER-4081

After the changes made in [Get Return Status as part of Matching Algorithm](#360) we need to update the 'friendly' response the two-part tariff `/check` endpoint returns.

Namely, matched returns have been moved back to be assigned against the matching charge element (charge reference in the friendly response). And the return statuses are now a distinct array of statuses for all returns matched within a charge version (charge information).
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