feat: payment_method and referrals in cus expand

This commit is contained in:
John Yeo
2025-07-04 20:02:50 +01:00
parent bef138812f
commit 68cc7fd392
28 changed files with 578 additions and 165 deletions

View File

@@ -0,0 +1,14 @@
import z from "zod";
export const CusReferralResponseSchema = z.object({
program_id: z.string(),
customer: z.object({
id: z.string(),
name: z.string().nullish(),
email: z.string().nullish(),
}),
reward_applied: z.boolean(),
created_at: z.number(),
});
export type CusReferralResponse = z.infer<typeof CusReferralResponseSchema>;