ultimate-jekyll-manager
Version:
Ultimate Jekyll dependency manager
32 lines (30 loc) • 788 B
JavaScript
// Cancellation requested — merges into real subscription
// Active subscription with cancellation.pending = true (will cancel at period end)
const DAY = 86400;
const now = Math.floor(Date.now() / 1000);
export default {
status: 'active',
product: { id: 'max', name: 'Max' },
expires: {
timestamp: new Date((now + 45 * DAY) * 1000).toISOString(),
timestampUNIX: now + 45 * DAY,
},
payment: {
price: 29,
frequency: 'monthly',
},
trial: {
claimed: true,
expires: {
timestamp: new Date((now - 335 * DAY) * 1000).toISOString(),
timestampUNIX: now - 335 * DAY,
},
},
cancellation: {
pending: true,
date: {
timestamp: new Date((now + 45 * DAY) * 1000).toISOString(),
timestampUNIX: now + 45 * DAY,
},
},
};