@coursebuilder/core
Version:
Core package for Course Builder
63 lines (60 loc) • 2.16 kB
text/typescript
import { z } from 'zod';
declare const ParamsSchema: z.ZodEffects<z.ZodObject<{
productId: z.ZodOptional<z.ZodString>;
couponId: z.ZodOptional<z.ZodString>;
bulk: z.ZodBoolean;
quantity: z.ZodDefault<z.ZodNumber>;
userId: z.ZodOptional<z.ZodString>;
upgradeFromPurchaseId: z.ZodOptional<z.ZodString>;
cancelUrl: z.ZodOptional<z.ZodString>;
usedCouponId: z.ZodOptional<z.ZodString>;
errorRedirectUrl: z.ZodOptional<z.ZodString>;
organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
bulk: boolean;
quantity: number;
productId?: string | undefined;
couponId?: string | undefined;
userId?: string | undefined;
upgradeFromPurchaseId?: string | undefined;
cancelUrl?: string | undefined;
usedCouponId?: string | undefined;
errorRedirectUrl?: string | undefined;
organizationId?: string | null | undefined;
}, {
bulk: boolean;
productId?: string | undefined;
couponId?: string | undefined;
quantity?: number | undefined;
userId?: string | undefined;
upgradeFromPurchaseId?: string | undefined;
cancelUrl?: string | undefined;
usedCouponId?: string | undefined;
errorRedirectUrl?: string | undefined;
organizationId?: string | null | undefined;
}>, {
bulk: string;
productId: string;
quantity: string;
organizationId: string | undefined;
couponId?: string | undefined;
userId?: string | undefined;
upgradeFromPurchaseId?: string | undefined;
cancelUrl?: string | undefined;
usedCouponId?: string | undefined;
errorRedirectUrl?: string | undefined;
}, {
bulk: boolean;
productId?: string | undefined;
couponId?: string | undefined;
quantity?: number | undefined;
userId?: string | undefined;
upgradeFromPurchaseId?: string | undefined;
cancelUrl?: string | undefined;
usedCouponId?: string | undefined;
errorRedirectUrl?: string | undefined;
organizationId?: string | null | undefined;
}>;
type Params = z.input<typeof ParamsSchema>;
declare const buildStripeCheckoutPath: (params: Params) => string;
export { buildStripeCheckoutPath };