UNPKG

@coursebuilder/core

Version:

Core package for Course Builder

21 lines (19 loc) 566 B
import { z } from "./chunk-JLNB6NRA.js"; // src/schemas/merchant-coupon-schema.ts var merchantCouponSchema = z.object({ id: z.string().max(191), identifier: z.string().max(191).optional().nullable(), status: z.number().int().default(0), merchantAccountId: z.string().max(191), percentageDiscount: z.coerce.number().refine((value) => { const decimalPlaces = value.toString().split(".")[1]?.length || 0; return decimalPlaces <= 2; }), type: z.string().max(191) }); export { merchantCouponSchema }; //# sourceMappingURL=chunk-BMBVNXO6.js.map