hububb-models 1.0.85 → 1.0.87
Sign up to get free protection for your applications and to get access to all the features.
@@ -122,8 +122,8 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
122
122
|
"2024-11-01": string;
|
123
123
|
};
|
124
124
|
amount: string;
|
125
|
-
taxes: {}[];
|
126
125
|
services: {}[];
|
126
|
+
taxes: {}[];
|
127
127
|
rate_plan_id: string;
|
128
128
|
booking_room_id: string;
|
129
129
|
room_type_id: string;
|
@@ -149,8 +149,8 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
149
149
|
"2024-11-01": string;
|
150
150
|
};
|
151
151
|
amount: string;
|
152
|
-
taxes: {}[];
|
153
152
|
services: {}[];
|
153
|
+
taxes: {}[];
|
154
154
|
rate_plan_id: string;
|
155
155
|
booking_room_id: string;
|
156
156
|
room_type_id: string;
|
@@ -239,8 +239,8 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
239
239
|
"2024-11-01": string;
|
240
240
|
};
|
241
241
|
amount: string;
|
242
|
-
taxes: {}[];
|
243
242
|
services: {}[];
|
243
|
+
taxes: {}[];
|
244
244
|
rate_plan_id: string;
|
245
245
|
booking_room_id: string;
|
246
246
|
room_type_id: string;
|
@@ -316,8 +316,8 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
316
316
|
"2024-11-01": string;
|
317
317
|
};
|
318
318
|
amount: string;
|
319
|
-
taxes: {}[];
|
320
319
|
services: {}[];
|
320
|
+
taxes: {}[];
|
321
321
|
rate_plan_id: string;
|
322
322
|
booking_room_id: string;
|
323
323
|
room_type_id: string;
|
@@ -397,8 +397,8 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
397
397
|
"2024-11-01": string;
|
398
398
|
};
|
399
399
|
amount: string;
|
400
|
-
taxes: {}[];
|
401
400
|
services: {}[];
|
401
|
+
taxes: {}[];
|
402
402
|
rate_plan_id: string;
|
403
403
|
booking_room_id: string;
|
404
404
|
room_type_id: string;
|
@@ -478,8 +478,8 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
478
478
|
"2024-11-01": string;
|
479
479
|
};
|
480
480
|
amount: string;
|
481
|
-
taxes: {}[];
|
482
481
|
services: {}[];
|
482
|
+
taxes: {}[];
|
483
483
|
rate_plan_id: string;
|
484
484
|
booking_room_id: string;
|
485
485
|
room_type_id: string;
|
@@ -179,6 +179,34 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
179
179
|
}, {
|
180
180
|
ratePlanId: string;
|
181
181
|
}>, "atleastone">;
|
182
|
+
services: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
183
|
+
serviceId: import("zod").ZodString;
|
184
|
+
count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
185
|
+
amount: import("zod").ZodObject<{
|
186
|
+
amount: import("zod").ZodNumber;
|
187
|
+
currency: import("zod").ZodString;
|
188
|
+
}, "strip", import("zod").ZodTypeAny, {
|
189
|
+
currency: string;
|
190
|
+
amount: number;
|
191
|
+
}, {
|
192
|
+
currency: string;
|
193
|
+
amount: number;
|
194
|
+
}>;
|
195
|
+
}, "strip", import("zod").ZodTypeAny, {
|
196
|
+
amount: {
|
197
|
+
currency: string;
|
198
|
+
amount: number;
|
199
|
+
};
|
200
|
+
serviceId: string;
|
201
|
+
count?: number | undefined;
|
202
|
+
}, {
|
203
|
+
amount: {
|
204
|
+
currency: string;
|
205
|
+
amount: number;
|
206
|
+
};
|
207
|
+
serviceId: string;
|
208
|
+
count?: number | undefined;
|
209
|
+
}>, "many">>;
|
182
210
|
prePaymentAmount: import("zod").ZodObject<{
|
183
211
|
amount: import("zod").ZodNumber;
|
184
212
|
currency: import("zod").ZodString;
|
@@ -204,6 +232,14 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
204
232
|
currency: string;
|
205
233
|
amount: number;
|
206
234
|
};
|
235
|
+
services?: {
|
236
|
+
amount: {
|
237
|
+
currency: string;
|
238
|
+
amount: number;
|
239
|
+
};
|
240
|
+
serviceId: string;
|
241
|
+
count?: number | undefined;
|
242
|
+
}[] | undefined;
|
207
243
|
}, {
|
208
244
|
adults: number;
|
209
245
|
arrival: string;
|
@@ -219,6 +255,14 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
219
255
|
currency: string;
|
220
256
|
amount: number;
|
221
257
|
};
|
258
|
+
services?: {
|
259
|
+
amount: {
|
260
|
+
currency: string;
|
261
|
+
amount: number;
|
262
|
+
};
|
263
|
+
serviceId: string;
|
264
|
+
count?: number | undefined;
|
265
|
+
}[] | undefined;
|
222
266
|
}>;
|
223
267
|
transactionReference: import("zod").ZodString;
|
224
268
|
amount: import("zod").ZodNumber;
|
@@ -247,6 +291,14 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
247
291
|
currency: string;
|
248
292
|
amount: number;
|
249
293
|
};
|
294
|
+
services?: {
|
295
|
+
amount: {
|
296
|
+
currency: string;
|
297
|
+
amount: number;
|
298
|
+
};
|
299
|
+
serviceId: string;
|
300
|
+
count?: number | undefined;
|
301
|
+
}[] | undefined;
|
250
302
|
};
|
251
303
|
transactionReference: string;
|
252
304
|
}, {
|
@@ -273,6 +325,14 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
273
325
|
currency: string;
|
274
326
|
amount: number;
|
275
327
|
};
|
328
|
+
services?: {
|
329
|
+
amount: {
|
330
|
+
currency: string;
|
331
|
+
amount: number;
|
332
|
+
};
|
333
|
+
serviceId: string;
|
334
|
+
count?: number | undefined;
|
335
|
+
}[] | undefined;
|
276
336
|
};
|
277
337
|
transactionReference: string;
|
278
338
|
}>;
|
@@ -341,6 +401,34 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
341
401
|
}, {
|
342
402
|
ratePlanId: string;
|
343
403
|
}>, "atleastone">;
|
404
|
+
services: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
405
|
+
serviceId: import("zod").ZodString;
|
406
|
+
count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
407
|
+
amount: import("zod").ZodObject<{
|
408
|
+
amount: import("zod").ZodNumber;
|
409
|
+
currency: import("zod").ZodString;
|
410
|
+
}, "strip", import("zod").ZodTypeAny, {
|
411
|
+
currency: string;
|
412
|
+
amount: number;
|
413
|
+
}, {
|
414
|
+
currency: string;
|
415
|
+
amount: number;
|
416
|
+
}>;
|
417
|
+
}, "strip", import("zod").ZodTypeAny, {
|
418
|
+
amount: {
|
419
|
+
currency: string;
|
420
|
+
amount: number;
|
421
|
+
};
|
422
|
+
serviceId: string;
|
423
|
+
count?: number | undefined;
|
424
|
+
}, {
|
425
|
+
amount: {
|
426
|
+
currency: string;
|
427
|
+
amount: number;
|
428
|
+
};
|
429
|
+
serviceId: string;
|
430
|
+
count?: number | undefined;
|
431
|
+
}>, "many">>;
|
344
432
|
prePaymentAmount: import("zod").ZodObject<{
|
345
433
|
amount: import("zod").ZodNumber;
|
346
434
|
currency: import("zod").ZodString;
|
@@ -360,6 +448,34 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
360
448
|
arrival: string;
|
361
449
|
departure: string;
|
362
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">>;
|
363
479
|
amount: import("zod").ZodNumber;
|
364
480
|
ratePlanId: import("zod").ZodString;
|
365
481
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -385,6 +501,14 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
385
501
|
};
|
386
502
|
riskData?: any;
|
387
503
|
};
|
504
|
+
services?: {
|
505
|
+
amount: {
|
506
|
+
currency: string;
|
507
|
+
amount: number;
|
508
|
+
};
|
509
|
+
serviceId: string;
|
510
|
+
count?: number | undefined;
|
511
|
+
}[] | undefined;
|
388
512
|
}, {
|
389
513
|
ratePlanId: string;
|
390
514
|
amount: number;
|
@@ -408,4 +532,12 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
408
532
|
};
|
409
533
|
riskData?: any;
|
410
534
|
};
|
535
|
+
services?: {
|
536
|
+
amount: {
|
537
|
+
currency: string;
|
538
|
+
amount: number;
|
539
|
+
};
|
540
|
+
serviceId: string;
|
541
|
+
count?: number | undefined;
|
542
|
+
}[] | undefined;
|
411
543
|
}>;
|
@@ -68,6 +68,14 @@ const reservationSchema = (0, zod_1.object)({
|
|
68
68
|
channelCode: (0, zod_1.literal)("Direct"),
|
69
69
|
guarenteeType: (0, zod_1.literal)("Prepayment"),
|
70
70
|
timeSlices: (0, zod_1.array)(timeSliceSchema).nonempty("At least one time slice is required"),
|
71
|
+
services: (0, zod_1.array)((0, zod_1.object)({
|
72
|
+
serviceId: (0, zod_1.string)().min(1, "Service ID is required"),
|
73
|
+
count: (0, zod_1.number)().optional(),
|
74
|
+
amount: (0, zod_1.object)({
|
75
|
+
amount: (0, zod_1.number)().positive("Amount must be a positive number"),
|
76
|
+
currency: (0, zod_1.string)().length(3, "Currency code must be 3 characters long"),
|
77
|
+
}),
|
78
|
+
})).optional(),
|
71
79
|
prePaymentAmount: prePaymentAmountSchema,
|
72
80
|
});
|
73
81
|
exports.reservationCreateSchema = (0, zod_1.object)({
|
@@ -94,6 +102,14 @@ exports.paymentCreateSchema = (0, zod_1.object)({
|
|
94
102
|
departure: true,
|
95
103
|
adults: true,
|
96
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(),
|
97
113
|
amount: (0, zod_1.number)().positive("Amount must be a positive number"),
|
98
114
|
ratePlanId: (0, zod_1.string)().min(1, "Rate Plan ID is required"),
|
99
115
|
});
|