Ghost/core/server/services/members
Fabien O'Carroll 41acc37865 Made complimentary_plan & stripe_customer_id exclusive
no-issue

When importing Members it is possible to have both the
complimentary_plan and the stripe_customer_id columns set, this can
result in unusual outcomes, for example when importing a customer with a
zero-amount subscription, they would end up with two "comped"
subscriptions, and there would be two "comped" prices in the database.

As we are deprecating the use of "comped" in favour of creating a
subscription with a specific price, we're updating the import to prefer
`stripe_customer_id` column, only using the `complimentary_plan` column
when it is the only of the two columns passed.
2021-05-11 12:33:28 +01:00
..
emails Added extra settings to member auth emails (#12238) 2020-10-01 12:31:36 +05:30
importer Made complimentary_plan & stripe_customer_id exclusive 2021-05-11 12:33:28 +01:00
stats Added jsdoc to MembersStats class 2021-01-14 12:59:17 +13:00
api.js Passed Settings model to @tryghost/members-api 2021-05-03 13:59:13 +01:00
config.js Updated stripe_plans & portal_plans settings 2021-05-07 16:31:08 +01:00
content-gating.js Added support for gating content by member labels and products (#12946) 2021-05-10 19:32:11 +01:00
index.js Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
middleware.js Added free price values to Portal site settings 2021-05-07 22:56:16 +05:30
settings.js 🐛 Fixed Admin redirect for newsletter/support email update (#12810) 2021-03-23 11:24:07 +05:30
SingleUseTokenProvider.js Updated magic links to use shorter, single us, longer lived tokens (#12218) 2020-09-18 17:32:18 +01:00
stripe-connect.js Encoded the mode in the Stripe Connect OAuth state 2020-06-10 14:06:57 +02:00
utils.js Fixed paid flag on members 2021-02-25 14:26:41 +00:00