archetecture security fix
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
import { z } from 'zod';
|
||||
export declare const chargeSchema: z.ZodObject<{
|
||||
provider: z.ZodEnum<["AMANPAY", "PAYPAL"]>;
|
||||
type: z.ZodDefault<z.ZodEnum<["CHARGE", "DEPOSIT"]>>;
|
||||
currency: z.ZodDefault<z.ZodLiteral<"MAD">>;
|
||||
successUrl: z.ZodString;
|
||||
failureUrl: z.ZodString;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
type: "CHARGE" | "DEPOSIT";
|
||||
provider: "AMANPAY" | "PAYPAL";
|
||||
currency: "MAD";
|
||||
successUrl: string;
|
||||
failureUrl: string;
|
||||
}, {
|
||||
provider: "AMANPAY" | "PAYPAL";
|
||||
successUrl: string;
|
||||
failureUrl: string;
|
||||
type?: "CHARGE" | "DEPOSIT" | undefined;
|
||||
currency?: "MAD" | undefined;
|
||||
}>;
|
||||
export declare const manualPaymentSchema: z.ZodObject<{
|
||||
amount: z.ZodNumber;
|
||||
currency: z.ZodDefault<z.ZodLiteral<"MAD">>;
|
||||
type: z.ZodDefault<z.ZodEnum<["CHARGE", "DEPOSIT"]>>;
|
||||
paymentMethod: z.ZodEnum<["CASH", "CHECK", "BANK_TRANSFER", "CARD", "PAYPAL"]>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
type: "CHARGE" | "DEPOSIT";
|
||||
currency: "MAD";
|
||||
amount: number;
|
||||
paymentMethod: "PAYPAL" | "CASH" | "CHECK" | "BANK_TRANSFER" | "CARD";
|
||||
}, {
|
||||
amount: number;
|
||||
paymentMethod: "PAYPAL" | "CASH" | "CHECK" | "BANK_TRANSFER" | "CARD";
|
||||
type?: "CHARGE" | "DEPOSIT" | undefined;
|
||||
currency?: "MAD" | undefined;
|
||||
}>;
|
||||
export declare const refundSchema: z.ZodObject<{
|
||||
amount: z.ZodOptional<z.ZodNumber>;
|
||||
reason: z.ZodOptional<z.ZodString>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
reason?: string | undefined;
|
||||
amount?: number | undefined;
|
||||
}, {
|
||||
reason?: string | undefined;
|
||||
amount?: number | undefined;
|
||||
}>;
|
||||
export declare const capturePaypalSchema: z.ZodObject<{
|
||||
paypalOrderId: z.ZodString;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
paypalOrderId: string;
|
||||
}, {
|
||||
paypalOrderId: string;
|
||||
}>;
|
||||
export declare const reservationParamSchema: z.ZodObject<{
|
||||
id: z.ZodString;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
id: string;
|
||||
}, {
|
||||
id: string;
|
||||
}>;
|
||||
export declare const paymentParamSchema: z.ZodObject<{
|
||||
reservationId: z.ZodString;
|
||||
paymentId: z.ZodString;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
reservationId: string;
|
||||
paymentId: string;
|
||||
}, {
|
||||
reservationId: string;
|
||||
paymentId: string;
|
||||
}>;
|
||||
//# sourceMappingURL=payment.schemas.d.ts.map
|
||||
Reference in New Issue
Block a user