BREAKING CHANGE: Stripe environment variables have changed. New ones are required. Check out the new Stripe configuration in the docs. Closes #457
10 lines
232 B
TypeScript
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>
|