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 revenue recognition logic for DS gifts that are refunded or expired #950

Merged
merged 7 commits into from Jul 6, 2021

Conversation

johnduffell
Copy link
Member

@johnduffell johnduffell commented Mar 8, 2021

This PR adds extra logic to actually distribute the revenue for DS gifts that have been refunded, or that have expired.

This is needed so that finance team can correctly attribute the revenue from DS gifts even where they were not redeemed or were refunded.

This is very general now, so it would actually distribute the original schedule, as well as any refunds, so we can get rid of this logic: https://github.com/guardian/support-frontend/blob/e4837caea99cb1c63ad8bdd55a142b413d15af1f/support-services/src/main/scala/com/gu/zuora/ZuoraGiftService.scala#L103

Copy link
Member

@rupertbates rupertbates left a comment

Choose a reason for hiding this comment

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

A little bit 🤯 but really well done for working through it!

@johnduffell johnduffell merged commit 4d9db74 into main Jul 6, 2021
@johnduffell johnduffell deleted the jd-recognise-gift-revenue branch July 6, 2021 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants