44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
import { z } from "zod/v4";
|
|
import {
|
|
type StripeBillingPlan,
|
|
StripeBillingPlanSchema,
|
|
type StripeCheckoutSessionAction,
|
|
type StripeInvoiceAction,
|
|
type StripeInvoiceItemsAction,
|
|
type StripeInvoiceMetadata,
|
|
type StripeSubscriptionAction,
|
|
type StripeSubscriptionScheduleAction,
|
|
} from "../stripe/stripeBillingPlan";
|
|
import {
|
|
type AutumnBillingPlan,
|
|
AutumnBillingPlanSchema,
|
|
type DeferredAutumnBillingPlanData,
|
|
type DeferredSetupPaymentData,
|
|
} from "./autumnBillingPlan";
|
|
import {
|
|
type PreviewBillingPlan,
|
|
PreviewBillingPlanSchema,
|
|
} from "./previewBillingPlan";
|
|
|
|
export type {
|
|
AutumnBillingPlan,
|
|
DeferredAutumnBillingPlanData,
|
|
DeferredSetupPaymentData,
|
|
PreviewBillingPlan,
|
|
StripeBillingPlan,
|
|
StripeCheckoutSessionAction,
|
|
StripeInvoiceAction,
|
|
StripeInvoiceItemsAction,
|
|
StripeInvoiceMetadata,
|
|
StripeSubscriptionAction,
|
|
StripeSubscriptionScheduleAction,
|
|
};
|
|
|
|
export const BillingPlanSchema = z.object({
|
|
autumn: AutumnBillingPlanSchema,
|
|
stripe: StripeBillingPlanSchema,
|
|
preview: PreviewBillingPlanSchema.optional(),
|
|
});
|
|
|
|
export type BillingPlan = z.infer<typeof BillingPlanSchema>;
|