Files
stats/packages/payments/src/prices.ts
Carl-Gerhard Lindesvärd d9e3883d11 fix: simply billing
2025-11-10 20:48:55 +01:00

38 lines
875 B
TypeScript

export type { ProductPrice } from '@polar-sh/sdk/models/components/productprice.js';
export type IPrice = {
price: number;
events: number;
discount?: {
code: string;
amount: number;
id: string;
};
popular?: boolean;
};
export const PRICING: IPrice[] = [
{ price: 2.5, events: 5_000 },
{ price: 5, events: 10_000 },
{ price: 20, events: 100_000 },
{ price: 30, events: 250_000, popular: true },
{ price: 50, events: 500_000 },
{
price: 90,
events: 1_000_000,
discount: {
code: '1MIL',
amount: 0.3,
id: '5113de97-76aa-4b16-a2ec-fb94edc47371',
},
},
{ price: 180, events: 2_500_000 },
{ price: 250, events: 5_000_000 },
{ price: 300, events: 10_000_000 },
];
export const FREE_PRODUCT_IDS = [
'a18b4bee-d3db-4404-be6f-fba2f042d9ed', // Prod
'036efa2a-b3b4-4c75-b24a-9cac6bb8893b', // Sandbox
];