fleet/website/api/controllers/customers
Eric 896918bc79
Website: Fleet Premium subscription renewals (#9200)
https://github.com/fleetdm/fleet/issues/9172

Changes:
- Added
`website/api/controllers/webhooks/recieve-stripe-subscription-events.js`
a webhook for receiving Stripe events.
- If the stripe event received is from a user's subscription
automatically renewing, A new license key is generated, the subscription
record is updated, and a renewal confirmation email is sent.
- If the stripe event received is from a user's subscription's upcoming
renewal, a renewal notification email is sent.
- If any other event type is received from Stripe, the webhook returns a
200 response.
- Added new email templates:
   - `email-subscription-renewal-confirmation`
   - `email-upcoming-subscription-renewal`
- Updated `website/api/controllers/admin/view-email-template-preview.js`
to have fake data for the added email templates.
- Updated `website/api/controllers/customers/view-dashboard.js` to set
two boolean variables: `subscriptionExpiresSoon` and
`subscriptionHasBeenRecentlyRenewed`
- Updated the customer dashboard to display notifications on the top of
the page if a user's subscription will renew in the next 30 days, or if
the user's subscription has been renewed in the past 30 days.
- `website/views/layouts/layout-email.ejs` - Updated the font, padding,
and text color to match wireframes.
2023-01-06 18:36:29 -06:00
..
create-quote.js Update Fleet Premium pricing (#8966) 2022-12-08 13:01:24 -06:00
save-billing-info-and-subscribe.js Website: Add admin tool for generating Fleet Premium licenses. (#8478) 2022-12-05 14:53:16 -06:00
view-dashboard.js Website: Fleet Premium subscription renewals (#9200) 2023-01-06 18:36:29 -06:00
view-new-license.js Website: Add admin tool for generating Fleet Premium licenses. (#8478) 2022-12-05 14:53:16 -06:00