hububb-models 1.0.86 → 1.0.87
Sign up to get free protection for your applications and to get access to all the features.
@@ -448,6 +448,34 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
448
448
|
arrival: string;
|
449
449
|
departure: string;
|
450
450
|
}>;
|
451
|
+
services: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
452
|
+
serviceId: import("zod").ZodString;
|
453
|
+
count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
454
|
+
amount: import("zod").ZodObject<{
|
455
|
+
amount: import("zod").ZodNumber;
|
456
|
+
currency: import("zod").ZodString;
|
457
|
+
}, "strip", import("zod").ZodTypeAny, {
|
458
|
+
currency: string;
|
459
|
+
amount: number;
|
460
|
+
}, {
|
461
|
+
currency: string;
|
462
|
+
amount: number;
|
463
|
+
}>;
|
464
|
+
}, "strip", import("zod").ZodTypeAny, {
|
465
|
+
amount: {
|
466
|
+
currency: string;
|
467
|
+
amount: number;
|
468
|
+
};
|
469
|
+
serviceId: string;
|
470
|
+
count?: number | undefined;
|
471
|
+
}, {
|
472
|
+
amount: {
|
473
|
+
currency: string;
|
474
|
+
amount: number;
|
475
|
+
};
|
476
|
+
serviceId: string;
|
477
|
+
count?: number | undefined;
|
478
|
+
}>, "many">>;
|
451
479
|
amount: import("zod").ZodNumber;
|
452
480
|
ratePlanId: import("zod").ZodString;
|
453
481
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -473,6 +501,14 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
473
501
|
};
|
474
502
|
riskData?: any;
|
475
503
|
};
|
504
|
+
services?: {
|
505
|
+
amount: {
|
506
|
+
currency: string;
|
507
|
+
amount: number;
|
508
|
+
};
|
509
|
+
serviceId: string;
|
510
|
+
count?: number | undefined;
|
511
|
+
}[] | undefined;
|
476
512
|
}, {
|
477
513
|
ratePlanId: string;
|
478
514
|
amount: number;
|
@@ -496,4 +532,12 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
496
532
|
};
|
497
533
|
riskData?: any;
|
498
534
|
};
|
535
|
+
services?: {
|
536
|
+
amount: {
|
537
|
+
currency: string;
|
538
|
+
amount: number;
|
539
|
+
};
|
540
|
+
serviceId: string;
|
541
|
+
count?: number | undefined;
|
542
|
+
}[] | undefined;
|
499
543
|
}>;
|
@@ -102,6 +102,14 @@ exports.paymentCreateSchema = (0, zod_1.object)({
|
|
102
102
|
departure: true,
|
103
103
|
adults: true,
|
104
104
|
}),
|
105
|
+
services: (0, zod_1.array)((0, zod_1.object)({
|
106
|
+
serviceId: (0, zod_1.string)().min(1, "Service ID is required"),
|
107
|
+
count: (0, zod_1.number)().optional(),
|
108
|
+
amount: (0, zod_1.object)({
|
109
|
+
amount: (0, zod_1.number)().positive("Amount must be a positive number"),
|
110
|
+
currency: (0, zod_1.string)().length(3, "Currency code must be 3 characters long"),
|
111
|
+
}),
|
112
|
+
})).optional(),
|
105
113
|
amount: (0, zod_1.number)().positive("Amount must be a positive number"),
|
106
114
|
ratePlanId: (0, zod_1.string)().min(1, "Rate Plan ID is required"),
|
107
115
|
});
|