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

fix: Plans::UpdateAmountService handle pending subscription upgrades #2827

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

ancorcruz
Copy link
Contributor

Context

in cascade_subscription_fee_update we call Plans::UpdateAmountJob. This job should deal with pending subscriptions similar to how the Plans::UpdateService does it. (see process_downgrade|pending_subscriptions)

Description

This changes handles subscription upgrades when plan amount_cents changes because of cascading from parent plan and there are pending subscriptions.

 ## Context
in `cascade_subscription_fee_update` we call `Plans::UpdateAmountJob`.
This job should deal with pending subscriptions similar to how the
`Plans::UpdateService` does it. (see `process_downgrade`|`pending_subscriptions`)

 ## Description
This changes handles subscription upgrades when plan amount_cents
changes because of cascading from parent plan and there are pending
subscriptions.
@ancorcruz ancorcruz self-assigned this Nov 15, 2024
@ancorcruz ancorcruz requested a review from nudded November 15, 2024 16:13
@ancorcruz ancorcruz marked this pull request as ready for review November 22, 2024 14:56
@ancorcruz ancorcruz merged commit c77cc11 into main Nov 22, 2024
6 checks passed
@ancorcruz ancorcruz deleted the fix/upgrade-plan-cascade branch November 22, 2024 14:56
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.

2 participants