The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Make paymentProcessor optional and fallback to "custom"
Steven Tey685a460182e2
diff --git a/apps/web/lib/zod/schemas/sales.ts b/apps/web/lib/zod/schemas/sales.tsindex d21a11f93e..fbc1e1bc23 100644--- a/apps/web/lib/zod/schemas/sales.ts+++ b/apps/web/lib/zod/schemas/sales.ts@@ -37,6 +37,7 @@ export const trackSaleRequestSchema = z.object({.openapi({ example: "Invoice paid" }),paymentProcessor: z.enum(["stripe", "shopify", "polar", "paddle", "revenuecat", "custom"])+ .default("custom").describe("The payment processor via which the sale was made."),invoiceId: z.string()@@ -95,7 +96,7 @@ export const saleEventSchemaTB = clickEventSchemaTBevent_id: z.string(),event_name: z.string().default("Purchase"),customer_id: z.string(),- payment_processor: z.string(),+ payment_processor: z.string().default("custom"),amount: z.number(),invoice_id: z.string().default(""),currency: z