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, {
|
2022-05-11 20:11:54 +03:00
|
|
|
validationType: 'tier',
|
2021-04-22 19:47:19 +03:00
|
|
|
|
|
|
|
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'}),
|
2022-05-16 21:51:49 +03:00
|
|
|
currency: attr('string'),
|
|
|
|
monthlyPrice: attr('number'),
|
|
|
|
yearlyPrice: attr('number'),
|
2022-05-11 20:11:54 +03:00
|
|
|
benefits: attr('tier-benefits')
|
2021-04-22 19:47:19 +03:00
|
|
|
});
|