Ghost/ghost/tiers
Fabien "egg" O'Carroll 5f928794c3 Added support for Tier events
refs https://github.com/TryGhost/Team/issues/2078

These events are all required for other parts of the Ghost system to stay in
sync. The events on each Tier object will be dispatched by the TierRepository
once they've been persisted.

TierCreatedEvent - generate Stripe Products & Prices
TierNameChangeEvent - update Stripe Products
TierPriceChangeEvent - update Stripe Products & Prices
TierArchivedEvent - update the Portal settings for visible tiers
                  - disable Stripe Products & Prices
TierActivatedEvent - enable Stripe Products & Prices
2022-10-20 17:31:33 +07:00
..
lib Added support for Tier events 2022-10-20 17:31:33 +07:00
test Added support for Tier events 2022-10-20 17:31:33 +07:00
.eslintrc.js Refactored Tiers logic into separate package 2022-10-19 11:05:09 +07:00
index.js Refactored Tiers logic into separate package 2022-10-19 11:05:09 +07:00
package.json Update dependency mocha to v10.1.0 2022-10-19 17:53:57 +00:00
README.md Refactored Tiers logic into separate package 2022-10-19 11:05:09 +07:00

Tiers

'

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests