mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
40fddac43c
no issue Members API was updated to have new subscription structure, this updates model and its transformation to match it.
15 lines
549 B
JavaScript
15 lines
549 B
JavaScript
import EmberObject from '@ember/object';
|
|
|
|
export default EmberObject.extend({
|
|
customer: 'customer_id',
|
|
subscription: 'subscription_id',
|
|
plan: 'plan_id',
|
|
status: 'subscription status',
|
|
name: 'plan nickname e.g. "Monthly"',
|
|
interval: 'how often plan charges e.g "month", "year"',
|
|
amount: 'amount in smallest denomination e.g. cents, so value for 5 dollars would be 500',
|
|
currency: 'e.g. usd',
|
|
last4: 'last four digits of card OR null',
|
|
validUntil: 'epoch timestamp of when current interval ends IN SECONDS'
|
|
});
|