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.

644 B
Raw Blame
import * as z from "zod/v4";

export const stripeIntegrationSettingsSchema = z.object({
  freeTrials: z
    .object({
      enabled: z
        .boolean()
        .default(false)
        .describe("Whether to track subscription free trials as lead events."),
      trackQuantity: z
        .boolean()
        .default(false)
        .describe(
          "Whether to track the provisioned quantity in the subscription as separate lead events.",
        ),
    })
    .nullish(),
  discountCodeRestrictions: z
    .object({
      firstTimeTransaction: z.boolean().default(true),
    })
    .default({
      firstTimeTransaction: true,
    }),
});