Files
cfw-autumn/shared/models/productModels/fixedPriceModels.ts
2025-01-21 11:18:42 +00:00

16 lines
334 B
TypeScript

import { z } from "zod";
export enum BillingInterval {
OneOff = "one_off",
Month = "month",
Year = "year",
}
export const FixedPriceConfigSchema = z.object({
type: z.string(),
amount: z.number().min(0),
interval: z.nativeEnum(BillingInterval),
});
export type FixedPriceConfig = z.infer<typeof FixedPriceConfigSchema>;