2021-04-22 19:47:19 +03:00
|
|
|
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'),
|
2021-05-05 11:49:56 +03:00
|
|
|
description: attr('string'),
|
2022-01-24 13:12:15 +03:00
|
|
|
active: attr('boolean'),
|
2021-04-22 19:47:19 +03:00
|
|
|
slug: attr('string'),
|
2022-01-27 14:10:53 +03:00
|
|
|
welcomePageURL: attr('string'),
|
2022-03-08 11:50:24 +03:00
|
|
|
visibility: attr('string', {defaultValue: 'none'}),
|
2022-01-17 21:53:43 +03:00
|
|
|
type: attr('string', {defaultValue: 'paid'}),
|
2021-06-04 10:42:52 +03:00
|
|
|
monthlyPrice: attr('stripe-price'),
|
2021-06-21 11:34:33 +03:00
|
|
|
yearlyPrice: attr('stripe-price'),
|
|
|
|
benefits: attr('product-benefits')
|
2021-04-22 19:47:19 +03:00
|
|
|
});
|