mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-03 03:55:26 +03:00
41c138640a
refs https://github.com/TryGhost/Team/issues/1168 This allows users to set the welcome page url on a tier by tier basis rather than globally for all paid tiers or all free tiers.
17 lines
519 B
JavaScript
17 lines
519 B
JavaScript
import Model, {attr} from '@ember-data/model';
|
|
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
|
|
|
|
export default Model.extend(ValidationEngine, {
|
|
validationType: 'product',
|
|
|
|
name: attr('string'),
|
|
description: attr('string'),
|
|
active: attr('boolean'),
|
|
slug: attr('string'),
|
|
welcomePageURL: attr('string'),
|
|
type: attr('string', {defaultValue: 'paid'}),
|
|
monthlyPrice: attr('stripe-price'),
|
|
yearlyPrice: attr('stripe-price'),
|
|
benefits: attr('product-benefits')
|
|
});
|