Ghost/core/server/models
Rishabh Garg 0ce5f87616
🐛 Added past_due and unpaid subscriptions for members (#12301)
refs https://github.com/TryGhost/Ghost/issues/12256 , https://github.com/TryGhost/Ghost/issues/12255

Currently when listing subscriptions for Members in both the Admin and the Theme, we only show the subscriptions which have a status of trialing or active.

Based on discussion, the `unpaid` and `past_due` states on Stripe also represent owner's intention of considering a subscription as active instead of `cancelled`, so we allow any subscriptions under these 2 states to be also listed for a member and consider them as `paid`.

- Subscriptions will go into a past_due state if the payment is missed, this should be considered a grace period where the member still has access.

- After this the subscriptions will either go to the unpaid or the cancelled state - this can be configured on an account by account basis in the Stripe dashboard. `unpaid` is considered as an intention to keep the subscription to allow for re-activation later.
2020-10-27 15:19:48 +05:30
..
base Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
plugins Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
relations
action.js
api-key.js Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
author.js
email-batch.js Fixed creation of EmailBatch and EmailRecipient collections 2020-10-14 15:11:45 +01:00
email-recipient.js Fixed creation of EmailBatch and EmailRecipient collections 2020-10-14 15:11:45 +01:00
email.js Store email batch and recipient records when sending newsletters (#12195) 2020-09-29 17:17:54 +01:00
index.js Added basic CRUD admin API for snippets 2020-10-16 18:02:58 +01:00
integration.js
invite.js
label.js
member-stripe-customer.js Added error handling for failed member imports 2020-08-26 17:11:35 +12:00
member.js 🐛 Added past_due and unpaid subscriptions for members (#12301) 2020-10-27 15:19:48 +05:30
mobiledoc-revision.js
permission.js
post.js Added support for ordering Post API resources by fields coming form posts_meta table (#12226) 2020-09-24 13:32:40 +12:00
posts-meta.js
role.js
session.js
settings.js Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
single-use-token.js 🐛 Fixed special chars in single use token (#12290) 2020-10-20 11:49:20 +05:30
snippet.js Added basic CRUD admin API for snippets 2020-10-16 18:02:58 +01:00
stripe-customer-subscription.js Added error handling for failed member imports 2020-08-26 17:11:35 +12:00
tag-public.js
tag.js
user.js Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
webhook.js