UNPKG

@coursebuilder/core

Version:

Core package for Course Builder

72 lines (69 loc) 2.46 kB
import { z } from 'zod'; declare const PricingFormattedInputSchema: z.ZodObject<{ productId: z.ZodOptional<z.ZodString>; quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; couponId: z.ZodOptional<z.ZodNullable<z.ZodString>>; merchantCoupon: z.ZodNullable<z.ZodOptional<z.ZodObject<{ id: z.ZodString; identifier: z.ZodNullable<z.ZodOptional<z.ZodString>>; status: z.ZodDefault<z.ZodNumber>; merchantAccountId: z.ZodString; percentageDiscount: z.ZodEffects<z.ZodNumber, number, number>; type: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; id: string; status: number; percentageDiscount: number; merchantAccountId: string; identifier?: string | null | undefined; }, { type: string; id: string; percentageDiscount: number; merchantAccountId: string; status?: number | undefined; identifier?: string | null | undefined; }>>>; upgradeFromPurchaseId: z.ZodOptional<z.ZodString>; autoApplyPPP: z.ZodDefault<z.ZodBoolean>; code: z.ZodOptional<z.ZodString>; country: z.ZodOptional<z.ZodString>; userId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { quantity: number; autoApplyPPP: boolean; code?: string | undefined; userId?: string | undefined; productId?: string | undefined; country?: string | undefined; couponId?: string | null | undefined; upgradeFromPurchaseId?: string | undefined; merchantCoupon?: { type: string; id: string; status: number; percentageDiscount: number; merchantAccountId: string; identifier?: string | null | undefined; } | null | undefined; }, { code?: string | undefined; userId?: string | undefined; productId?: string | undefined; country?: string | undefined; couponId?: string | null | undefined; upgradeFromPurchaseId?: string | undefined; quantity?: number | undefined; autoApplyPPP?: boolean | undefined; merchantCoupon?: { type: string; id: string; percentageDiscount: number; merchantAccountId: string; status?: number | undefined; identifier?: string | null | undefined; } | null | undefined; }>; type PricingFormattedInput = z.infer<typeof PricingFormattedInputSchema>; export { type PricingFormattedInput, PricingFormattedInputSchema };