UNPKG

@coursebuilder/core

Version:

Core package for Course Builder

112 lines (109 loc) 3.9 kB
import Stripe from 'stripe'; import { z } from 'zod'; declare const SubscriptionInfoSchema: z.ZodObject<{ customerIdentifier: z.ZodString; email: z.ZodNullable<z.ZodString>; name: z.ZodOptional<z.ZodNullable<z.ZodString>>; productIdentifier: z.ZodString; product: z.ZodType<Stripe.Product, z.ZodTypeDef, Stripe.Product>; subscriptionIdentifier: z.ZodString; priceIdentifier: z.ZodString; quantity: z.ZodNumber; status: z.ZodString; currentPeriodStart: z.ZodDate; currentPeriodEnd: z.ZodDate; metadata: z.ZodOptional<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; }>>; }, "strip", z.ZodTypeAny, { status: string; product: Stripe.Product; email: string | null; quantity: number; customerIdentifier: string; productIdentifier: string; subscriptionIdentifier: string; priceIdentifier: string; currentPeriodStart: Date; currentPeriodEnd: Date; name?: string | null | undefined; metadata?: { 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; } | undefined; }, { status: string; product: Stripe.Product; email: string | null; quantity: number; customerIdentifier: string; productIdentifier: string; subscriptionIdentifier: string; priceIdentifier: string; currentPeriodStart: Date; currentPeriodEnd: Date; name?: string | null | undefined; metadata?: { 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; } | undefined; }>; type SubscriptionInfo = z.infer<typeof SubscriptionInfoSchema>; export { type SubscriptionInfo, SubscriptionInfoSchema };