import { object, string, number, date, boolean, InferType } from "yup";
export const PaymentSchema = object({
paymentMethod: string().oneOf(["Direct Payment", "Bank Transfer"]).required("Select a method"),
transactionId: string().min(3).required("Enter the receipt ID"),
});
// This is not auto-imported in any file
export type TPayment = InferType<typeof PaymentSchema>;
import { object, string, number, date, boolean, InferType } from "yup";
export const PaymentSchema = object({
paymentMethod: string().oneOf(["Direct Payment", "Bank Transfer"]).required("Select a method"),
transactionId: string().min(3).required("Enter the receipt ID"),
});
// This is not auto-imported in any file
export type TPayment = InferType<typeof PaymentSchema>;