import { z } from 'zod';
import { ZDigitalProductItemLandingPage } from './digital-product/landing-page.js';
import { createZodValidator } from '../../../helpers/validation.js';
export const ZDigitalProductItem = z.object({
    callToAction: z.string().optional().nullable(),
    id: z.string().uuid(),
    landingPage: ZDigitalProductItemLandingPage,
    moduleId: z.string().optional().nullable(),
    order: z.number().optional(),
    thumbnail: z.string().optional().nullable(),
    thumbnailName: z.string().optional().nullable(),
    title: z.string().optional().nullable(),
    versionId: z.string().optional().nullable(),
    visible: z.boolean().default(true)
});
export const ZPaidProductFulfillmentBody = z.object({
    fanSubmissionId: z.string().uuid(),
    productId: z.string().uuid(),
    profileId: z.string().uuid(),
    localizationId: z.string().uuid().optional(),
    price: z.number(),
    currency: z.string().optional(),
    paymentStatus: z.boolean(),
    fanEmail: z.string(),
    fanName: z.string(),
    creatorEmail: z.string().optional()
});
export const withPaidProductFulfillmentBody = createZodValidator(ZPaidProductFulfillmentBody);
