import { z } from 'zod';

export const bridgeRecordDonationSchema = z.object({
  email: z.string().email(),
  externalId: z.string().min(1).max(128),
  amountCents: z.number().int().positive(),
  currency: z.literal('CAD'),
  isRecurring: z.boolean(),
  succeededAt: z.string().datetime(),
  stripePaymentIntentId: z.string().min(1).max(256),
  stripeSubscriptionId: z.string().max(256).optional(),
});

export type BridgeRecordDonationInput = z.infer<typeof bridgeRecordDonationSchema>;
