@battle-racing/br-common-lib
Version:
Common library for all Battle Racing Repositorios
32 lines (31 loc) • 1.05 kB
TypeScript
import { z } from 'zod';
export declare const paymentProviderNameSchema: z.ZodEnum<{
readonly STRIPE: "stripe";
readonly PAYPAL: "paypal";
}>;
export declare const paymentStatusSchema: z.ZodEnum<{
readonly PENDING: "pending";
readonly COMPLETED: "completed";
readonly FAILED: "failed";
readonly REFUNDED: "refunded";
readonly CANCELLED: "cancelled";
}>;
export declare const paymentProviderDataSchema: z.ZodObject<{
provider: z.ZodEnum<{
readonly STRIPE: "stripe";
readonly PAYPAL: "paypal";
}>;
paymentIntentId: z.ZodOptional<z.ZodString>;
transactionId: z.ZodString;
amountPaid: z.ZodNumber;
currency: z.ZodString;
paymentStatus: z.ZodEnum<{
readonly PENDING: "pending";
readonly COMPLETED: "completed";
readonly FAILED: "failed";
readonly REFUNDED: "refunded";
readonly CANCELLED: "cancelled";
}>;
paymentMethod: z.ZodOptional<z.ZodString>;
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
}, z.core.$strip>;