mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
46e281241e
refs https://github.com/TryGhost/Team/issues/712 closes https://github.com/TryGhost/Team/issues/717 The product API is updated to support `monthly/yearly_price` on each product instead of using list of stripe prices. This change updates the handling of membership settings to use the updated API instead of `stripe_prices` property.
13 lines
364 B
JavaScript
13 lines
364 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'),
|
|
slug: attr('string'),
|
|
monthlyPrice: attr('stripe-price'),
|
|
yearlyPrice: attr('stripe-price')
|
|
});
|