Ghost/ghost/members-api
Simon Backx fab8a182d1 Updated mrr_delta to use stored mrr and consider forever offers (#387)
* Updated member mrr_delta calculation to use stored mrr

refs https://github.com/TryGhost/Team/issues/1456

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

refs https://github.com/TryGhost/Team/issues/1451

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)
2022-04-13 15:46:43 +02:00
..
lib Updated mrr_delta to use stored mrr and consider forever offers (#387) 2022-04-13 15:46:43 +02:00
test 🐛 Fixed member responses not including complimentary subs when canceled subs exist 2022-03-18 10:47:24 +00:00
.eslintrc.js Removed trailing commas from .eslintrc.js 2021-07-14 12:04:46 +01:00
.gitignore Refactor members-api (#231) 2021-01-18 13:55:40 +00:00
index.js Fixed index.js require 2021-07-15 18:06:45 +01:00
package.json Published new versions 2022-04-13 15:04:51 +05:30