Ghost/ghost/admin/mirage/models/subscription.js
Ronald Langeveld 0e2d1b3afd
Added redeemed offers filtering for members (#16071)
closes https://github.com/TryGhost/Team/issues/2011

- Gives publishers the ability to filter members based on which offer they used (redeemed) when they subscribed for a paid membership.
- On the offers page, the redemption count number links to a the members page with the filter already applied making it easy to have insight on which members used the offer / coupon.
2023-01-11 20:13:09 +08:00

8 lines
149 B
JavaScript

import {Model, belongsTo} from 'miragejs';
export default Model.extend({
member: belongsTo(),
tier: belongsTo(),
offer: belongsTo()
});