import { z } from 'zod';

/**
 * Schema for validating parameters when fetching return details.
 * Ensures that a valid numeric receipt ID is provided.
 */
export const FetchReturnDetailsSchema = z.object({
  receiptId: z.number(), // The unique identifier for the receipt
});

/**
 * Type representing the parameters required for fetching return details.
 * Generated from the Zod schema for type safety.
 */
export type FetchReturnDetails = z.infer<typeof FetchReturnDetailsSchema>;
