Ghost/ghost/members-api
Rishabh 52e3ae2058 Handled mapping offer to subscription for free trials
refs https://github.com/TryGhost/Team/issues/1726

Free trial offers don't have a Stripe coupon created for them, as the trial is directly added to checkout session. So for mapping a subscription to offer, we pass the offer id directly from checkout metadata to link the subscription in backend with right offer data. This also handles the case where the offer id against a subscription can get overwritten for a subsequent subscription event, as the sub event from Stripe doesn't has the trial offer info.

- handles storing an offer id for a subscription
- updates member detail in Admin to show the offer info for a subscription
2022-08-11 12:03:38 +05:30
..
lib Handled mapping offer to subscription for free trials 2022-08-11 12:03:38 +05:30
test Updated Eslint ECMAScript compatibility to 2022 2022-08-09 15:51:40 +02: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 Added replies/likes count and limited replies to comments (#15206) 2022-08-10 16:12:35 +02:00