import { z } from 'zod'; export const PaymentInputSchema = z.object({ paymentMethod: z.string().optional(), paymentMethodDetails: z .object({ issuerId: z.string(), }) .nullable() .or( z .object({ iban: z.string(), }) .nullable() ), returnUrlSuccess: z.string(), returnUrlFailure: z.string(), }); export type PaymentInputSchemaType = z.infer; export const PaymentResponseSchema = z.object({ redirectUrl: z.string(), }); export type PaymentResponseSchemaType = z.infer;