mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 09:22:49 +03:00
a696d99f20
refs https://github.com/TryGhost/Team/issues/1451 refs https://github.com/TryGhost/Team/issues/1456 Tests for updating `members-api` package to `5.9.0` (happened in earlier commit), which includes the following changes since `5.8.0`: * Simplifies the calculation of MRR deltas, which will make it easier to update MRR to include offers and cancellations in the future. * Adjusted MRR and MRR delta calculation to consider "forever" duration offers (only if dashboardv5 flag is enabled) * Uses the discount information from Stripe to calculate the MRR (this was the easiest way to include it + also supports manually created discounts from users) * Full difference in https://github.com/TryGhost/Members/pull/387 New tests: - Checks calculation of MRR when using forever vs repeating discounts - Checks calculation of MRR with dashboard v5 flag enabled/disabled - Checks calculation of MRR for yearly and monthly subscriptions with forever offers - Checks updates of MRR and MRR_delta when adding a forever discount to an existing subscription - Checks updates of MRR and MRR_delta when canceling a subscription with a discount |
||
---|---|---|
.. | ||
admin | ||
content | ||
members | ||
shared |