2
0
Files
bot/packages/schemas/features/billing/subscription.ts
Baptiste Arnaud 2cbf8348c3 🛂 Add new yearly plans and graduated pricing
BREAKING CHANGE: Stripe environment variables have changed. New ones are required. Check out the new Stripe configuration in the
docs.

Closes #457
2023-04-13 11:39:10 +02:00

10 lines
232 B
TypeScript

import { z } from 'zod'
export const subscriptionSchema = z.object({
isYearly: z.boolean(),
currency: z.enum(['eur', 'usd']),
cancelDate: z.date().optional(),
})
export type Subscription = z.infer<typeof subscriptionSchema>