UNPKG

@coursebuilder/core

Version:

Core package for Course Builder

46 lines (43 loc) 1.61 kB
import { z } from 'zod'; declare const CheckoutSessionMetadataSchema: z.ZodObject<{ upgradeFromPurchaseId: z.ZodOptional<z.ZodString>; bulk: z.ZodEnum<["true", "false"]>; appliedPPPStripeCouponId: z.ZodOptional<z.ZodString>; upgradedFromPurchaseId: z.ZodOptional<z.ZodString>; country: z.ZodDefault<z.ZodString>; ip_address: z.ZodDefault<z.ZodString>; usedCouponId: z.ZodOptional<z.ZodString>; productId: z.ZodString; product: z.ZodString; userId: z.ZodOptional<z.ZodString>; siteName: z.ZodString; organizationId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { productId: string; product: string; country: string; bulk: "true" | "false"; ip_address: string; siteName: string; organizationId?: string | undefined; userId?: string | undefined; upgradeFromPurchaseId?: string | undefined; appliedPPPStripeCouponId?: string | undefined; upgradedFromPurchaseId?: string | undefined; usedCouponId?: string | undefined; }, { productId: string; product: string; bulk: "true" | "false"; siteName: string; organizationId?: string | undefined; userId?: string | undefined; country?: string | undefined; upgradeFromPurchaseId?: string | undefined; appliedPPPStripeCouponId?: string | undefined; upgradedFromPurchaseId?: string | undefined; ip_address?: string | undefined; usedCouponId?: string | undefined; }>; type CheckoutSessionMetadata = z.infer<typeof CheckoutSessionMetadataSchema>; export { type CheckoutSessionMetadata, CheckoutSessionMetadataSchema };