Ghost/ghost/member-events/lib
Sag e476eebd2d
🎨 Added staff notification when a sub is canceled due to failed payments (#20534)
ref https://linear.app/tryghost/issue/ENG-1254

- when a subscription is canceled automatically by Stripe (e.g. due to
multiple failed payments), we now send a staff notification
- logic before: if a member cancels a sub in Portal, then send a staff
notification
- logic now: if a subscription was active, but is now set to cancel
immediately or at the end of the billing period, then send a staff
notification.
- with that logic change, we now send a cancellation staff notification
when:
    1. A member cancels their sub in Portal (existing)
    2. A staff member cancels a member sub in Stripe (new)
    3. A staff member cancels a member sub in Admin (new)
    4. A sub is canceled automatically by Stripe because of multiple failed
payments (new)
- the copy of the staff notification email has also been updated to take
into account 1) manual vs automatic cancellations, and 2) immediate vs
end of billing period cancellations
2024-07-15 08:07:18 +02:00
..
MemberCommentEvent.js Added members.last_commented_at and last_seen_at update when commenting (#15088) 2022-07-25 17:35:46 +02:00
MemberCreatedEvent.js Added eslint rule for file naming convention 2023-05-09 12:34:34 -04:00
MemberEntryViewEvent.js Added @tryghost/member-events 2021-09-17 15:22:08 +02:00
MemberLinkClickEvent.js Added member last seen update on link click (#15459) 2022-09-23 10:34:33 +02:00
MemberPageViewEvent.js Added the new MemberPageViewEvent event 2022-02-28 14:42:17 +01:00
MemberPaidCancellationEvent.js Added missing events for analytics 2021-09-21 18:39:17 +02:00
MemberPaidConversionEvent.js Added missing events for analytics 2021-09-21 18:39:17 +02:00
MemberSignupEvent.js Added missing events for analytics 2021-09-21 18:39:17 +02:00
MemberSubscribeEvent.js Renamed verification threshold parameter 2022-08-25 14:26:44 +08:00
MemberUnsubscribeEvent.js Added missing events for analytics 2021-09-21 18:39:17 +02:00
OfferRedemptionEvent.js 🐛 Fixed offer redemptions for free members redeeming an offer (#20571) 2024-07-09 16:05:26 -07:00
SubscriptionActivatedEvent.js 🐛 Fixed subscriptions visible as "Active" within Ghost Admin (#16255) 2023-02-13 13:07:53 +01:00
SubscriptionCancelledEvent.js 🎨 Added staff notification when a sub is canceled due to failed payments (#20534) 2024-07-15 08:07:18 +02:00
SubscriptionCreatedEvent.js Added eslint rule for file naming convention 2023-05-09 12:34:34 -04:00