hububb-models 1.0.89 → 1.0.91
Sign up to get free protection for your applications and to get access to all the features.
@@ -166,7 +166,7 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
166
166
|
lastName: string;
|
167
167
|
phone: string;
|
168
168
|
}>;
|
169
|
-
|
169
|
+
reservations: import("zod").ZodArray<import("zod").ZodObject<{
|
170
170
|
arrival: import("zod").ZodString;
|
171
171
|
departure: import("zod").ZodString;
|
172
172
|
adults: import("zod").ZodNumber;
|
@@ -291,7 +291,7 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
291
291
|
amount: number;
|
292
292
|
} | undefined;
|
293
293
|
}[] | undefined;
|
294
|
-
}>;
|
294
|
+
}>, "many">;
|
295
295
|
transactionReference: import("zod").ZodString;
|
296
296
|
}, "strip", import("zod").ZodTypeAny, {
|
297
297
|
booker: {
|
@@ -300,7 +300,7 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
300
300
|
lastName: string;
|
301
301
|
phone: string;
|
302
302
|
};
|
303
|
-
|
303
|
+
reservations: {
|
304
304
|
adults: number;
|
305
305
|
arrival: string;
|
306
306
|
departure: string;
|
@@ -329,7 +329,7 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
329
329
|
amount: number;
|
330
330
|
} | undefined;
|
331
331
|
}[] | undefined;
|
332
|
-
};
|
332
|
+
}[];
|
333
333
|
transactionReference: string;
|
334
334
|
}, {
|
335
335
|
booker: {
|
@@ -338,7 +338,7 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
338
338
|
lastName: string;
|
339
339
|
phone: string;
|
340
340
|
};
|
341
|
-
|
341
|
+
reservations: {
|
342
342
|
adults: number;
|
343
343
|
arrival: string;
|
344
344
|
departure: string;
|
@@ -367,7 +367,7 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
367
367
|
amount: number;
|
368
368
|
} | undefined;
|
369
369
|
}[] | undefined;
|
370
|
-
};
|
370
|
+
}[];
|
371
371
|
transactionReference: string;
|
372
372
|
}>;
|
373
373
|
export declare const paymentCreateSchema: import("zod").ZodObject<{
|
@@ -528,6 +528,7 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
528
528
|
}>, "many">>;
|
529
529
|
amount: import("zod").ZodNumber;
|
530
530
|
ratePlanId: import("zod").ZodString;
|
531
|
+
userId: import("zod").ZodString;
|
531
532
|
}, "strip", import("zod").ZodTypeAny, {
|
532
533
|
ratePlanId: string;
|
533
534
|
amount: number;
|
@@ -537,11 +538,6 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
537
538
|
lastName: string;
|
538
539
|
phone: string;
|
539
540
|
};
|
540
|
-
reservation: {
|
541
|
-
adults: number;
|
542
|
-
arrival: string;
|
543
|
-
departure: string;
|
544
|
-
};
|
545
541
|
paymentData: {
|
546
542
|
paymentMethod: {
|
547
543
|
encryptedCardNumber: string;
|
@@ -551,6 +547,12 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
551
547
|
};
|
552
548
|
riskData?: any;
|
553
549
|
};
|
550
|
+
reservation: {
|
551
|
+
adults: number;
|
552
|
+
arrival: string;
|
553
|
+
departure: string;
|
554
|
+
};
|
555
|
+
userId: string;
|
554
556
|
services?: {
|
555
557
|
serviceId: string;
|
556
558
|
count?: number | undefined;
|
@@ -568,11 +570,6 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
568
570
|
lastName: string;
|
569
571
|
phone: string;
|
570
572
|
};
|
571
|
-
reservation: {
|
572
|
-
adults: number;
|
573
|
-
arrival: string;
|
574
|
-
departure: string;
|
575
|
-
};
|
576
573
|
paymentData: {
|
577
574
|
paymentMethod: {
|
578
575
|
encryptedCardNumber: string;
|
@@ -582,6 +579,12 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
582
579
|
};
|
583
580
|
riskData?: any;
|
584
581
|
};
|
582
|
+
reservation: {
|
583
|
+
adults: number;
|
584
|
+
arrival: string;
|
585
|
+
departure: string;
|
586
|
+
};
|
587
|
+
userId: string;
|
585
588
|
services?: {
|
586
589
|
serviceId: string;
|
587
590
|
count?: number | undefined;
|
@@ -81,7 +81,7 @@ const reservationSchema = (0, zod_1.object)({
|
|
81
81
|
});
|
82
82
|
exports.reservationCreateSchema = (0, zod_1.object)({
|
83
83
|
booker: bookerSchema,
|
84
|
-
|
84
|
+
reservations: (0, zod_1.array)(reservationSchema),
|
85
85
|
transactionReference: (0, zod_1.string)().min(1, "Transaction reference is required"),
|
86
86
|
});
|
87
87
|
const paymentMethodSchema = (0, zod_1.object)({
|
@@ -111,4 +111,5 @@ exports.paymentCreateSchema = (0, zod_1.object)({
|
|
111
111
|
})).optional(),
|
112
112
|
amount: (0, zod_1.number)().positive("Amount must be a positive number"),
|
113
113
|
ratePlanId: (0, zod_1.string)().min(1, "Rate Plan ID is required"),
|
114
|
+
userId: (0, zod_1.string)().min(1, "User ID is required"),
|
114
115
|
});
|