Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

add `apple` to `paymentProcessor` enum

Steven Tey263fff9ed0c8
diff --git a/apps/web/lib/zod/schemas/sales.ts b/apps/web/lib/zod/schemas/sales.ts
index a19a504288..5a2c52b3a2 100644
--- a/apps/web/lib/zod/schemas/sales.ts
+++ b/apps/web/lib/zod/schemas/sales.ts
@@ -38,7 +38,15 @@ export const trackSaleRequestSchema = z.object({
)
.meta({ example: "Invoice paid" }),
paymentProcessor: z
- .enum(["stripe", "shopify", "polar", "paddle", "revenuecat", "custom"])
+ .enum([
+ "stripe",
+ "shopify",
+ "polar",
+ "paddle",
+ "apple",
+ "revenuecat",
+ "custom",
+ ])
.default("custom")
.describe("The payment processor via which the sale was made."),
invoiceId: z