OrderPaymentCreateSchema: ZodObject<
    {
        paymentSystem: ZodEnum<["stripe", "clover"]>;
        amount: ZodNumber;
        status: ZodString;
        providerPaymentIdentifier: ZodString;
        providerOrderIdentifier: ZodOptional<ZodString>;
        restaurantEmail: ZodString;
        internalOrderId: ZodString;
        taxAmount: ZodOptional<ZodNumber>;
        last4Digits: ZodOptional<ZodString>;
        customerName: ZodString;
        paymentMethod: ZodOptional<ZodString>;
    },
    "strip",
    ZodTypeAny,
    {
        paymentSystem: "clover"
        | "stripe";
        amount: number;
        status: string;
        providerPaymentIdentifier: string;
        providerOrderIdentifier?: string;
        restaurantEmail: string;
        internalOrderId: string;
        taxAmount?: number;
        last4Digits?: string;
        customerName: string;
        paymentMethod?: string;
    },
    {
        paymentSystem: "clover"
        | "stripe";
        amount: number;
        status: string;
        providerPaymentIdentifier: string;
        providerOrderIdentifier?: string;
        restaurantEmail: string;
        internalOrderId: string;
        taxAmount?: number;
        last4Digits?: string;
        customerName: string;
        paymentMethod?: string;
    },
> = ...

Schema for creating a new order payment record Contains payment processing information and customer details

const orderPayment = {
paymentSystem: "stripe",
amount: 45.99,
status: "succeeded",
providerPaymentIdentifier: "pi_1234567890",
providerOrderIdentifier: "order_1234567890",
restaurantEmail: "restaurant@example.com",
internalOrderId: "ord_1234567890",
taxAmount: 3.90,
last4Digits: "4242",
customerName: "John Doe",
paymentMethod: "credit_card"
};