UNPKG

ultimate-jekyll-manager

Version:
32 lines (30 loc) 760 B
// Cancelled subscription merges into real subscription // Backend maps Stripe 'canceled' unified 'cancelled' const DAY = 86400; const now = Math.floor(Date.now() / 1000); export default { status: 'cancelled', product: { id: 'max', name: 'Max' }, expires: { timestamp: new Date((now - 5 * DAY) * 1000).toISOString(), timestampUNIX: now - 5 * DAY, }, payment: { price: 29, frequency: 'monthly', }, trial: { claimed: true, expires: { timestamp: new Date((now - 60 * DAY) * 1000).toISOString(), timestampUNIX: now - 60 * DAY, }, }, cancellation: { pending: false, date: { timestamp: new Date((now - 5 * DAY) * 1000).toISOString(), timestampUNIX: now - 5 * DAY, }, }, };