Files
cfw-autumn/shared/models/attachModels/attachFunctionResponse.ts
John Yeo 98717d7397 wip
2026-01-01 16:36:47 -08:00

19 lines
530 B
TypeScript

import { z } from "zod/v4";
export const AttachFunctionResponseSchema = z.object({
checkout_url: z.string().optional(),
message: z.string().optional(),
code: z.string().optional(),
invoice: z.any().optional(), // Stripe.invoice
checkoutSession: z.any().optional(), // Stripe.checkout.session
stripeSub: z.any().optional(), // Stripe.subscription
anchorToUnix: z.number().optional(),
newCustomerProductId: z.string().optional(),
});
export type AttachFunctionResponse = z.infer<
typeof AttachFunctionResponseSchema
>;