staging-tester / ocean-landing-serve / src/ lib/ billing-plans.ts

import type { PaymentMethod } from './payment.js';

export type PlanId = 'free' | 'pro' | 'max';

// Money is integer cents; the overage rate is cents per GiB a month.
export const plans = [
	{ id: 'free', label: 'Free', cents: 0, storageGiB: 5, overage: false },
	{ id: 'pro', label: 'Pro', cents: 1200, storageGiB: 50, overage: true },
	{ id: 'max', label: 'Max', cents: 4000, storageGiB: 250, overage: true }
] as const satisfies { id: PlanId; label: string; cents: number; storageGiB: number; overage: boolean }[];

export const rates = { centsPerGiB: 10 };