Files
cfw-autumn/shared/models/attachModels/attachFunctionResponse.ts
John Yeo da9ce6ac8f latest
2026-02-07 06:31:48 -08:00

19 lines
529 B
TypeScript

import { z } from "zod/v4";
export const AttachFunctionResponseSchema = z.object({
checkout_url: z.string().nullish(),
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
>;