fix(payment): default nullable first recharge offer
This commit is contained in:
@@ -3,12 +3,13 @@
|
||||
*/
|
||||
import { z } from "zod";
|
||||
|
||||
import { booleanOrFalse, numberOrZero, stringOrEmpty } from "../nullable-defaults";
|
||||
import { PaymentPlanSchema } from "./payment_plan";
|
||||
|
||||
export const FirstRechargeOfferSchema = z.object({
|
||||
enabled: z.boolean(),
|
||||
type: z.string(),
|
||||
discountPercent: z.number(),
|
||||
enabled: booleanOrFalse,
|
||||
type: stringOrEmpty,
|
||||
discountPercent: numberOrZero,
|
||||
});
|
||||
|
||||
export const PaymentPlansResponseSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user